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

How put indicator for my strategy?

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

    How put indicator for my strategy?

    Hi
    I make strategy with NT8 builder , I want the same indicator included in the strategy , with enable and disable option in the strategy menu for view in chart , how I can do that?

    Ren.
    Last edited by voltlon; 08-14-2019, 09:25 AM.

    #2
    Hello voltlon,

    Unfortunately, it would not be possible with the Strategy Builder to make an indicator optional.

    In the Conditions builder window, any indicator that is selected will have a Plot on chart checkbox. If this is checked, that indicator will automatically be added to the chart (using AddChartIndicator) when the strategy is enabled.

    The Strategy Builder 301 course discusses this.


    If you were to unlock the script, you could create a bool public property and require this to be true for the AddChartIndicator() call to run in State.DataLoaded.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank Chelsea B.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by techgetgame, Yesterday, 11:42 PM
      0 responses
      8 views
      0 likes
      Last Post techgetgame  
      Started by sephichapdson, Yesterday, 11:36 PM
      0 responses
      2 views
      0 likes
      Last Post sephichapdson  
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,613 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Yesterday, 05:56 PM
      0 responses
      10 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      20 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Working...
      X