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 usazencort, Today, 01:16 AM
      0 responses
      1 view
      0 likes
      Last Post usazencort  
      Started by kaywai, 09-01-2023, 08:44 PM
      5 responses
      603 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      6 responses
      23 views
      0 likes
      Last Post xiinteractive  
      Started by Pattontje, Yesterday, 02:10 PM
      2 responses
      22 views
      0 likes
      Last Post Pattontje  
      Started by flybuzz, 04-21-2024, 04:07 PM
      17 responses
      230 views
      0 likes
      Last Post TradingLoss  
      Working...
      X