1 registered members (AndrewAMD),
1,280
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Please, help with Fractal indicator.
#414747
01/07/13 11:39
01/07/13 11:39
|
Joined: Jan 2013
Posts: 26 Italy
Maruska
OP
Newbie
|
OP
Newbie
Joined: Jan 2013
Posts: 26
Italy
|
I'm a c++ programmer but I have some difficults to understand indicators relations with MT4 equivalents. For example in MT4 I can calculate the last high fractal with this function:
UpFractal = iFractals(Symbol(), tf, MODE_UPPER, 3);
in zorro the function is:
FractalHigh(var* Data, int TimePeriod)
I have tried this:
UpFractal = FractalHigh(series(price()),5)
but I don't understand the correlation with the two functions; in the FractalHigh function what TimePeriod means?
Thanks in advance and congratulations with the excellent work with zorro.
Last edited by Maruska; 01/07/13 11:40.
|
|
|
Re: Please, help with Fractal indicator.
[Re: jcl]
#414763
01/07/13 14:06
01/07/13 14:06
|
Joined: Jan 2013
Posts: 26 Italy
Maruska
OP
Newbie
|
OP
Newbie
Joined: Jan 2013
Posts: 26
Italy
|
I have tryed this experiment:
function run() { BarPeriod = 5;
printf("\n\nOpen = %.5f", priceOpen(1)); printf("\n\nClose = %.5f", priceClose(1)); printf("\n\nHigh = %.5f", priceHigh(1)); printf("\n\nLow = %.5f", priceLow(1)); }
and then I have start the Trade.
Zorro prints out these values for the last candle:
Open = 1.30517 Close = 1.30603 High = 1.30616 Low = 1.30609
but on the Trading Station for the same real account (that to witch zorro is connected), the last candle shows these values:
Open = 1.30579 Close = 1.30592 High = 1.30645 Low = 1.30569
Why zorro reads different price value from the same Broker and same account? This leaves me a little dubious. Maybe I missed something?
Last edited by Maruska; 01/07/13 14:13.
|
|
|
|