Announcement

Collapse
No announcement yet.

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]);

    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 Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                596 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
                556 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                554 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X