I wrote indicator that shows bar value in $ (very useful to determinate risk), I click on mouse wheel and it shows value. Works good on ES tick chart until I switch to daily ES. I see this line. Is any way to hide it but not value on mouse wheel data box? I tried transparent color, uncheck visible box but it hides value in box.
namespace NinjaTrader.NinjaScript.Indicators
{
public class ATR3 : Indicator
{
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = @"Enter the description for your new custom Indicator here.";
Name = "ATR3";
Calculate = Calculate.OnBarClose;
IsOverlay = false;
DisplayInDataBox = true;
DrawOnPricePanel = true;
DrawHorizontalGridLines = true;
DrawVerticalGridLines = true;
PaintPriceMarkers = false;
ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
//Disable this property if your indicator requires custom values that cumulate with each new market data event.
//See Help Guide for additional information.
IsSuspendedWhileInactive = true;
AddPlot(Brushes.DodgerBlue, "$");
}
else if (State == State.Configure)
{
}
}
protected override void OnBarUpdate()
{
if (CurrentBar < 1) return;
Value[0] = (High[0]-Low[0])*Instrument.MasterInstrument.PointValue;
//Add your custom indicator logic here.
}
}
}
Comment