Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Feature request - Execute order on the same bar close

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

    Feature request - Execute order on the same bar close

    Other platforms (ThinkOrSwim, TradeStation...), they have ability to execute order on the bar open/close, for example:

    if (close>open) buy this bar close; (tradestation)

    in thinkOrSwim you can even trade on the open,i.e.

    if(open[-1]>close[0]) buy next at bar open...

    I know what you will tell me (have read many topics, and same answers) that when bar is closed, it cant execute trade on that bar, and we have to use more granular timeframe, but, please, come-on....

    in backtesting, we should be allowed (give us a parameter in indi, to be set-able, i.e. AllowSameBarExecutions = true) to execute trades on same bar, because in REAL-LIFE scenarios, we execute orders on same bar (even in daily data, if the OPEN>CLOSE[1], then the order can be executed on the next tick, practically that's same as open)..

    and when we are on the last 1-2 minute of Daily Chart, and we see that CLOSE>OPEN, we can execute order on the same bar too...

    so, PLEASE, just tell the developers, to allow us to code that way.
    I dont know why that is not allowed, and sorry, but i wont agree any explanations against that.

    p.s. anyway, thank you guys for excellent support!

    #2
    Hello selnomeria,

    Enable TickReplay.

    Set Calculate to .OnEachTick.

    Trigger your order when IsFirstTickOfBar is true if you want to submit on the open of a bar. Or submit anytime while the bar is open.

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      thanks for reply
      2 questions:
      1) is there something like this available for NT7?
      2) does this affects performance of strategy calculations? if so, then it's what should be addressed, without OnEachTick calculation, i think we should be able to execute trades on open/close.

      thanks!

      Comment


        #4
        Hello selnomeria,

        No, NinjaTrader 7 does not have TickReplay as this is a new concept developed with NinjaTrader 8.

        Yes, adding intra-bar ticks so that OnBarUpdate can be called intra-bar does require more CPU and memory resources to process.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          seems NT7 doesnt have TickReplay, but has MarketReplay, which is also helpful. thanks

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Tim-c, Today, 03:54 AM
          0 responses
          3 views
          0 likes
          Last Post Tim-c
          by Tim-c
           
          Started by FrancisMorro, Today, 03:24 AM
          0 responses
          2 views
          0 likes
          Last Post FrancisMorro  
          Started by Segwin, 05-07-2018, 02:15 PM
          10 responses
          1,771 views
          0 likes
          Last Post Leafcutter  
          Started by Rapine Heihei, 04-23-2024, 07:51 PM
          2 responses
          31 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by Shansen, 08-30-2019, 10:18 PM
          24 responses
          945 views
          0 likes
          Last Post spwizard  
          Working...
          X