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 CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        28 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        183 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        337 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        261 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X