I am trying to add a "debug" panel below the chart, where I would draw vertical lines whenever my strategy rules are met. I created my custom indicator, called EntrySignal, but I failed to get those lines drawn into that panel, but I am able to get the lines drawn if I use another indicator. However, the name of that indicator also is displayed in the indicator Panel, and I would either:
1) change the name of the panel
2) get rid of that title (I tried to search for name change of the panel, but was unable to find it, so if it's not possible - I'd be ok not seeing it at all)
The best option, however, would be to see those vertical lines in EntrySignal indicator, but it's not showing up.
I think I did everything right (because, otherwise, it wouldn't show on any indicator), but somehow it doesn't. Steps:
1. (after Strategy class)
private NinjaTrader.NinjaScript.Indicators.TSX.EntrySignal EntrySignal1;
EntrySignal1 = EntrySignal(Close); EntrySignal1.Plots[0].Brush = Brushes.Transparent; EntrySignal1.Panel = 3; AddChartIndicator(EntrySignal1);
Draw.VerticalLine(EntrySignal1, @"Long Signal " + Convert.ToString(CurrentBars[0]), 0, Brushes.Lime, DashStyleHelper.Solid, 3, false);
Comment