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

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?
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hello Paul
      Thanks for the help.

      below is the link of SuperTrend indicators i am trying
      Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

      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
        }
        Paul H.NinjaTrader Customer Service

        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
            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by The_Sec, Yesterday, 03:53 PM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by mmenigma, Yesterday, 03:25 PM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by kujista, Today, 05:44 AM
            0 responses
            7 views
            0 likes
            Last Post kujista
            by kujista
             
            Started by ZenCortexCLICK, Today, 04:58 AM
            0 responses
            9 views
            0 likes
            Last Post ZenCortexCLICK  
            Started by sidlercom80, 10-28-2023, 08:49 AM
            172 responses
            2,282 views
            0 likes
            Last Post sidlercom80  
            Working...
            X