StringReplace(strTrendLineName,"1"+strCurrentTrendline,"0"+strCurrentTrendline);
arjani111:
Two trendlines exist: Upper and lower
When trendlines gets hit, then these deactivates in Row.
So one of them gets hit, the other activates and so on...
The lower trendline does not deactive once trendline gets hit.
What is wrong ?
arjani111: What is wrong ?
Use the debugger or print out your variables, including _LastError
and prices and find
out why. Do you really expect us to debug your code for you?
William Roeder:
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
I expected my coding issue is common and easily noticed by more experienced users who seen this many times. As it is not then your advice helps a lot. Use mt4, mt5 debugger or install more advanced tool ?
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register