Download MetaTrader 5

Close in top or bottom quarter of bar.

To add comments, please log in or register
They are already making profit from their signals. Publish your signal and join them!
ForexTrader17
1041
ForexTrader17 2016.03.11 04:09 

How would I code for an EA a close in the top or bottom quarter of the bar?

Thanks. 

s050399b
714
s050399b 2016.03.11 07:45  
ForexTrader17:

How would I code for an EA a close in the top or bottom quarter of the bar?

Thanks. 


iHigh-iLow= length

Length x 0.25 = bottom

Length x 0.75 = top


If iClose is within iHigh and top
Or iClose is within iLow and bottom

Do EA

ForexTrader17
1041
ForexTrader17 2016.03.11 20:08  
s050399b:

iHigh-iLow= length

Length x 0.25 = bottom

Length x 0.75 = top


If iClose is within iHigh and top
Or iClose is within iLow and bottom

Do EA

But simply multiplying the length will not imply whether near top or bottom. Or am I wrong?

Thanks. 

To add comments, please log in or register