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

    any takers on this one

    need to transfer this from easy language to ninja

    this indicator is really good for spotting div on smaller time frames

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




    any help is appreciated



    thanks

    #2
    Hi jaybird151,

    If no one takes you up on this you could also try one of the 3rd party NinjaScript Consultants here: http://www.ninjatrader.com/webnew/pa...injaScript.htm
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Enjoy !!!!

      Any issues let me know.

      RJay


      Zip file has been updated. See later post!!!!!!!
      Last edited by RJay; 12-14-2008, 06:36 AM.
      RJay
      NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

      Comment


        #4
        i really appreciate you doing that for me.


        it looks good so far

        thanks again


        jay

        Comment


          #5
          Thanks for posting this rt6176!


          Originally posted by rt6176 View Post
          Enjoy !!!!

          Any issues let me know.

          RJay
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Mahlon,

            Here is this indicator with the changes you requested.

            RJay
            Attached Files
            RJay
            NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

            Comment


              #7
              RJay

              Thanks so much. That's exactly what I was looking for. So far it looks like it works perfectly. That makes me a happy camper!

              Mahlon

              Comment


                #8
                Thanks for the hard work! The only problem I am having is when I set it to calc on close=false it becomes 1 line scrunched together?

                Thanks, Tom

                Comment


                  #9
                  Originally posted by chartlearner View Post
                  Thanks for the hard work! The only problem I am having is when I set it to calc on close=false it becomes 1 line scrunched together?

                  Thanks, Tom
                  Kowal, Tom,

                  I made a few changes. I didn't like that line of code either.

                  See if this version works any better,

                  RJay

                  Zip file has been updated. See later post!!!!!!!
                  Last edited by RJay; 12-14-2008, 06:37 AM.
                  RJay
                  NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

                  Comment


                    #10
                    I thought I'd give this a try but sometimes the lines are very close together and crossovers are hard to see. I modified the indicator to show pending crossovers and then the actual crossover. It is then up to you to determine if there is divergence of course. Take a look at the chart and let me know if I should post the indicator.
                    Attached Files
                    Last edited by eDanny; 12-13-2008, 03:09 PM.
                    eDanny
                    NinjaTrader Ecosystem Vendor - Integrity Traders

                    Comment


                      #11
                      Originally posted by eDanny View Post
                      I thought I'd give this a try but sometimes the lines are very close together and crossovers are hard to see. I modified the indicator to show pending crossovers and then the actual crossover. It is then up to you to determine if there is divergence of course. Take a look at the chart and let me know if I should post the indicator.

                      Hi Danny,

                      This is what we are all here for. Post away. Give it a version so people don't override the existing one when they download it.

                      RJay
                      RJay
                      NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

                      Comment


                        #12
                        Here it is, dots can be enabled or disabled of course.
                        Attached Files
                        eDanny
                        NinjaTrader Ecosystem Vendor - Integrity Traders

                        Comment


                          #13
                          Originally posted by chartlearner View Post
                          Thanks for the hard work! The only problem I am having is when I set it to calc on close=false it becomes 1 line scrunched together?

                          Thanks, Tom
                          Can someone test to see if this version is working OK???

                          It always looked alright on my computer.

                          Thanks,

                          RJay
                          RJay
                          NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

                          Comment


                            #14
                            Originally posted by rt6176 View Post
                            Can someone test to see if this version is working OK???

                            It always looked alright on my computer.

                            Thanks,

                            RJay
                            Hi,

                            first of all thanks a lot for posting new version!
                            However it works exactly the same as the previous one ;-( When starting strategy with CalculateOnBarClose set to False it gives me EMA3[0]=0 what makes indicator and strategy useless.
                            Rjay: did you check it with false? and did work out? Hmm...

                            Regards

                            Comment


                              #15
                              Sorry, I'm having issues with the loop commands covering this condition.

                              If this doesn't work, There is one more thing I can try.

                              Please test and let me know.

                              Thanks,

                              RJay

                              (Zip file has been updated again. See next post for download!!!!!!!)
                              Last edited by RJay; 12-14-2008, 06:39 AM.
                              RJay
                              NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Rapine Heihei, Today, 08:19 PM
                              1 response
                              4 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Started by Rapine Heihei, Today, 08:25 PM
                              0 responses
                              5 views
                              0 likes
                              Last Post Rapine Heihei  
                              Started by f.saeidi, Today, 08:01 PM
                              1 response
                              4 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Started by Rapine Heihei, Today, 07:51 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post Rapine Heihei  
                              Started by frslvr, 04-11-2024, 07:26 AM
                              5 responses
                              97 views
                              1 like
                              Last Post caryc123  
                              Working...
                              X