Dukascopy
 
 
Wiki JStore Search Login

strategy runs good in local mode but not in remote (it opens more positions)
 Post subject: strategy runs good in local mode but not in remote (it opens more positions) Post rating: 0   New post Posted: Tue 12 Nov, 2013, 11:24 

User rating: 0
Joined: Tue 12 Nov, 2013, 11:10
Posts: 3
Location: ItalyItaly
Image

Hi all, i got a problem and i post a picture to show what happens with this procedure.
let' s say I need to open a buy and a sell position every day if there are not active positions: i used the code in picture to make this happen. when i use vjforex, or the local tester it correctly opens 1 position short and 1 position long every day. when i run it on remote server it doesn't work the same way, it opens 2 or more positions long and 2 or more short. Is there an error in my code or is it a bug of the system? i just need to open ONE Long and 1 Short position, not more. Can you help me pls?


Attachments:
open.png [248.69 KiB]
Downloaded 185 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: strategy runs good in local mode but not in remote (it opens more positions) Post rating: 0   New post Posted: Tue 12 Nov, 2013, 12:21 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

Please add this to your code:
Image


Attachments:
Instrument_only.png [9.89 KiB]
Downloaded 197 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: strategy runs good in local mode but not in remote (it opens more positions) Post rating: 0   New post Posted: Mon 18 Nov, 2013, 12:12 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 591
Location: UkraineUkraine
We had a little tech problem that day on Demo remote server. It is already fixed.
Keep calm and carry on.


 

Jump to:  

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