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

Swing Edit

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

    Swing Edit

    Hi,

    I would like to edit the default swing indicator. Is there anyway the plot method can be change to only plot one dot, instead of having the line of dots? this is the only change I'd like to to.

    I'll appreciate any advice regarding this matter.

    thank you much

    #2
    Hello Ccowl1,

    You can edit this indicator by clicking Tools > Edit NinjaScript > Indicator > Doube Click Swing

    Right Click within the compiler > Save As > Provide a new name.

    Unfortunately we can't advise the exact steps needed to make this change and likely it will not be simple. You would have to move away from a plot based indicator to one that uses drawing objects.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thank you Ryan for you promptly response. I can do what you said, but I want the values of the swing high/low to appear on the Data box and as far as I understand the only way to do that is to have the plot method. I'll see how I can adjust it, I just don;t want my chart get have too many drawing .

      Thanks again though

      Comment


        #4
        I see. You may be able to selectively call the Reset() method so that nothing is plotted.

        Calling the Reset() method is unique and can be very powerful for custom indicator development. DataSeries objects can hold null values which simply means that you do not want to store a value for the current bar. Mathematically, you can correctly assign a value of zero however if the DataSeries was the primary DataSeries of an indicator whose values would be used for plotting, you may NOT want a zero value plotted. Meaning, you want a zero value for proper calculations but not a zero value for chart visualization. The Reset() method allows you to reset the current bar's DataSeries value to a zero for calculation purposes but NinjaScript would ignore this value when it plotted it on a chart.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mattbsea, Today, 05:44 PM
        0 responses
        4 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        31 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        2 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,282 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        20 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Working...
        X