Hello All,
I have created a Left price label as part of an EA using the code below and once applied to a chart it works perfectly.
ObjectCreate("NewPriceLevel",OBJ_ARROW_LEFT_PRICE,0,Time[0],NewPriceLevel);
However, as the label is partly masked by the bars on my chart it makes it hard to read so I would like to bring the label to the foreground or fill in the label with a different colour. I have read the documentation online and have written the follow line of code: ObjectSetInteger(0,"NewPriceLevel",OBJPROP_BACK,false), which apparently brings the label to the foreground.
Unfortunately, when I run it it doesn't seem to make any difference.
Can anyone recommend an alternative solution?
Thanks in advance,
CCH
I have created a Left price label as part of an EA using the code below and once applied to a chart it works perfectly.
ObjectCreate("NewPriceLevel",OBJ_ARROW_LEFT_PRICE,0,Time[0],NewPriceLevel);
However, as the label is partly masked by the bars on my chart it makes it hard to read so I would like to bring the label to the foreground or fill in the label with a different colour. I have read the documentation online and have written the follow line of code: ObjectSetInteger(0,"NewPriceLevel",OBJPROP_BACK,false), which apparently brings the label to the foreground.
Unfortunately, when I run it it doesn't seem to make any difference.
Can anyone recommend an alternative solution?
Thanks in advance,
CCH