Dukascopy
 
 
Wiki JStore Search Login

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

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

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

why no instruments subscribed in remote run mode
 Post subject: why no instruments subscribed in remote run mode Post rating: 0   New post Posted: Wed 16 Apr, 2014, 04:11 
User avatar

User rating: 1
Joined: Tue 27 Aug, 2013, 17:39
Posts: 26
Location: China, Shanghai
Hi supporter,
when the JDK demo strategy run in remote mode, it just do nothing,no instruments subscribed and no log is printed at all.
please kindly tell me why
thanks a lot
Image


Attachments:
File comment: JDK demo strategy
MA_Play.java [5.11 KiB]
Downloaded 122 times
File comment: Strategy log screenshot
Screenshot.png [27.99 KiB]
Downloaded 465 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: why no instruments subscribed in remote run mode Post rating: 0   New post Posted: Thu 24 Apr, 2014, 08:46 
User avatar

User rating: 1
Joined: Tue 27 Aug, 2013, 17:39
Posts: 26
Location: China, Shanghai
Status update:
now although no instruments subscribed displayed,but the strategy could be run,ontick events seems to normal,so strange...


 
 Post subject: Re: why no instruments subscribed in remote run mode Post rating: 2   New post Posted: Thu 24 Apr, 2014, 09:09 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
Do not look at Strategy Log report. It always shows 'No Instruments'.
Just check out what IContext.getSubscribedInstruments method returns.


 
 Post subject: Re: why no instruments subscribed in remote run mode Post rating: 2   New post Posted: Thu 24 Apr, 2014, 15:33 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
This is by design. Your Strategy must subscribe explicitly
to Instruments.

HyperScalper


 
 Post subject: Re: why no instruments subscribed in remote run mode Post rating: 0   New post Posted: Fri 25 Apr, 2014, 03:40 
User avatar

User rating: 1
Joined: Tue 27 Aug, 2013, 17:39
Posts: 26
Location: China, Shanghai
many thanks~


 
 Post subject: Re: why no instruments subscribed in remote run mode Post rating: 0   New post Posted: Mon 28 Apr, 2014, 09:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Read more here:
https://www.dukascopy.com/wiki/#Remote_Run


 

Jump to:  

cron
  © 1998-2024 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