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

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

  • #266933 |
    Customer
    45 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
    789 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? We started using StrateQuant software in early 2016. For now we have a very big knowhow for building EAs for every possible types of markets. We share this knowhow, apps, tools and also all final strategies with real traders. If you want to join us, fill in the FORM. 1500+ final SQX strategies for members running on demo accounts to verify the edge DEMO ACCS. We provide also strategies for indices - DAX, DOW JONES, NASDAQ, SP, UK, because we have realtick data from our brokers.

    #266945
    Customer
    45 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
    45 Posts

    Or minus 5 ? :-)

    DP

    #266953
    Customer
    789 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? We started using StrateQuant software in early 2016. For now we have a very big knowhow for building EAs for every possible types of markets. We share this knowhow, apps, tools and also all final strategies with real traders. If you want to join us, fill in the FORM. 1500+ final SQX strategies for members running on demo accounts to verify the edge DEMO ACCS. We provide also strategies for indices - DAX, DOW JONES, NASDAQ, SP, UK, because we have realtick data from our brokers.

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

You must be logged in to reply to this topic.