Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

backtest work around CalculaitonOnBarClose

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

    backtest work around CalculaitonOnBarClose

    I have a strategy with unmanage order with EnterLongLimit() on a support level, if price touch the level but close above. the order will not be executed.

    Would you have a way to work around the CalculationOnBarClose = false issue so that order can be execute on the level when backtesting a strategy?

    #2
    er111222, you could try submitting the order to a finer series to simulate getting an intrabar fill -

    You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by

    Comment


      #3
      In ES the strategy use 1 range bar chart, it touch the level and close 1 tick above it, so EnterLongLimit has no fill. So there is no way to work around this?

      Comment


        #4
        Guess I'm not sure what your asking exactly here - to clarify : a limit order that is only touched does not have to fill - with the default fill algorithm it would need to trade through to fill this type of order, you can use here the liberal fill algorithm provided as well to getting filled on touches in your backtest, however don't expect that to be happening live every-time...

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        650 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        577 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X