Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Supertrend Chelsea_B

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

    Supertrend Chelsea_B


    Hi ChelseaB, thank you for the Supertrend programming work. I have a question for you: I can't modify the multiplier with decimal values ​​but only with integers. How can I fix this ?​

    #2
    Hello dan66,

    Thank you for your post.

    So I may assist you more accurately, please provide the link to the script you are referring to. This is helpful information to make sure we are on the same page and to make sure we aren't looking at different scripts.

    I look forward to your clarification.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      Hi, thanks for the reply...the link is this :
      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.

      Comment


        #4
        Hello dan66,

        Thank you for your reply.

        In that script, the property ATRMultiplier is declared as an int on line 107. That is why it only accepts integers and not any decimal values. You could change this to a double instead of an int and it would allow integer values. This is what the change would look like in line 107 of the Properties region:

        before:
        Code:
        public int ATRMultiplier

        after:
        Code:
        public double ATRMultiplier

        Please let us know if we may be of further assistance.
        Emily C.NinjaTrader Customer Service

        Comment


          #5
          Thanks Emily

          Comment


            #6
            Hi, I made this : I opened Ninja Script Editor, then changed the line 107 , finally saved , but doesn't work ...any suggestions ?

            Comment


              #7
              Hello dan66,

              Thank you for your reply.

              What about it doesn't work? Including as many details as possible helps us out to better understand and assist you. Are you getting any errors on the screen or on the log tab of the Control Center? If so, what do the errors report?

              Please try the attached SupertrendCopy indicator I created with the previously mentioned modification to demonstrate. You should be able to use decimals in the multiplier without issue. If you encounter any problems or unexpected behavior, please explain the desired behavior vs. what is happening and I would be glad to assist you further.

              Please let me know if I may be of further assistance.
              Attached Files
              Emily C.NinjaTrader Customer Service

              Comment


                #8
                It works , THANKS VERY MUCH

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Jonafare, 12-06-2012, 03:48 PM
                5 responses
                3,984 views
                0 likes
                Last Post rene69851  
                Started by Fitspressorest, Today, 01:38 PM
                0 responses
                2 views
                0 likes
                Last Post Fitspressorest  
                Started by Jonker, Today, 01:19 PM
                0 responses
                2 views
                0 likes
                Last Post Jonker
                by Jonker
                 
                Started by futtrader, Today, 01:16 PM
                0 responses
                6 views
                0 likes
                Last Post futtrader  
                Started by Segwin, 05-07-2018, 02:15 PM
                14 responses
                1,791 views
                0 likes
                Last Post aligator  
                Working...
                X