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
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
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