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 question

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

    Macd question

    slowEma.Set(SMA(Input, Slow)[0]);

    So usually I can play with the moving average type by just changing the SMA
    to EMA or something else ,but I'd like to replace the SMA with a T3 ,but the
    " T3 " this extra 0.7 parameter . So wondering if there's a way to put
    T3-0.7 into the above code . So far it eludes me . thx .

    #2
    Not sure which T3 code you exactly use, but most likely something like this -

    slowEma.Set(T3Average(Input, Slow, Overshoot)[0]);
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Not sure which T3 code you exactly use, but most likely something like this -

      slowEma.Set(T3Average(Input, Slow, Overshoot)[0]);
      OK , thanks much . I'll give that a try .

      Comment


        #4
        Originally posted by T2020 View Post
        OK , thanks much . I'll give that a try .
        I've been playing around with this , using the standard " 0.7 " for the T3 ,
        but it won't compile . If I use something like " 3 " with no decimal or zero
        then it will compile but of course that's not what I'm looking for ..idea's ???
        Attached Files

        Comment


          #5
          Originally posted by T2020 View Post
          I've been playing around with this , using the standard " 0.7 " for the T3 ,
          but it won't compile . If I use something like " 3 " with no decimal or zero
          then it will compile but of course that's not what I'm looking for ..idea's ???
          T2020,

          Intellisense will show the correct format.



          RJay
          Attached Files
          RJay
          NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

          Comment


            #6
            Originally posted by rt6176 View Post
            T2020,

            Intellisense will show the correct format.



            RJay
            Well , I guess if I new what " double amplification int smooth " meant ,
            but I don't , don't see it in help files . So ,still stuck .

            Comment


              #7
              T2020,

              The sequence of the statement is incorrect.

              Try this, it compiles for me.

              fastEMA.Set(T3(Input, 0.7, Fast)[0]);

              I would also create a double variable for the .7 accelerator value.

              private double accelerator = 0.7;

              fastEMA.Set(T3(Input, accelerator, Fast)[0]);

              I would also update the properties area so accelerator is adjustable from the chart indicator menu.


              RJay
              RJay
              NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

              Comment


                #8
                Originally posted by rt6176 View Post
                T2020,

                The sequence of the statement is incorrect.

                Try this, it compiles for me.

                fastEMA.Set(T3(Input, 0.7, Fast)[0]);

                I would also create a double variable for the .7 accelerator value.

                private double accelerator = 0.7;

                fastEMA.Set(T3(Input, accelerator, Fast)[0]);

                I would also update the properties area so accelerator is adjustable from the chart indicator menu.


                RJay
                Thanks much RJay . Works perfectly . Learning proper syntax is a slow go
                for me ,but gettin there . Thanks again .

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by DanielTynera, Today, 01:14 AM
                0 responses
                2 views
                0 likes
                Last Post DanielTynera  
                Started by yertle, 04-18-2024, 08:38 AM
                9 responses
                40 views
                0 likes
                Last Post yertle
                by yertle
                 
                Started by techgetgame, Yesterday, 11:42 PM
                0 responses
                12 views
                0 likes
                Last Post techgetgame  
                Started by sephichapdson, Yesterday, 11:36 PM
                0 responses
                2 views
                0 likes
                Last Post sephichapdson  
                Started by bortz, 11-06-2023, 08:04 AM
                47 responses
                1,615 views
                0 likes
                Last Post aligator  
                Working...
                X