Download MetaTrader 5

need help again

To add comments, please log in or register
mrluck1
989
mrluck1  

I'm working on an EA, and it's based on trendlines that i put on chart. How can i get the current  value of my trendline in my EA?  thanks. 

 

int OnTick ()
{
if (Bid < (trendline current value) ) // How can i extract current trendline value?

{ ...}

}
Keith Watford
Moderator
10533
Keith Watford  

ObjectGetValueByTime()

ObjectGetValueByShift()


If you are writing code in mql4, please post in the dedicated section.

To add comments, please log in or register