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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    47 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    15 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X