Dukascopy
 
 
Wiki JStore Search Login

Strategy / Command. Limit limit order.
 Post subject: Strategy / Command. Limit limit order. Post rating: 0   New post Posted: Wed 17 Jun, 2015, 03:26 
User avatar

User rating: 0
Joined: Sat 30 Aug, 2014, 06:40
Posts: 5
Location: FinlandFinland
Hi folks,

I'm new to JForex and would like to know if it is possible to create the following:

I would like create a command (strategy) where I can set a limit price for a limit order to become active (or in this case pending).
An example: Eur/Usd is at 1.1850 and ticking upwards and I want my strategy to create a sell stop order at 1.1970 when the price reaches 1.2000. So instead of making a limit order at 1.1970 straight away I want to see the price to reach a certain level and then turn. And I would like to do this in advance without the need to be present when a price alert goes off. Would be great if the difference between the chosen level and the actual order could be defined as pips, but a price value will do too.

Same thing for upward and downward moves and also for take profit orders.

The reason behind this is that I would like to be able to place limit orders without fearing news generated big moves blowing my trades immediately away (in case of an incorrect reversal level) and to benefit those same big moves without closing my trades with take profit if the price goes straight through the TP level.

Big thanks in advance!

Boris

PS. Shouldn't be too difficult if doable, but the initial step to start with visual jforex seems difficult.


 
 Post subject: Re: Strategy / Command. Limit limit order. Post rating: 0   New post Posted: Wed 17 Jun, 2015, 10:40 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

From your example, you need to define how the prices are going up ? Based on candles? Ticks ?
There should be 2 adjustable variables according to your example: the "the chosen level" and the target difference in pips. I've made a quick example for you, please check it and let me know your thoughts.

Cheers


Attachments:
SampleENtryStop.vfs [31.25 KiB]
Downloaded 189 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 / Command. Limit limit order. Post rating: 0   New post Posted: Thu 18 Jun, 2015, 14:36 
User avatar

User rating: 0
Joined: Sat 30 Aug, 2014, 06:40
Posts: 5
Location: FinlandFinland
Thanks for your swift reply!

I guess ticking upwards wasn't the best of phrases ;) just meant moving upwards for that example.
I was looking for a a price as a starting point, because that already accomplishes what I need. No candles required.

Is it possible to have the pending order type (buy/sell) as a variable? Would like to use it both ways.

Other than that, looks great, haven't had time to test it yet tho.

Thanks in advance,

Boris


 
 Post subject: Re: Strategy / Command. Limit limit order. Post rating: 0   New post Posted: Fri 19 Jun, 2015, 06:07 
User avatar

User rating: 0
Joined: Sat 30 Aug, 2014, 06:40
Posts: 5
Location: FinlandFinland
I modified the strategy by removing the candle calculation and made separate ones for buying and selling, but now the strategies just stop when I try to run them. Any ideas?
Boris


Attachments:
BuyStop.vfs [25.88 KiB]
Downloaded 125 times
SellStop.vfs [25.88 KiB]
Downloaded 126 times
SellStop.vfs [25.66 KiB]
Downloaded 159 times
BuyStop.vfs [25.65 KiB]
Downloaded 156 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 / Command. Limit limit order. Post rating: 0   New post Posted: Fri 19 Jun, 2015, 13:55 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

You need to include an instrument filter so that the strategy will trade on specific instrument:
Simply input an IF block with: Default instrument = Last tick BID (or ASK) instrument
The strategy should work normally.

Thanks


 

Jump to:  

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