|
two currency pairs and two open positions in the same time? |
marius24
|
Post subject: two currency pairs and two open positions in the same time? |
Post rating: 0
|
Posted: Fri 08 Apr, 2016, 11:40
|
|
User rating: 0
Joined: Wed 22 Feb, 2012, 12:24 Posts: 44 Location: Romania, Bucharest
|
Hi, I can't figure out what to change in this strategy in order to have 1 positon open in eur/usd and 1 position open in aud/usd in the same time, but not more than 1 position open in each of them.
I attached a vfs file below
Attachments: |
twopairs_V234.vfs [38.7 KiB]
Downloaded 167 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.
|
|
|
|
|
 |
amine_chourou
|
Post subject: Re: two currency pairs and two open positions in the same time? |
Post rating: 0
|
Posted: Fri 08 Apr, 2016, 15:37
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi,
This can be done as attached: 1/ Avoid the use of "Open Position Amount" as it impacts any opened position so if you set your condition Open position =0 then it includes any open position regardless of the instrument traded AND/OR the place where your condition is plugged. 2/ Use logical variables: in this example: GO_EURUSD and GO_AUDUSD (feel free to set the name that you want) and as you can see, IF true then the next is executed, and once position is opened --> we set it to FALSE. 3/ Reset your logical variable to their initial value. Why ? to allow opening further positions if your condition are met. How ? look at the Trade Event start point: IF your position is closed then the reset is made. You can even play with this like : IF position is closed AND with profit then you reset .. and so on ..
Attachments: |
twopairs_V234_V2.vfs [49.96 KiB]
Downloaded 173 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.
|
|
|
|
|
 |
marius24
|
Post subject: Re: two currency pairs and two open positions in the same time? |
Post rating: 0
|
Posted: Mon 11 Apr, 2016, 10:13
|
|
User rating: 0
Joined: Wed 22 Feb, 2012, 12:24 Posts: 44 Location: Romania, Bucharest
|
Hi. First of all thank you  I run this strategy but every time i get two different results. If i set up Aud/Usd as default instrument in global variables section i get a result. If i set up Eur/Usd as default instrument in global variables i get another result. I attacched some jpg file for a better understanding It was supposed to have the same result regardless which pair i set up as Default instrument in Global variables  
Attachments: |
eurusd.jpg [70.96 KiB]
Downloaded 381 times
|
audusd.jpg [81.2 KiB]
Downloaded 396 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.
|
|
|
|
|
 |
amine_chourou
|
Post subject: Re: two currency pairs and two open positions in the same time? |
Post rating: 0
|
Posted: Mon 11 Apr, 2016, 16:05
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi, Quote: It was supposed to have the same result regardless which pair i set up as Default instrument in Global variables Absolutely not ! Even if the strategy is exactly the same, when applied to to 2 different currency pairs the results may vary as the execution prices are indeed different and even the PIP value changes from a currency pair to another (this is not the case of EURUSD Vs AUDUSD but still, the difference that you get comes from the prices, spreads, slippages etc...). I'm not including here LIVE conditions of cost of carry (rollovers) etc .. So this is normal.
|
|
|
|
 |
marius24
|
Post subject: Re: two currency pairs and two open positions in the same time? |
Post rating: 0
|
Posted: Tue 12 Apr, 2016, 08:11
|
|
User rating: 0
Joined: Wed 22 Feb, 2012, 12:24 Posts: 44 Location: Romania, Bucharest
|
Yap..you are right. Thanks 
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|