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

any takers on this one

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

    #16
    Code had a math issue that needed correcting.

    Hopefully this is the last change.

    RJay

    Zip file updated in a later posting.

    Zip file deleted.
    Last edited by RJay; 12-16-2008, 01:24 PM.
    RJay
    NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

    Comment


      #17
      Originally posted by rt6176 View Post
      Code had a math issue that needed correcting.

      Hopefully this is the last change.

      RJay
      Hi,

      I have just finished testing new new version. I fell bad being messenger of another bad news - its giving EMA3[0] = 0 still, no exceptions.
      Maybe its time to cry now? ;-)

      Regards

      Comment


        #18
        I guess I just don't know when to quit.

        try this one.

        RJay

        PS. It has a different name on it so dup your strategy and add new indicator.

        Zip file updated in a later posting.

        Zip file deleted.
        Last edited by RJay; 12-16-2008, 01:24 PM.
        RJay
        NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

        Comment


          #19
          Hey guys,

          Thanks for the hard work. Unfortunately,I tried the newest version Trix2v2 and still have the same problem.

          Thanks, Tom

          Comment


            #20
            Too bad since it is useless updating a bar late.
            eDanny
            NinjaTrader Ecosystem Vendor - Integrity Traders

            Comment


              #21
              Ok shoot me. I couldn't see the problem becouse I was working with historic data over the weekend. This morning with a live feed I can clearly see the problem.

              I wasn't happy with my initial porting of this indicator. So I'm glad I put some time into it.

              I originally thought the problem was with this line of code getting zero's in the numerator or denominator.

              TRIXLine1.Set(10 * ( EMA3[0] - EMA3[1] ) / EMA3[1] );

              I believe I have covered that possibility with this weekend's updates.

              I am out of position now but I may know what's wrong, AGAIN!!!

              If anyone else figures it out, go ahead and post it.

              Stay tuned,

              RJay
              RJay
              NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

              Comment


                #22
                Originally posted by eDanny View Post
                Too bad since it is useless updating a bar late.
                Guys,

                When I first ported this indicator. I saw its potential. Rest assured I will pursue this until all issues have been resolved.

                RJay
                RJay
                NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

                Comment


                  #23
                  Briefly looked at the code guys, you could try using a short Momentum() to realize this indicator - http://www.ninjatrader-support.com/H.../Momentum.html
                  BertrandNinjaTrader Customer Service

                  Comment


                    #24
                    Yeah !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                    I found it !!!!!!!!!!!!!!

                    I'm going to watch this indicator for a while to make sure its going to be OK.

                    I will post updated zip files later tonight or later in the day tomarrow.

                    I will also be posting something special I think you'll like.

                    It will be worth the wait.

                    RJay
                    RJay
                    NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

                    Comment


                      #25
                      Preferable tonight so I can be trying tomorrow morning.
                      eDanny
                      NinjaTrader Ecosystem Vendor - Integrity Traders

                      Comment


                        #26
                        thanks for all the hard work--------looking forward to see what you have come up with




                        thanks

                        Comment


                          #27
                          Hey RJ,

                          I have included a screenshot of the Trix I modified in TS along with the code. I hope this helps. I am looking to get this one to change colors like the one in the image if you can.

                          Thanks, Tom



                          Code:
                          [LegacyColorValue = false]; 
                          { 2-Line TRIX indicator for Jongseon Kim's TAOSC article
                          "When and When Not To Trade", TAOSC - Jan. 2004 }
                          inputs:
                           SigLineXMALen1( 3) ,
                           TRIXLength( 3.75) ,
                           SigLineXMALen2( 4.5) ;
                           
                          variables:
                           EMA1( 0 ),
                           EMA2( 0 ),
                           EMA3( 0 ),
                           TRIXLine( 0 ),
                           SignalLine1( 0 ),
                           SignalLine2( 0 ) ;
                          
                          EMA1 = XAverage( Close, TRIXLength ) ;
                          EMA2 = XAverage( EMA1, TRIXLength ) ;
                          EMA3 = XAverage( EMA2, TRIXLength ) ;
                          if EMA3[1] <> 0 then 
                           
                           { Ensure not about to divide by zero }
                           TRIXLine = 10 * ( EMA3 - EMA3[1] ) / EMA3[1] ;
                          SignalLine1 = XAverage( TRIXLine, SigLineXMALen1 ) ;
                          SignalLine2 = XAverage( TRIXLine, SigLineXMALen2 ) ;
                          Plot1( TRIXLine, "TRIXLine1" ) ;
                          Plot2( SignalLine1, "SignalLine1" ) ;
                          Plot3( SignalLine2, "SignalLine2" ) ;
                          Plot1( TRIXLine, "TRIXLine1" ) ;  
                          if TRIXLine >= TRIXLine[1] then 
                           SetPlotColor(1,rgb (0,127,255)){slateblue}
                          else 
                           SetPlotcolor(1,rgb(255,36,0)); 
                          Plot2( SignalLine1, "SignalLine1" ) ;  
                          if SignalLine1 >= SignalLine1[1] then 
                           SetPlotColor(2,green) 
                          else 
                           SetPlotcolor(2,Magenta); 
                           
                          Plot3( SignalLine2, "SignalLine2" ) ;
                          if SignalLine2 >= 0 then
                           SetPlotcolor (3,DarkGreen)
                          else
                           SetPlotcolor (3,darkred);
                          Attached Files

                          Comment


                            #28
                            Good News - Bad News

                            Good news - The two attached zip files are good to go.

                            Please make sure you overwrite existing indicators if prompted.

                            ----------------------------------------------------------------------

                            Bad news - The something special I promised will not be happening today.

                            I had planned to release this indicator in a price chart overlay version.

                            Last night I realized, much to my horror, I had introduced a lag into that indicator. (See attached image.)

                            I will work on it. If someone else wants to give it a go, have at it.

                            Enjoy,

                            RJay
                            Attached Files
                            RJay
                            NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

                            Comment


                              #29
                              Here is the working v4 with the dots implemented. Thanks rt6176 for a job well done. What is different with the "tick" version?
                              Attached Files
                              eDanny
                              NinjaTrader Ecosystem Vendor - Integrity Traders

                              Comment


                                #30
                                Imported the one from edanny. can u rename so it does not try to overwrite the old one?

                                Thanks, Tom

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by TraderG23, 12-08-2023, 07:56 AM
                                9 responses
                                382 views
                                1 like
                                Last Post Gavini
                                by Gavini
                                 
                                Started by oviejo, Today, 12:28 AM
                                0 responses
                                1 view
                                0 likes
                                Last Post oviejo
                                by oviejo
                                 
                                Started by pechtri, 06-22-2023, 02:31 AM
                                10 responses
                                125 views
                                0 likes
                                Last Post Leeroy_Jenkins  
                                Started by judysamnt7, 03-13-2023, 09:11 AM
                                4 responses
                                59 views
                                0 likes
                                Last Post DynamicTest  
                                Started by ScottWalsh, Yesterday, 06:52 PM
                                4 responses
                                36 views
                                0 likes
                                Last Post ScottWalsh  
                                Working...
                                X