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

Super Trend Indicator Buffer - ChelseaB Request

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

    Super Trend Indicator Buffer - ChelseaB Request

    Hello,

    I see you made this super trend indicator, so I am reaching out for a personal request.

    I know this is a big ask, but could you add a buffer for when the trend flips?

    Attached Files

    #2
    Originally posted by AaronKTradingForum View Post
    I know this is a big ask, but could you add a buffer for when the trend flips?
    What does 'add a buffer for when the trend flips' mean?

    Can you give an example of what this would/should look like?



    Comment


      #3
      Originally posted by bltdavid View Post

      What does 'add a buffer for when the trend flips' mean?

      Can you give an example of what this would/should look like?


      So basically when the trend flips from bullish to bearish, the value in the buffer value should change so you know in the code that the trend has changed.

      I've given it a go, maybe you can give me some ideas.
      Attached Files

      Comment


        #4
        Originally posted by AaronKTradingForum View Post
        So basically when the trend flips from bullish to bearish, the value in the buffer value should change so you know in the code that the trend has changed.

        I've given it a go, maybe you can give me some ideas.
        My suggestion is to use two different colors to indicate
        a bullish or bearish trend.

        For example,
        When the SupreTrend is bullish, paint the plot line green.
        When the SuperTrend is bearish, paint the plot line red.

        Does that work for you?




        Comment


          #5
          Originally posted by bltdavid View Post

          My suggestion is to use two different colors to indicate
          a bullish or bearish trend.

          For example,
          When the SupreTrend is bullish, paint the plot line green.
          When the SuperTrend is bearish, paint the plot line red.

          Does that work for you?



          Yeah that could work, how would I go about doing that?

          Comment


            #6
            Hello AaronKTradingForum,

            Are you referring to the indicator on the User App Share linked below? (It's good to link the user app share script directly)
            The Supertrend indicator as published in the July 2023 Technical Analysis of Stocks and Commodities article “Staying On Track With The Supertrend Indicator.” by Barbara Star, PhD.


            Unfortunately, due to policy we are not able to make modifications at request, but we can try and direct you through changing the script yourself.

            In the support department at NinjaTrader it is against our policy to create, debug, or modify, code or logic for our clients. Further, we do not provide C# programming education services or one on one educational support in our NinjaScript Support department. This is so that we can maintain a high level of service for all of our clients as well as our associates.

            That said, through email or on the forum we are happy to answer any specific questions you may have about NinjaScript if you decide to code this yourself. We are also happy to assist with finding resources in our help guide as well as simple examples, and we are happy to assist with guiding you through the debugging process to assist you with understanding unexpected behavior.

            You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.​


            I'm not quite sure what you are referring to as the buffer value.
            Further, what you do consider bearish or bullish? Do you mean the current bar's value is greater than the previous bar's value for bullish and the current bar's value is less than the previous bar's value for bearish?

            if (IsRising(Default))
            PlotBrushes[0][0] = Brushes.Green;
            else if (IsFalling(Default))
            PlotBrushes[0][0] = Brushes.Red;​
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by lorem, 04-25-2024, 09:18 AM
            19 responses
            80 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by joselube001, 05-10-2024, 12:17 PM
            6 responses
            29 views
            0 likes
            Last Post joselube001  
            Started by bigc0220, 09-18-2018, 09:16 AM
            6 responses
            2,579 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by DawnTreader, 05-08-2024, 05:58 PM
            21 responses
            81 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by doihaveto13, Today, 12:46 PM
            2 responses
            7 views
            0 likes
            Last Post doihaveto13  
            Working...
            X