Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Please One trade per occourance

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

    Please One trade per occourance

    Could someone please reply with the link that explains how to limit the number of trades to one execution not every instance of a trigger?

    #2
    mainstream,

    Just use a bool variable.

    Code:
    if (bool == true && trade condition == true)
    {
         EnterLong();
         bool = false;
    }
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      thanks for the information

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      75 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      45 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      26 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      62 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X