Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing an indicators value scale...?

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

    Changing an indicators value scale...?

    Hi.

    I have the default MACD indie, and I have the Elliott Oscillator from the Indicators library here on the forum. They basically do the same thing, but I want the slow plot from the MACD to be overlaid on the fast plot from the oscillator. Not a problem, other than the fact that the MACD has a value scale that runs 0, 1, 2, 3, etc whereas the oscillator plots to 0, 0.1, 0.2, 0.3 etc. So, 1/10th the scale.

    How might I adjust the code in one or the other so they match (don't care which has to change)

    Please.

    Thank you.

    #2
    You could multiply the EW oscillator plot value then by 10 in the code.

    Comment


      #3
      Thanks Bertrand. You make it sound so simple — and I'm sure it is — but I'm staring at this code with the eyes of a non-coder and... haven't a clue how to do that.

      Could ya point me in the right direction perhaps?

      Many thanks

      Comment


        #4
        You have to pull up the Oscillator code and multiply its calculated value by 10. Unfortunately I cannot direct you as to where you would need to make these changes since that is 3rd party code. Generally just the final location that calculates out the plot value, multiply that by 10 before setting.

        Value.Set(someValue * 10);
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        603 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        349 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        104 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        560 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        560 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X