Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bad scaling in strategy analyzer if indicator on indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bad scaling in strategy analyzer if indicator on indicator

    if I add an indicator in Initialize in a strategy - everything is fine.

    if I write :

    Add(EMA(Momentum(momLen),
    3));

    The chart tab after running the Backtest looks really bad. I cant adjust it anyhow (it seems that NT is trying to plot the indicator on the same panel as the price itself).

    I think Panel parameter is needed in Add method, firstly to avoid this problem, secondly it is handy to be able to superimpose things as you want it.
    Attached Files

    #2
    We will look into this.
    RayNinjaTrader Customer Service

    Comment


      #3
      Hi maxima !

      You could select the indicator in the chart clicking on the indicator's plot and drag & drop it into the left scale (move the the very left of chart) or into a new panel (move to bottom slightly above the x axis).

      Alternatively you could change the scale justification in the code before adding to your strategy:

      protected override void Initialize()
      {
      ...

      EMA(Momentum(5), 3).ScaleJustification = ScaleJustification.Left;
      Add(EMA(Momentum(momLen), 3));
      }

      Kind regards,
      Christian
      ChristianSenior Software Developer

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      239 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      155 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      165 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      247 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      199 views
      0 likes
      Last Post CarlTrading  
      Working...
      X