Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 kevinenergy, 02-17-2023, 12:42 PM
        118 responses
        2,777 views
        1 like
        Last Post kevinenergy  
        Started by briansaul, Today, 05:31 AM
        0 responses
        6 views
        0 likes
        Last Post briansaul  
        Started by fwendolynlpxz, Today, 05:19 AM
        0 responses
        4 views
        0 likes
        Last Post fwendolynlpxz  
        Started by traderqz, Yesterday, 12:06 AM
        11 responses
        28 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by PaulMohn, Today, 03:49 AM
        0 responses
        8 views
        0 likes
        Last Post PaulMohn  
        Working...
        X