|
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.
| Start of run Sunday night: 1st onAccount call Mon 7am |
|
RoadRunner
|
| Post subject: Start of run Sunday night: 1st onAccount call Mon 7am |
Post rating: 0
|
Posted: Mon 14 Dec, 2009, 12:28
|
|
User rating: 3
Joined: Wed 18 May, 2011, 16:25 Posts: 331 Location: SwitzerlandSwitzerland
|
|
When starting a strategy in DEMO mode on Sunday night, the first time, onAccount() gets triggered is Monday 7am. Is there a way to access the account data (IAccount.getEquity()... ) prior to Monday morning? How can I access the account details right after the start of a strategy?
Thanks and best, RR.
|
|
|
|
|
 |
|
API Support
|
| Post subject: Re: Start of run Sunday night: 1st onAccount call Mon 7am |
Post rating: 0
|
Posted: Mon 14 Dec, 2009, 16:33
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
Do you run your strategy in the JForex platform or using JForex API library?
|
|
|
|
|
 |
|
RoadRunner
|
| Post subject: Re: Start of run Sunday night: 1st onAccount call Mon 7am |
Post rating: 0
|
Posted: Mon 14 Dec, 2009, 17:46
|
|
User rating: 3
Joined: Wed 18 May, 2011, 16:25 Posts: 331 Location: SwitzerlandSwitzerland
|
|
This strategy is run in the JForex platform on instrument GBP/USD. I did start the strategy on Sun 2009.12.13 22:07 and onAccount() was first triggered Mon 2009.12.14 06:49 . There was no trade or tradesignal processing at this time or since the start of the run. The first getEquity() returned the value that was already shown in the status bar of the JForex client at the start of the run.
|
|
|
|
|
 |
|
RoadRunner
|
| Post subject: Re: Start of run Sunday night: 1st onAccount call Mon 7am |
Post rating: 0
|
Posted: Thu 17 Dec, 2009, 21:04
|
|
User rating: 3
Joined: Wed 18 May, 2011, 16:25 Posts: 331 Location: SwitzerlandSwitzerland
|
|
I've seen that with the latest build JF2.0.14 there is still the issue that onAccount() is not fired at the beginning of a run.
Is there any possibility to retrieve the equity (and other account related data) outside of onAccount()? I would need a method to retrieve the account data right at the start of a run. I didn't come across a method in the API docu how to do this but maybe I've missed something?
Any feedback is highly appreciated. Thanks, RR.
|
|
|
|
|
 |
|
[zortag]
|
| Post subject: Re: Start of run Sunday night: 1st onAccount call Mon 7am |
Post rating: 0
|
Posted: Sun 11 Jul, 2010, 21:07
|
|
User rating: 0
Joined: Sun 11 Jul, 2010, 20:12 Posts: 20
|
|
Has this been fixed? Any reasonable strategy will use account information like account free margin and user-specified risk percentage to compute a position lot size. If IAccount is not called at start of strategy then the first trade will not have access to this information, making JForex useless for writing strategies.
|
|
|
|
|
 |
|
API Support
|
| Post subject: Re: Start of run Sunday night: 1st onAccount call Mon 7am |
Post rating: 0
|
Posted: Tue 13 Jul, 2010, 08:43
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|