Hi,
I'm working on my strategy and I'm trying to add MACD indicator on the data chart, instead of using a new panel. I can set up the indicator by setting up the scale justification settings to Left or Overlay and setting panel 1 and works fine, but when I set this setting on my Ninjascript strategy, it stays the same (second panel below the chart).
You can see on the price panel MACD from the indicator and on the panel below, from the strategy.
My code is:
if (State == State.DataLoaded) {
MACD1 = MACD(Close, Convert.ToInt32(Fast), Convert.ToInt32(Slow), Convert.ToInt32(Smooth));
MACD1.ScaleJustification = ScaleJustification.Left; //Overlay also doesnt work
MACD1.Panel= 1;
MACD1.Plots[0].Brush = Brushes.DarkCyan;
MACD1.Plots[1].Brush = Brushes.Crimson;
MACD1.Plots[2].Brush = Brushes.Transparent;
AddChartIndicator(MACD1);
}
I also have IsOverlay = true on State == State.SetDefaults
Does anyone can help me to point out what I'm missing?
Thank you!

Comment