I just made a really simple indicator that draws the fibs on the last bar printed. See below. Is there a way to access the drawing settings from the indicator? i.e. having access to the extend lines settings, the text location settings, the price levels settings?? Doing this from the indicator rather than having to go into the drawing and changing the settings. Appreciate any help.
Thanks
namespace NinjaTrader.NinjaScript.Indicators.MyIndicators
{
public class LastBarFib : Indicator
{
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = @"Automatically draw fibonacci retracements from the last bar printed.";
Name = "LastBarFib";
Calculate = Calculate.OnBarClose;
IsOverlay = true;
DisplayInDataBox = true;
DrawOnPricePanel = true;
DrawHorizontalGridLines = true;
DrawVerticalGridLines = true;
PaintPriceMarkers = true;
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;
}
else if (State == State.Configure)
{
}
}
protected override void OnBarUpdate()
{
if (CurrentBar>0)
Draw.FibonacciRetracements(this,"myFib",true,0,Clo se[0],0,Open[0]);
}
}
}

Comment