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.
    BertrandNinjaTrader Customer Service

    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 TradeSaber, Today, 07:18 AM
      0 responses
      7 views
      0 likes
      Last Post TradeSaber  
      Started by PaulMohn, Today, 05:00 AM
      0 responses
      9 views
      0 likes
      Last Post PaulMohn  
      Started by ZenCortexAuCost, Today, 04:24 AM
      0 responses
      6 views
      0 likes
      Last Post ZenCortexAuCost  
      Started by ZenCortexAuCost, Today, 04:22 AM
      0 responses
      3 views
      0 likes
      Last Post ZenCortexAuCost  
      Started by SantoshXX, Today, 03:09 AM
      0 responses
      17 views
      0 likes
      Last Post SantoshXX  
      Working...
      X