Backtesting support — beginner– off hours

Forums ProRealTime English forum General trading discussions Backtesting support — beginner– off hours

Viewing 3 posts - 1 through 3 (of 3 total)
  • #243016

    All,

    I am  learning the basics, testing a simple MA crossover system (1 day period, checked at day close) .  The system seem to prefer placing orders at 12 am. If I restrict trading  to regular hours (e.g. 10 am to 4 pm), no orders are executed. Is that because technically the next period technically would’ve started and the system is getting confused? Is there a way around?

    Thank you so much.

    #243027
    JS

    When you use a 1-day timeframe, the day ends and a new one begins at midnight…

    Your code is executed at the end of the bar/day/close, so your order is placed at the “Open” of the new day (12:00 am)…

    If you want to trade during the day, you need to use “Intraday” timeframes, such as 1 hour, 5 minutes, or 1 second, and so on…

    #243028

    Thank you so much

    1 user thanked author for this post.
    avatar JS
Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login