I have been using the Draw. class to produce horizontal lines at my desired prices.
// Draw horizontal line
Draw.HorizontalLine(this,
"SignificantLevel_" + CurrentBar.ToString(),
significantLevel,
Brushes.RoyalBlue,
DashStyleHelper.Solid,
3);​
I need the line to only extend right and I would prefer not to have to specify the exact number of bars as that shouldn't be required.
Should I use another class and simply specify the same y- value twice to make the line straight?
Also whichever class you recommend, I also need the line to be about 50% transparent and the last C# method I tried to define the brush caused errors.
NinjaTrader 8​
I did my homework before bothering you but my first thoughts were quite wrong.
If you have any insights or can point me in the correct direction I would be grateful as always.

Comment