Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

2 Strategies on One Chart

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

    2 Strategies on One Chart

    Can NT8 handle 2 strategies on a chart? One calculating on bar close for entries and the other calculating on each tick for trailing stops and exits. I have seen MultiCharts do this on their platform.
    Will NT8 be able to do it? Maybe entries need to be named or something similar for exits to work? Any examples?
    Thanks.

    #2
    No, NinjaTrader Desktop strategies do not interact or see each other's trades that way would in TradeStation or MultiCharts - it is a different platform design.

    What you would do in NinjaTrader is build one strategy that runs intrabar, and then in the code you would program it so that the entries only happen based on end-of-bar evaluations.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello Trader17,

      Thanks for your post.

      NinjaScript strategies are only able to see orders place by the specific instance of the strategy that placed the order. As QuantKey_Bruce stated, NinjaTrader strategies do not interact the way you have described.

      The NinjaScript strategy you create would need to place entry orders and stops/targets and handle those orders in a single script.

      Logic can be separated between Calculate.OnEachTick and Calculate.OnBarClose using IsFirstTickOfBar. Please note that a hosted script will inherit the Calculate mode of the script that hosts it. You can take the following approach to differentiate logic between OnBarClose and OnEachTick processing.

      Please see this reference sample which demonstrates a technique used for those who need to separate their logic to calculate some values on each tick and others only on the close of a bar. You will set your host script to Calculate.OnEachTick and use if(IsFirstTickOfBar) and place all code that needs to calculate once every bar within that condition check. Then place all code that you want to calculate OnEachTick outside of the IsFirstTickOfBar condition check.

      SampleEnterOnceExitEveryTick -https://ninjatrader.com/support/help...either_cal.htm

      Please let us know if we may assist further.​
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      90 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      48 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      31 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      34 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      69 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X