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 DannyP96, 05-18-2026, 02:38 PM
      1 response
      27 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      117 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      69 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      226 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      413 views
      0 likes
      Last Post CaptainJack  
      Working...
      X