Simple question: EA that is based on prices and no inducators

 

Hi

What should I use for an EA that is based on prices only. For example: If I want to open a long position when the current bar's rate is higher than the high of the bar before? Is it "ihigh" or "price_high"?

Thanks

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Member of FX-BAR forex news

 

tznef

Either use High[i] for the current chart - see https://docs.mql4.com/predefined/variables/high

or iHigh if you want the value off a.n.other chart https://docs.mql4.com/series/iHigh

Good luck

-BB-

Reason: