Dukascopy
 
 
Wiki JStore Search Login

If all posiotions closed
 Post subject: If all posiotions closed Post rating: 0   New post Posted: Mon 03 Feb, 2014, 14:45 

User rating: 0
Joined: Mon 27 Jan, 2014, 16:40
Posts: 10
Location: LithuaniaLithuania
Hi, I'm very new in programming. Could you please help me to create very simple strategy: if no open positions at the moment for EUR/USD, open two orders - one SELL at market price, second - BUY at market price. Both orders has stop loss 15 pips and take profit 20 pips. Thank you :)


 
 Post subject: Re: If all posiotions closed Post rating: 0   New post Posted: Mon 03 Feb, 2014, 18:14 
Visual JForex expert at Dukascopy
User avatar

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

please have a look at the strategy attached.

I recommend you to watch all available videos about Visual JForex in our youtube channel:
https://www.youtube.com/results?search_q ... forex&sm=1


Attachments:
simple4.vfs [21.5 KiB]
Downloaded 193 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: If all posiotions closed Post rating: 0   New post Posted: Mon 03 Feb, 2014, 20:09 

User rating: 0
Joined: Mon 27 Jan, 2014, 16:40
Posts: 10
Location: LithuaniaLithuania
Thank's a lot!!!


 
 Post subject: Re: If all posiotions closed Post rating: 0   New post Posted: Mon 03 Feb, 2014, 20:23 

User rating: 0
Joined: Mon 27 Jan, 2014, 16:40
Posts: 10
Location: LithuaniaLithuania
And what should be changed in this strategy to get endless process - when take profit and stop loss are executed start strategy from the begining automaticaly - if no open positions at the moment for EUR/USD (its true, because all orders are executed) , open two orders - one SELL at market price, second - BUY at market price, both orders has stop loss 15 pips and take profit 20 pips. And again, and again...


 
 Post subject: Re: If all posiotions closed Post rating: 0   New post Posted: Wed 05 Feb, 2014, 09:29 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Well, I think you answered your question by yourself... In the input values of "Open at Market" block you see the settings for TP and SL. Once the definition is reached there will be another two positions opened by the strategy.

Or maybe I did get you wrong?


 
 Post subject: Re: If all posiotions closed Post rating: 0   New post Posted: Thu 06 Feb, 2014, 10:30 

User rating: 0
Joined: Mon 27 Jan, 2014, 16:40
Posts: 10
Location: LithuaniaLithuania
Strategy is ok :) Tried few more times and it works. Strategy tester sometimes works fine, sometimes hangs out... Especially on bigger time periods...
Anyway thank you so much!!!


 
 Post subject: Re: If all posiotions closed Post rating: 1   New post Posted: Fri 07 Feb, 2014, 10:21 
Visual JForex expert at Dukascopy
User avatar

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


 

Jump to:  

  © 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