monicmtne:
Could anyone please tell me where to report problems I am having with Meta Trader 4?
Yes, there is
I reproduce the bug that you reported. Thank you.
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
Could anyone please tell me where to report problems I am having with Meta Trader 4?
One of them is about OBJ_TRENDBYANGLE – troubles setting a trend line and reading its coordinates
Could anyone please help me draw a trend line of a specific angle and then read its coordinates?
I tried this and 1st of all it draws the line backwards instead of forwards and even so the coordinates (value by shift) returned are not correct
datetime lt=Time[100];
double l=Low[100];
ObjectCreate("test",OBJ_TRENDBYANGLE,0,lt,l);
ObjectSet("test",OBJPROP_ANGLE,30);
//ObjectSet("test",OBJPROP_TIME2,Time[0]); // places the line forwards
double i1=ObjectGetValueByShift("test",10);
Alert("1=",i1);
double i2=ObjectGetValueByShift("test",120);
Alert("2=",i2);
double i3=ObjectGetValueByShift("test",130);
Alert("3=",i3);
Thank you,
Monica
trendline