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 lightsun47, Today, 03:51 PM
        0 responses
        5 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        10 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        46 views
        0 likes
        Last Post futtrader  
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        10 views
        0 likes
        Last Post port119
        by port119
         
        Working...
        X