Are Stop/Limit orders hit in custom hours?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #169262 quote
    OscJoh
    Participant
    Average

    Hello!

    Just asking to see if anyone has experience with limit orders in live vs backtest. I have set custom hours for a symbol and wonder if the limit orders would be filled for my soft profit target or not while prices are “outside” of my custom hours?

    For example, see the attached image with the gap the custom hours create. The target was hit during the night when the bars weren’t there. Would this occur in live trading too or is it just “backtest magic”? What I expected to happen is that the limit was reached but profit is not taken until first bar of my session next day…

    Thanks

    limit.png limit.png
    #169270 quote
    Nicolas
    Keymaster
    Master

    Pending orders (LIMIT and STOP) last during 1 bar/period.

    So if your code don’t renew them on each bar (because limited by time conditions for example), then situation like this will happen 🙂

    #169275 quote
    OscJoh
    Participant
    Average

    Thank you, Nicolas.

    So if I understand correctly this is what will actually happen: The limit order won’t be there during the night and no profit target will be reached. Then on the first intraday-bar next session, it will sell at market next bar instead (second bar intraday, see attached)

    limit2.png limit2.png
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Are Stop/Limit orders hit in custom hours?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
OscJoh @oscjoh Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by OscJoh
4 years, 9 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/10/2021
Status: Active
Attachments: 2 files
Logo Logo
Loading...