I am building an indicator with the following logic.
//Add your custom indicator logic here.
//RoundDownToTickSize
Print(string.Format("TICKS AWAY FROM UPPER BAND"));
Print((GetCurrentAsk() - Bollinger(2, 14).Upper[0]) / TickSize );
Print(string.Format("------"));
Print(string.Format("TICKS AWAY FROM MIDDLE BAND"));
Print((GetCurrentAsk() - Bollinger(2, 14).Middle[0]) / TickSize );
Print(string.Format("------"));
Print(string.Format("TICKS AWAY FROM LOWER BAND"));
Print((GetCurrentAsk() - Bollinger(2, 14).Lower[0]) / TickSize );
Print(string.Format("------"));
I can see the results in Ninja Script output but how can I modify the above code so the calculations are shown in the indicator panel.
Thank you for your assistance

Comment