What does p1-=1 mean? (in OBJ_TREND MQL4 documention example)
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.
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