Not logged in
Viewing 5 posts - 1 through 5 (of 5 total)

Forums>StrategyQuant>General Discussion>Change time later in MT5 code

  • #266933 |
    Customer
    36 Posts

    I have created now some futures strategies and did not copy before the imported data to the brokers timezone.

    Now it happened the following. The strategy should close the trade at 15:00 US CT. But at already 10:00 US CT the trade has been closed. This happened because my brokers time was at this moment 15:00 in MT5.

    So I changed the EndofDay setting in MT5 code from 15:00 to 20:00 (meaning shift it 5 hours later) to close the strategy at 15:00 US CT, this worked.

    But does this affect in any way the realiabilty of any backtest I did with the original time settings? The strategy is not based on a special time setting ect.

    Thanks!

    DP

    #266944
    Customer
    611 Posts

    sure – if you dont use cloned data to the timezone used in the platform, the backtest will be different – it could depend on used timeframe and building blocks, but most probably the backtest will be different

    you need to retest the strategies to see the difference

    You want to be a profitable algotrader? Sharing of final strategies with real traders just started. Fill in this FORM. 1500+ final SQ3 and SQX strategies for members running on demo accounts DEMO ACCS. We provide also strategies for indices - DAX and DOW JONES, because we have realtick data from brokers.

    #266945
    Customer
    36 Posts

    Thanks Hankey!

    Ok to clone the data… all futures are downloaded by default with the timezone EXCHANGE in SQX. If my broker is 5 hours earlier (so broker has 15:00 while exchange is still 10:00) then it means that I need to clone with shift +5, correct?

    DP

    #266946
    Customer
    36 Posts

    Or minus 5 ? :-)

    DP

    #266953
    Customer
    611 Posts

    take one candle from your platform and compare it with the candles in SQX in datamanager and you will find what settings you need to use

    you need to synchronise the timezone

    You want to be a profitable algotrader? Sharing of final strategies with real traders just started. Fill in this FORM. 1500+ final SQ3 and SQX strategies for members running on demo accounts DEMO ACCS. We provide also strategies for indices - DAX and DOW JONES, because we have realtick data from brokers.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.