Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

KrauseSlope indicator

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

    KrauseSlope indicator

    Here's my contribution (my first indicator):

    KrauseSlope. A slope output of degrees that lets you reference changing slopes in a strategy.

    Pass two variables to it, and refer to it like this:

    KrauseSlope(3,11).Short[0]

    The first variable (3) is the number of bars to calculate the slope across. (So in this example, using 3, the slope would be figured from ema(11)[3]-ema(11)[0]). The second variable (11), is the EMA period you prefer. This is customizable of course. You can of course change the indicator to reflect whichever MA or other indicator you like.

    The output is in degrees (thus the arctan function). Note this requires 6.507 or above, as the slope function changed at 6.507.

    Whatever you profit, feel free to send half of profits to my paypal.. [email protected]. heheheh...
    Attached Files
    Last edited by scriabinop23; 01-31-2008, 08:00 PM.

    #2
    Thanks for the submission. Would you mind editing your post and providing the file in a ZIP format? This is done via Files > Utilities > Export NinjaScript.

    Thanks in advance.
    RayNinjaTrader Customer Service

    Comment


      #3
      Hi i was wondering if you did update this indicator for version 7 of ninjatrader?

      been using it on 6.5 but it seems to no longer work on the beta version

      thanks in advance

      Totantaz

      Comment


        #4
        Welcome to our forums Totantaz - to be able to compile it, you would just need to add the autoScale parameter to the DrawDot call used, as this was added for NT7 -

        DrawDot("" + Time[0], true, 0, Low[0] - TickSize, Color.Azure);
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Wow, Awsome

          thanks for the quick feedback, talk about customer service

          ill try coding your suggestion

          i like the changes in ninjatrader 7, very happy with my purchase so far


          regards,

          Totantaz

          Comment


            #6
            Unfortunatly it still returns a constant value of 0 on the chart

            ill keep trying to make it work, sad i really wanted to go with version 7

            regards,

            Totantaz

            Comment


              #7
              Totantaz, I see this here in the Initialize() -

              emaperiod = EMA(period);

              Try moving it to new new OnStartUp() in NT7 and remove it from the Initialize().
              BertrandNinjaTrader Customer Service

              Comment


                #8
                Hi scriabinop 23,

                Thanks for the contribution. How exactly do i change the EMA to TMA in the script I am a newbie at this programing thing.

                Thanks in advance

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by TraderJA, Today, 12:06 AM
                1 response
                18 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by manueldecastro, Yesterday, 10:26 AM
                7 responses
                27 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by tradebot, Yesterday, 01:25 PM
                5 responses
                21 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by fleconkey, Today, 06:40 AM
                0 responses
                6 views
                0 likes
                Last Post fleconkey  
                Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
                24 responses
                79 views
                0 likes
                Last Post cmtjoancolmenero  
                Working...
                X