Add
ObjectSet(ObjName, OBJPROP_RAY,true);
That did not seem to work, on another forum someone said change OBJ_HLINE to OBJ_TREND
and set OBJPROP_Ray to false, which works fine. Here is the revised code for anyones
future reference.
It is basically a horizontal trendline between two points in time.
ObjectCreate(ObjName, OBJ_TREND, 0, SetupSBeginDt, SetupSHiPrice, SetupSEndDt, SetupSHiPrice );
ObjectSet(ObjName, OBJPROP_COLOR, Yellow);
ObjectSet(ObjName, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(ObjName, OBJPROP_WIDTH, 2);
ObjectSet(ObjName, OBJPROP_RAY, False);
It is basically a horizontal trendline between two points in time.
ObjectCreate(ObjName, OBJ_TREND, 0, SetupSBeginDt, SetupSHiPrice, SetupSEndDt, SetupSHiPrice );
ObjectSet(ObjName, OBJPROP_COLOR, Yellow);
ObjectSet(ObjName, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(ObjName, OBJPROP_WIDTH, 2);
ObjectSet(ObjName, OBJPROP_RAY, False);
Rosh:
Add
Add
ObjectSet(ObjName, OBJPROP_RAY,true);
Yes, you are right.
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
Here is a sample of my code
ObjName = GetName("SSTD", i);
// ObjectCreate(ObjName, OBJ_HLINE, 0, NULL, SetupSHiPrice );
ObjectCreate(ObjName, OBJ_HLINE, 0, SetupSBeginDt, SetupSHiPrice, SetupSEndDt, SetupSHiPrice );
ObjectSet(ObjName, OBJPROP_TIME1, SetupSBeginDt);
ObjectSet(ObjName, OBJPROP_TIME2, SetupSEndDt);
ObjectSet(ObjName, OBJPROP_COLOR, Yellow);
ObjectSet(ObjName, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(ObjName, OBJPROP_WIDTH, 2);
thanks in advance for your help