Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator shows the difference between Close and Sma

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

    Indicator shows the difference between Close and Sma

    Hello,

    I am looking for an indicator that shows the difference between the Close (Price) and a SMA (variable) like SMA200 in percent.
    Who can help me?
    Thanks

    #2
    Hello Paulhi,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    I am unaware of such an indicator, but perhaps one of our members has such an indicator.

    Comment


      #3
      Basically this would be a variation of the MACD(1, 200, 9). You would need to modify the formula of the MACD and multiply the value with 100 and divide by the close

      new MACD = MACD_value * 100 / Close

      Comment


        #4
        Originally posted by Paulhi View Post
        Hello,

        I am looking for an indicator that shows the difference between the Close (Price) and a SMA (variable) like SMA200 in percent.
        Who can help me?
        Thanks
        Use the wizard to create an indicator, defining one parameter called Period.

        Where indicated in the shell created, replace the Plot0.Set(Close[0]) statement with Plot0.Set(Close[0] - SMA(Period)).

        Comment

        Latest Posts

        Collapse

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