Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy/Indicator distinction in NT8

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

    Strategy/Indicator distinction in NT8

    Since the "Developing Strategies" topic under Educational Resources is not a working link, I cannot find a clear explanation of the difference between a strategy and an indicator in the context of NinjaScript development (NT8 Help - which is what I need)

    Specifically, the order methods only appear under "Strategy" in the NinjaScript help, but since they are C# methods can they also be accessed from an Indicator?

    It seems inefficient to have to replicate code that needs to execute in OnBarUpdate in two places - something called a "strategy" and something called an "indicator".

    Do I really have to attach both to a chart to see visual components of an indicator as well as to programmatically take actions?

    Thanks,
    Jack

    #2
    Hello TurtleBeach,

    Thanks for your post.

    In general, a very simplified answer is that an indicator indicates and a strategy is for controlling order executions. In general, no you would not be able to access strategy methods/properties from an indicator and yes you can access indicator methods from strategies.

    Strategies do not need a chart to run on. They can be run from the chart or directly from the strategies tab of the control center. Here are a couple of helpguide links:
    http://ninjatrader.com/support/helpG...t_strategy.htm
    http://ninjatrader.com/support/helpG...t_strateg2.htm

    You can add indicators into a strategy to use internally to the strategy or to simply load into the chart for display purposes:
    http://ninjatrader.com/support/helpG...tindicator.htm

    While this is not meant to replace the developing educational links, you may find some value in example strategy/indicators in our reference section here: http://ninjatrader.com/support/forum...splay.php?f=30

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    133 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    75 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    113 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    90 views
    0 likes
    Last Post CarlTrading  
    Working...
    X