DrTrueman:
Can someone please explain what p1-=1 means in the for loop
It's simply a shorter way of writing this:
p1 = p1 - 1
Another, and more usual, way of writing the same thing would be:
p1--
Documentation of this at the following addresses:
Thank you very much jjc.
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
I am trying to add trendlines to a chart based on OBJ_TREND in the MQL4 documentation example. https://docs.mql4.com/constants/objectconstants/enum_object/obj_trend
Can someone please explain what p1-=1 means in the for loop