Can I set up a string to have different values based on certain conditions, and then include that string in a Draw.Text or FixedText? I have tried it and the part of the code below compiles, but when I include "oBOS220" in the FixedText code I get errors. Is there a particular way that it should be included in FixedText?
Thank you.
string oBOS220;
if(close0 < close1 && AvgBase[0] > (AvgBase[1] + 1.5*TickSize))
{oBOS220 = "OB";}
else if(close0 > close1 && AvgBase[0] < (AvgBase[1] - 1.5*TickSize))
{oBOS220 = "OS";}

Comment