Download MetaTrader 5

if trend line crosses another trend line in the future

To add comments, please log in or register
MQL5 Cloud Network is a distributed computing network. Just give it a try!
Michael Rose
457
Michael Rose 2015.09.27 13:13 
Hi there, I'm busy on an indicator for MT4, but I can't seem to add the rule to only show me a signal if trend line 1 crosses the ray of trend line 2.

Please help?


I know it should be something like:

if ObjectGetValueByShift ("Title + Trendline1") > ("Title + Trendline2");

But it doesn't work.

Please somebody correct me, and assume my lines are called trendline1 and trendline2.
To add comments, please log in or register