|
i-FractalsEx EA
I hope someone can help me. I am trying to write an EA that includes this Indicator but I don't know how to include it in an EA. I have a start but it doesn't return any values. I'd like return a High and Low value at the time an arrow is drawn on the chart and open a trade.
FracHi=iCustom(NULL,0,"i-FractalsEx",Fr.Period,MaxBars,0,0);
FracLow=iCustom(NULL,0,"i-FractalsEx",Fr.Period,MaxBars,1,0);
It works when I use the built in Fractals:
FracHi=iFractals(NULL, 0, MODE_UPPER, 3);
FracLow=iFractals(NULL, 0, MODE_LOWER, 3);
These return a High and Low value at the time an arrow is drawn on the chart. From this I can set it to open a trade.
|