Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

null - flat

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

    null - flat

    Hello,

    I have a question please referring

    if (entryOrder == null && .....

    when I work with this then all order (entry and stops) are counted. (eg 3 entries and 3 stops = 6)

    I couldn´t find how to work with OnExecution to count only 1time (like the sample tradelimiter). I mean in words "if entry (no matter what quantity) is done then count++".

    This works with OnBarUpdate fine but I need to have like "OnExecution flat" or "not flat". (because working with different setups in one strategy).

    Thanks
    Tony

    #2
    Tony, the main difference here is, OnExecution() is called for every fill / execution, this can be but doesn't has to be a unique trade for your entry signal of course, just consider getting a partial fill for example.

    Why don't you increase the count on your unique entry condition triggering, this would be the trade info / event you seek - then you don't have to worry if you get a partial or not on actually filling the entry.

    Comment


      #3
      Yes, I can do this way. Referring different setups, Variables.... I thought to do like OnBarUpdate and flat.

      Thank you for your support!

      Originally posted by NinjaTrader_Bertrand View Post
      Tony, the main difference here is, OnExecution() is called for every fill / execution, this can be but doesn't has to be a unique trade for your entry signal of course, just consider getting a partial fill for example.

      Why don't you increase the count on your unique entry condition triggering, this would be the trade info / event you seek - then you don't have to worry if you get a partial or not on actually filling the entry.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      77 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
      27 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