Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Open order on multy cross only if open positions on each cross=0 http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=49472 |
Page 1 of 2 |
Author: | seancappone [ Wed 26 Jun, 2013, 01:22 ] |
Post subject: | Open order on multy cross only if open positions on each cross=0 |
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 |
Author: | Bruno_Grunberg [ Wed 26 Jun, 2013, 07:12 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
hello Please post the .vsf file so we can analyse your strategy. |
Author: | seancappone [ Wed 26 Jun, 2013, 09:29 ] | ||
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 | ||
here you are
|
Author: | vadim_berezhnoj [ Wed 26 Jun, 2013, 12:32 ] | ||
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 | ||
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.
|
Author: | seancappone [ Wed 26 Jun, 2013, 12:53 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
I haven't understood anything... |
Author: | vadim_berezhnoj [ Wed 26 Jun, 2013, 13:26 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
Please be more specific about the problem you`v faced. |
Author: | seancappone [ Wed 26 Jun, 2013, 15:41 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
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 |
Author: | Bruno_Grunberg [ Thu 27 Jun, 2013, 08:39 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
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. |
Author: | seancappone [ Thu 27 Jun, 2013, 09:49 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
already done it... but there still be some kind of operations that I don't figure out |
Author: | seancappone [ Thu 27 Jun, 2013, 15:42 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
still be up, shall someone explain me how those boxes works? |
Author: | Bruno_Grunberg [ Fri 28 Jun, 2013, 15:36 ] | ||
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 | ||
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
|
Author: | seancappone [ Fri 28 Jun, 2013, 16:24 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
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 |
Author: | seancappone [ Sat 29 Jun, 2013, 01:09 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
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? |
Author: | seancappone [ Sun 30 Jun, 2013, 15:02 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
up... please help me out |
Author: | Bruno_Grunberg [ Mon 01 Jul, 2013, 07:41 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
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 I will give you a secret: we rarely work on weekends (even if it happens sometimes). 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 |
Author: | seancappone [ Mon 01 Jul, 2013, 07:57 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
all sir =) I just want to finish to compile it and test it =) |
Author: | Bruno_Grunberg [ Mon 01 Jul, 2013, 08:54 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
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? |
Author: | seancappone [ Mon 01 Jul, 2013, 11:23 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
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 |
Author: | Bruno_Grunberg [ Mon 01 Jul, 2013, 11:45 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
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? |
Author: | seancappone [ Mon 01 Jul, 2013, 23:06 ] |
Post subject: | Re: Open order on multy cross only if open positions on each cross=0 |
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? |
Page 1 of 2 |