DrawText("PH" + CurrentBar, "Current High", barsFromHigh, High[barsFromHigh], Color.Blue);
I've painstaking gone through what is causing my labels/plots to disappear from the above statement and I've found the culprit is passing the variable "barsFromHigh" for the int barsAgo parameter. So if instead I used the following statement, everything would work.
DrawText("PH" + CurrentBar, "Current High", 0, High[barsFromHigh], Color.Blue);
What is going on? The first statement works if I use it within an Indicator, but not for a Strategy? Why can't I pass a variable to int barsAgo?
Your help would be greatly appreciated. Thanks

Comment