phy:
Thank you phy,Yes, you can draw the line in the background
ObjectSet(name, OBJPROP_BACK, 0)
Another alternative is to draw terndlines horizontally, not horizontal boject type lines
Excuse my ignorance, I'm not a programmer... where would I add this line please? Somewhere in this?:
void DrawLevel(double price)
{
price = NormalizeDouble(price,Digits);
string name = "Point SR Price Level "+DoubleToStr(price, Digits);
if(ObjectFind(name)==-1)
ObjectCreate(name,OBJ_HLINE,0,0,price);
ObjectSet(name,OBJPROP_COLOR,Color);
// ObjectSet(name,OBJPROP_WIDTH,Width);
After an object is created, its properties can be set, immediately,or later.
You can also use ObjectSet() to change the properties later, to move something, change color, etc.
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 using the excellent "PointSR" indicator that automatically finds levels of support and resistance and plots them as horizontal lines on my chart.
I have the parameters set where I'm getting a LOT of lines drawn-- which is what I want :-)
Is there any way I can stop each line displaying it's price value in the vertical scale ruler? OR, is there any way to make sure all lines are drawn "in the background" so that my scale is in front of them?
Any help much appreciated. Screenshot attached...