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