Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

My strategy stop on weekends and won't start on Monday
 Post subject: My strategy stop on weekends and won't start on Monday Post rating: 0   New post Posted: Mon 06 Oct, 2014, 06:49 
User avatar

User rating: 1
Joined: Mon 27 Jan, 2014, 14:03
Posts: 7
Location: TaiwanTaiwan
I compiled into a jar and run it. but the strategy always stop on weekends.
How to make it start on Monday automatically so that I don't need to start it by hand.


 
 Post subject: Re: My strategy stop on weekends and won't start on Monday Post rating: 0   New post Posted: Mon 06 Oct, 2014, 09:06 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello!

The strategy should not stop on weekends, if that happens and it's not part of strategy logic, then there could be two reasons:
1) There is logical error in your strategy and it throws an exception. This could be fixed by adding some conditions to your code like not submitting new orders on weekends, checking for object's state, checking for null, etc.
2) There is some bug in JForex Platform. In order to fix that we need a strategy that replicates the case.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com