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

MACD Hybrid question

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

    MACD Hybrid question

    In 2003, Appel came up with a variation on his MACD. He just subtracted the fast line from the slow line to create Line1. Then he took and EMA of that for Line2. I don't code in C# (yet) so I was wondering if anyone had seen this in C# or NinjaScript anywhere?

    Thanks

    #2
    Hello shortski,

    Welcome to the NinjaTrader forums!

    Hopefully another community member can create this indicator for you.

    As discussed in email, you may also consider a NinjaScript consultant to code for you:


    With NinjaTrader 7, you can specify other indicators as your input series. You can apply an EMA to MACD without custom coding.
    See here for help working with indicators in NinjaTrader 7.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Yes, I am just learning basic C# right now but overall, this is just a mathematical adjustment to existing code so I am thinking it probably exists somewhere already.

      Comment


        #4
        Here is the simple conversion of the standard MACD to do what you want. NT6.5 version.

        Dan
        Attached Files
        eDanny
        NinjaTrader Ecosystem Vendor - Integrity Traders

        Comment


          #5
          Thanks Dan. I have Ninja 7 so will this self-convert or would it mess up when I tried to compile? Or maybe I have to do something else to it?

          Comment


            #6
            I just tried importing into NT7 and it works fine. When asked if you want to replace EMA, just say no to be safe (I don't know if it would overwrite the NT7 version or not). You might then want to export it to have it include the correct EMA file.

            Dan
            eDanny
            NinjaTrader Ecosystem Vendor - Integrity Traders

            Comment


              #7
              Thank you for offering this, Dan!
              Ryan M.NinjaTrader Customer Service

              Comment


                #8
                Perhaps you can answer what I was wondering about. Would a NT6.5 indicator overwrite a system indicator in NT7?

                Dan
                eDanny
                NinjaTrader Ecosystem Vendor - Integrity Traders

                Comment


                  #9
                  Perfect. Thanks Dan. That is exactly what I was looking for. Now I just have to learn C# to give back to the community.

                  Cheers

                  Shortski

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by sidlercom80, 10-28-2023, 08:49 AM
                  171 responses
                  2,273 views
                  0 likes
                  Last Post QuantKey_Bruce  
                  Started by Irukandji, Yesterday, 02:53 AM
                  2 responses
                  17 views
                  0 likes
                  Last Post Irukandji  
                  Started by adeelshahzad, Today, 03:54 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post adeelshahzad  
                  Started by CortexZenUSA, Today, 12:53 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post CortexZenUSA  
                  Started by CortexZenUSA, Today, 12:46 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post CortexZenUSA  
                  Working...
                  X