You are using an inappropriate Chart Object type and the function ObjectCreate() incorrectly.
ObjectCreate("DailyHIGH", OBJ_HLINE,0,0, iHigh(Symbol(),PERIOD_D1,0), 0, clrAqua); // Daily High ObjectSet("DailyHIGH", OBJPROP_RAY,False); // this line DOESNT WORK!
- Horizontal lines (OBJ_HLINE) always span the full breadth of the chart (to left and to the right) and only has one anchor point (price but with time value ignored). If you want to have a line with a start and end points, use OBJ_TREND instead.
- The anchor positions are always expressed in pairs (even number of parameters).
- There is no colour parameter for ObjectCreate().
- OBJPROP_RAY property has no effect on Horizontal lines (OBJ_HLINE). Use it with the OBJ_TREND instead.
Thank you.
yeah after so many try findout that wish there were better helpfile for mql every single bit of information in helpfile is confusing
anyway thank you, i will try to make it work with trend line
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
hi guys,
i wrote little code to draw a Daily High & Low however it always be ray mode so after few days there will be too many lines! and make chart unreadable -_-
wondering if there is a way to make the Horizontal line not ray and only appear between Daily Separator not continue to others with this ray effect?!
Thank you