Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple order per bar

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

    Multiple order per bar

    Hey guys, got a scenario where the strategy entered and exited 36 times in one bar. Calculate on bar close set to false, any suggestions on how to limit possible entries to once per bar

    #2
    Also, does hitting F5 on a script while a strategy is running update the code for the next trade?

    Comment


      #3
      Hello,

      Thank you for the questions.

      It would depend on what you want as the condition to limit the trade, you could use something as simple as a checking the position:
      Code:
      if(Position.MarketPosition == MarketPosition.Flat)
      or using more complex logic like BarsSinceExit()


      Regarding F5, it would reload NinjaScript, this would disable and close any trades and re apply the strategy. What would be the need to update the script for the next trade? Are you asking to update changes in the programming you had made?

      I look forward to being of further assistance.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      637 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      571 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X