Dukascopy
 
 
Wiki JStore Search Login

Open order on multy cross only if open positions on each cross=0
 Post subject: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Wed 26 Jun, 2013, 01:22 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
Hello, I explain you what I need today...

Let's say that...

On each 5 minutes candle....
if eurusd positions open = 0 -> open eurusd @ mkt on next 5 min candle
if gbpusd positions open = 0 -> open gbpusd @ mkt on next 5 min candle

if eurusd pos open =1 -> open no position on next 5 minutes candle
if gbpusd pos open =0 -> open gbpusd @mkt on next 5 mins candle

if eurusd pos open =0 -> open eurusd@mkt on next 5 minutes candle
if gbpusd pos open =1 -> open no gbpusd on next 5 mins candle

if eurusd =1 both open no new positions on 5 mins candle
gbp usd =1

https://gyazo.com/9c2a3545d51021ff690a052f36efffd8.png

thank you for your answers


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 1   New post Posted: Wed 26 Jun, 2013, 07:12 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
hello

Please post the .vsf file so we can analyse your strategy.


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Wed 26 Jun, 2013, 09:29 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
here you are


Attachments:
BoLApe_x3_short_multicross_multitime.vfs [81.06 KiB]
Downloaded 343 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: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Wed 26 Jun, 2013, 12:32 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Hello.

If I understand you correctly, then this would be a solution:
download/file.php?mode=view&id=3910
It is a little bit clumsy, but it works.


Attachments:
PositionCheck.VFS [32.09 KiB]
Downloaded 421 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: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Wed 26 Jun, 2013, 12:53 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
I haven't understood anything...


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Wed 26 Jun, 2013, 13:26 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Please be more specific about the problem you`v faced.


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Wed 26 Jun, 2013, 15:41 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
Simply I have not understood how your boxes are working and wich parameters are you using. I have to learn how the system works (understand how to set that discretionality parameter (if no gbpusd open, op3n new gbpusd position. Please set message description nearby your boxes or semplify the system... its useless for me simply copy paste what you sent me

Sent by GNote2


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Thu 27 Jun, 2013, 08:39 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
To learn Visual JForex, maybe you should start by watching the tutorials and try to reproduce the simple strategies explained.

They are here: viewtopic.php?f=139&t=49393

Than you will understand quickly how it works.


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Thu 27 Jun, 2013, 09:49 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
already done it... but there still be some kind of operations that I don't figure out


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Thu 27 Jun, 2013, 15:42 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
still be up, shall someone explain me how those boxes works?


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Fri 28 Jun, 2013, 15:36 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
OK, here is a simple strategy that will do:

On each 5 minutes candle....
if eurusd positions open = 0 -> open eurusd @ mkt on next 5 min candle

if eurusd pos open =1 -> open no position on next 5 minutes candle

It is based on a counter that goes to 1 when a position is opened and that to 0 when the position closes (Stop loss, take profit or manual closing).

If counter = 0 , than a position is opened


Attachments:
seancappone1.vfs [29.4 KiB]
Downloaded 332 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: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Fri 28 Jun, 2013, 16:24 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
I was thinking about that too, but I didn't know where to find the if-> instrument eurusd pos open 0. When I get back home I check it, thank you for the answer in the meanwhile


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Sat 29 Jun, 2013, 01:09 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
okey, it dosn't work, here we are, I send you my strategy...

how it works?

it works between 14 and 17 gmt

it works on no timeframe, I mean at 14 it starts working on first tick (not candle).... It open @mkt the first 2 positions (gbpusd and eurusd) on the first h14 tick...

if 1 of the 2 positions (gbp chain or eurchain) reach TP or SL, the following tick it open a new position (chain of positions)

I need it to open 1 chain per time (so just 1 "pos1" per time, until the chain completely ends, or with tp or with sl)

example

it's 14o'clock

- eurusd price 1.3050, it open @mkt 1 pos long
-gbpusd 1.5050, @mkt 1 pos long

2 mins 34 sec later....
- eurusd 13040,10 pips sl,
-new pos @mkt long

2 mins 50 later...
-gbpusd 1.5060 tp 10 pips
-new pos @mkt long

4 mins later
-eurusd tp
new pos @mkt long


____________________________________

I need so 2 independent chains, one gbpusd, other eurusd, that until they don't finish their trail, they don't allow to open a new chain...

I mean

pos@mkt eurusd open
pos@mkt gbpusd open

5 mins later....

postions open: eurusd 13050
gbpusd 15050
the robot open a new pos
eurusd 13070

total eurusd pos(chains)=2

There should be so at max 1 pos per type per time...

clear? any doubts? someone can rescue me please? :(


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Sun 30 Jun, 2013, 15:02 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
up... please help me out


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Mon 01 Jul, 2013, 07:41 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
You posted on : Sat 29 Jun, 2013, 01:09

And then the next day (Sunday):
up... please help me out.
Allow us to have a life besides Visual JForex :lol:

I will give you a secret: we rarely work on weekends (even if it happens sometimes). :mrgreen:

I will have a look at your strategy. Did you watch the early birds tutorial?

https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=139&t=49393


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Mon 01 Jul, 2013, 07:57 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
all sir =) I just want to finish to compile it and test it =) :mrgreen:


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Mon 01 Jul, 2013, 08:54 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
Quote:
it dosn't work

What does not work?

If I understood well, the only differences between the strategy I posted before and the one you described are:

- tick not candles
- starting time
- multi-currency.

Did I get that right?


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Mon 01 Jul, 2013, 11:23 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
Bruno_Grunberg wrote:
Quote:
it dosn't work

What does not work?

If I understood well, the only differences between the strategy I posted before and the one you described are:

- tick not candles
- starting time
- multi-currency.

Did I get that right?



yes, and each time you open a position (for example, check output of orders, they are named {pos 1, 2,3....}) you start a chain (pos1 opens pos2, pos 2 opens pos 3... so on). I want the system open a cross chain per time (only 1 chain per cross, I mean 1 eurusd chain, 1 gbpusdchain.....)

if you need any other clarifications... here I am, studying ans waiting for your kind support =)

if you want a live chat... skype: sean_cappone


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Mon 01 Jul, 2013, 11:45 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
Quote:
each time you open a position (for example, check output of orders, they are named {pos 1, 2,3....}) you start a chain (pos1 opens pos2, pos 2 opens pos 3... so on)


That is exactly what I did not get.

What are this chaines and what are their purpuses?


 
 Post subject: Re: Open order on multy cross only if open positions on each cross=0 Post rating: 0   New post Posted: Mon 01 Jul, 2013, 23:06 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
https://gyazo.com/1755e854309f31bfa21fe29843a2271c.png

let's take eurusd chain

until a position in the chain (now you see just 3 pos in the chain, I will set later more positions) dosn't reach a tp, the chain still be considered open, and the strategy wil keep opening the forwarding positions (pos2, pos3, pos4,..., posN) until one of the positions in the chain dosn't close with stop loss but with tp. When one of them fills tp, the strategy start that chain from pos1 (if the time variable is correct , I mean if the time is between 14 and 17 o'clock).

roger that?


 

Jump to:  

  © 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