Fermin,
You have to set OBJPROP_RAY to zero via ObjectSet function and use OBJ_TREND instead of OBJ_LINE.
Take a look at this thread.
"OBJ_HLINE starting point"
Matias Romeo
Custom Metatrader System
matiasdotromeoatgmail.com
You have to set OBJPROP_RAY to zero via ObjectSet function and use OBJ_TREND instead of OBJ_LINE.
Take a look at this thread.
"OBJ_HLINE starting point"
Matias Romeo
Custom Metatrader System
matiasdotromeoatgmail.com
horizontal line is drawn from left side to right side. for horizontal line is enough 1 price coordinate. in your case create trend line and set ray property to false
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'm trying to draw a small (part of) a line between two points using the following code.
ObjectCreate("P line", OBJ_HLINE, 0, Time[40], 1.6395, Time[0], 1.6395);
It does however show the whole line not just part of it.
Could someone please tell me what i'm overlooking\ doing wrong.
tia,
Fermin DCG