Thread: MQL4 Learning
View Single Post
  #282 (permalink)  
Old 01-21-2008, 02:39 PM
sbwent sbwent is offline
Member
 
Join Date: Sep 2006
Posts: 60
sbwent is on a distinguished road
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.
Reply With Quote