Why do my custom time zones doesn’t affect my strategy running in ProOrder?

FAQs - Category: Automated trading

If you’ve modified the custom time zone settings in your ProRealTime chart but your strategy running in ProOrder is not reflecting the changes, it is likely due to the way ProOrder handles compiled code. The main reasons for this issue include:

  1. Custom Time Zones Are Not Applied Retroactively – In ProRealTime, when you modify the custom time zone settings, they only affect the chart, not an already running strategy.
  2. Strategy Code is Compiled When Pushed to ProOrder – Once a strategy is transferred from ProBacktest to ProOrder, the code is compiled and fixed, meaning any future changes to the chart’s time zone settings will not affect the running strategy.
  3. Time Zone Settings Must Be Applied Before Execution – If you change the time zone after pushing the strategy to ProOrder, the compiled version will still use the old settings.
  4. No Automatic Synchronization Between Chart and ProOrder – Unlike backtesting, ProOrder does not dynamically update its execution environment based on changes made to the chart settings.

Solution

To ensure your strategy correctly applies the custom time zone in ProOrder, follow these steps:

  1. Define the Custom Time Zone Before Sending the Strategy to ProOrder

    • Before running your strategy, go to Chart settings → Custom Time Zone and configure your preferred time zone.
  2. Verify the Time Zone in ProBacktest Before Live Trading

    • Run your strategy in ProBacktest first, making sure it behaves as expected with the applied time zone.
  3. Push the Strategy to ProOrder Only After Time Zone Is Set

    • Once the time zone is correctly applied, then send the strategy from ProBacktest to ProOrder.
    • This ensures that the compiled version includes the correct time zone settings.
  4. Restart the Strategy if Time Zone Modifications Are Needed

    • If you need to change the time zone after the strategy is already running, you must:
      ✅ Stop the strategy in ProOrder.
      ✅ Modify the custom time zone settings on the chart.
      ✅ Recompile and relaunch the strategy in ProOrder.
  5. Explicitly Handle Time Zones in Your Code (Advanced Users)

      • If your strategy depends on specific market sessions, consider implementing time filters in your code to control execution times manually:
        IF Hour >= 9 AND Hour <= 17 THEN
        // Execute trades only within this time window
        BUY 1 CONTRACT AT MARKET
        ENDIF

Conclusion

Custom time zones in ProRealTime must be set before transferring a strategy to ProOrder. Any modifications made afterward will not affect the running strategy unless you stop, recompile, and restart the strategy. Always ensure your time zone settings are correct before going live to avoid unexpected execution behavior.

Back to FAQs
Logo Logo
Loading...