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 f.saeidi, Yesterday, 02:09 PM
      3 responses
      19 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Jltarrau, Today, 05:57 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by kujista, Today, 06:23 AM
      0 responses
      2 views
      0 likes
      Last Post kujista
      by kujista
       
      Started by traderqz, Yesterday, 04:32 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by f.saeidi, Today, 05:56 AM
      1 response
      6 views
      0 likes
      Last Post Jltarrau  
      Working...
      X