Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

trying using SuperTrend indicator

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

    trying using SuperTrend indicator

    Hello,
    Actually I am new in strategy development.
    Can anyone help me with how can i use SuperTrend indicator with RSI in condition
    as it have three parameters SuperTrend(Lenght, Multiplers, ShowsArrows).
    where Lenght = 10, Multipler = 3, ShowsArrows= true

    for example: RSI Overbought

    if ( RSI (14, 3).Avg[0] >= 70) && SuperTrend (???...WHAT CONDITION SHOULD I USE FOR CURRENT BAR HAVE CROSSBELOW SUPER TREND LINE & CLOSE DOWN)){
    EnterShort(DefaultQuantity, "SELL");
    }

    and how can i add,it to chart in Initialize()
    Add(RSI(14, 3));
    ???

    #2
    Hello Dev1005,

    Thanks for your post and welcome to the Forums!

    To check for a cross condition you would use CrossBelow() or CrossAbove() where you would use Close as the first series and then Supertrend as the level to cross. References:
    http://ninjatrader.com/support/helpG...crossabove.htm
    http://ninjatrader.com/support/helpG...crossbelow.htm

    To provide further assistance on the SuperTrend I would need to know which version of supertrend you are using. Can you provide a link to the indicator or post it?

    Comment


      #3
      Hello Paul
      Thanks for the help.

      below is the link of SuperTrend indicators i am trying

      Comment


        #4
        Hello Dev1005,

        Thanks for your reply.

        For the SuperTrendU11, to add to the chart, in the initialize section:

        Add(anaSuperTrendU11(8, 2.5, 15, false, anaSuperTrendU11BaseType.Median, anaSuperTrendU11OffsetType.Default, anaSuperTrendU11VolaType.Simple_Range)); // These are the deafult sections so you may want to use others.

        In the OnBarUpdate() you could do something like (using the default settings and selecting the stopLine):

        if (CrossAbove(Close, anaSuperTrendU11(8, 2.5, 15, false, anaSuperTrendU11BaseType.Median, anaSuperTrendU11OffsetType.Default, anaSuperTrendU11VolaType.Simple_Range).StopLine, 1))
        {
        // do something
        }
        =======================================

        For TsSuperTrend, at the top of your Ninjascript file, add: using TSSuperTrend.Utility;

        To add the indicator to the chart (using default settings):

        Add(TSSuperTrend(14, MovingAverageType.SMA, 2.618, 14, SuperTrendMode.ATR));

        In the OnBarUpdate() you could do something like (using the default settings and selecting the UpTrend line):

        if (CrossAbove(Close, TSSuperTrend(14, MovingAverageType.SMA, 2.618, 14, SuperTrendMode.ATR).UpTrend, 1))
        {
        // do something
        }

        Comment


          #5
          Supertrend Indicator for NinjaTrader V8

          Hi! Does anyone have the indicator Supertrend for NinjaTrader 8?

          Thank you in advanced!!!

          Maria

          Comment


            #6
            Hello apatti,

            Thanks for your post and welcome to the forums!

            You may want to look around the site as there are file sharing areas for NinjaTrader7 and NinjaTrader8. These include indicators, strategies and miscellaneous (such as bar types).

            The TSSupertrend indicator is available for NinjaTrader8 and can be found here: http://ninjatrader.com/support/forum...on=&linkid=695

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            558 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X