I now have multiple fibs all hot keyed so I don't have to go into it and change the template which I find very useful.
At the moment the default fib tool shows the price against each of the levels.
Is it possible to change this so it shows the ticks instead between each level?
Below is a section of the code if it is possible could you please show me how to do this and I can change the rest to match this one.
namespace NinjaTrader.NinjaScript.DrawingTools
{
public class BreadFibRetA : FibonacciRetracements
{
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
AnchorLineStroke = new Stroke(Brushes.DarkGray, DashStyleHelper.Solid, 1f, 50);
Name = Custom.Resource.NinjaScriptDrawingToolFibonacciRet racements;
Name = "Bread Fib Ret A";
PriceLevelOpacity = 5;
StartAnchor = new ChartAnchor { IsEditing = true, DrawingTool = this };
EndAnchor = new ChartAnchor { IsEditing = true, DrawingTool = this };
StartAnchor.DisplayName = Custom.Resource.NinjaScriptDrawingToolAnchorStart;
EndAnchor.DisplayName = Custom.Resource.NinjaScriptDrawingToolAnchorEnd;
}
else if (State == State.Configure)
{
if (PriceLevels.Count == 0)
{
PriceLevels.Add(new PriceLevel(0, Brushes.DarkGray));
PriceLevels.Add(new PriceLevel(20, Brushes.DodgerBlue));
PriceLevels.Add(new PriceLevel(40, Brushes.CornflowerBlue));
PriceLevels.Add(new PriceLevel(60, Brushes.SteelBlue));
PriceLevels.Add(new PriceLevel(80, Brushes.DarkCyan));
PriceLevels.Add(new PriceLevel(100, Brushes.DarkGray));
}
}
else if (State == State.Terminated)
Dispose();
}
}
Thanks in advance bread.
Comment