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

T3Average

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

    T3Average

    Hello,

    The data box shows 2 values for T3 - up and dn, however when I tried using T3 in a strategy I found that there were no up/dn values.

    Is there a work around, or will I have to tinker with the code?

    Thanks.

    #2
    kumar, I'm not sure which T3 implementation you're using, but normally the needed Plot for comparions can be chosen in the wizard when setting up the conditions - http://www.ninjatrader-support.com/H...ndicators.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      T3Average

      Thanks Bertrand.
      I am using T3Average included in NT.

      I am doing exactly as suggested, but doesn't work.

      This is what I have in the wizard:

      T3Average(0.8,10).T3AverageUp[0] == T3Average(0.8,10).T3AverageDn[0]

      and for the action:

      DrawDimond("My Diamond" + CurrentBar, false,0,1,Color.Red)

      Thanks again,
      Kumar

      Comment


        #4
        kumar, I'm not sure which one you refer to, as it's not standard in 6.5, but added for 7.

        When using those multiplot indicators, the condition check for those two to be equal would likely not trigger, so please check for one being greater / smaller than the other....
        BertrandNinjaTrader Customer Service

        Comment


          #5
          T3Average

          Thanks Bertrand. I am using the Implementation submitted by you.

          "When using those multiplot indicators, the condition check for those two to be equal would likely not trigger, so please check for one being greater / smaller than the other...."

          The problem is that T3 down has no value while up trending and no up value while it is down trending. The only time both have a value is when they are equal (I checked this in NT data box), so '<' / '<' are not usable.

          T3Average Neutral never seems to have a value, one could try but then the test will net to be performed on every piece of incoming data (set onbarclose to false) however that will take too much processing resources.

          Instead of using the strategy wizard, may be something can be put in the code itself - any thought, pointers will be much appreciated.

          Cheers,
          Kumar

          Comment


            #6
            Kumar, you can try a couple of different approaches.

            1. Save the T3Average indicator as another name. In the new indicator comment out all plots but the first one and do the same in the properties section. Comment out all the plotting routine of joining the different plot lines. Add one simple line in their place:

            Values[0].Set(t3Ave);

            Of course you can rename the plot and then set by that name but either way you would just have a one color line that you can access with another indicator.

            OR

            2. Try just adding this in the properties section of T3Average:

            [Browsable(false)]
            public DataSeries T3Ave
            {
            get { return t3Ave; }
            }

            Now try accessing this dataseries from another indicator.


            Dan
            eDanny
            NinjaTrader Ecosystem Vendor - Integrity Traders

            Comment


              #7
              Originally posted by eDanny View Post
              Kumar, you can try a couple of different approaches.

              1. Save the T3Average indicator as another name. In the new indicator comment out all plots but the first one and do the same in the properties section. Comment out all the plotting routine of joining the different plot lines. Add one simple line in their place:

              Values[0].Set(t3Ave);

              Dan
              Hi Dan, thanks for the response.
              I tried the above and it works as expected, but now instead of 2 plot variables (T3Up and T3Dn) I just have one and that doesn't help me getting at what I was looking for - that is T3Up==T3Dn.

              I don't want to be gazing at the charts all the time, I just wanted to ring a bell when T3 slope was flat.

              Much appreciate any help.

              Cheers,
              Kumar

              Comment


                #8
                You are looking for a flat T3 line? That will be very rare indeed. Try

                if(Values[0][0] == Values[0][1])
                {
                do something
                }
                eDanny
                NinjaTrader Ecosystem Vendor - Integrity Traders

                Comment


                  #9
                  Originally posted by eDanny View Post
                  You are looking for a flat T3 line? That will be very rare indeed. Try

                  if(Values[0][0] == Values[0][1])
                  {
                  do something
                  }
                  Thanks Danny.
                  This works, kind of!
                  First, some places are missed, no indication is given, and second when an indication is given , it is followed by a couple more, by when the T3 line has clearly changed direction.

                  Unfortunately I am not familiar with C#, so can't do much with the code other than implement simple modifications (as above).

                  Any more pointers?

                  Much appreciated.
                  Cheers.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by f.saeidi, Today, 12:14 PM
                  2 responses
                  5 views
                  0 likes
                  Last Post f.saeidi  
                  Started by TradeForge, 04-19-2024, 02:09 AM
                  2 responses
                  28 views
                  0 likes
                  Last Post TradeForge  
                  Started by aprilfool, 12-03-2022, 03:01 PM
                  3 responses
                  327 views
                  0 likes
                  Last Post NinjaTrader_Adrian  
                  Started by giulyko00, Today, 12:03 PM
                  1 response
                  5 views
                  0 likes
                  Last Post NinjaTrader_BrandonH  
                  Started by AnnBarnes, Today, 12:17 PM
                  1 response
                  2 views
                  0 likes
                  Last Post NinjaTrader_Zachary  
                  Working...
                  X