Making Trend lines that don't start from infinity and continue to infinity
Mihlali Linge Dlulane: but i cannot stop it from creating lines that start and and end at ininfiy .
Turn off both Ray attributes. See the example OBJ_TREND - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
William Roeder #:
Turn off both Ray attributes. See the example OBJ_TREND - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
thank you that worked
The trend lines it creates are from an array thats filled by another function , the point of the array filling function is to find higherlows and lowerhighs and then fill an array with the prices and times . I wanted the DrawTrendLines function to just draw trend lines between the first point to and third point , not start from infinity and not continue to infinity . I tried setting OBJPROP_RAY to false but it just make things worse and made the trend lines look completetly different from what i wanted