Dukascopy
 
 
Wiki JStore Search Login

Set Buy/Sell Price
 Post subject: Set Buy/Sell Price Post rating: 0   New post Posted: Wed 09 Dec, 2015, 13:10 
User avatar

User rating: 0
Joined: Thu 19 Nov, 2015, 06:43
Posts: 15
Location: MalaysiaMalaysia
Hi I am trying
1. Get the mean price from previous 1 hour candle
2. add 20 pips to mean price as long pending position (set as 15 minutes candle)
3. subtract 20 pips to mean price as short pending position (set as 15 minutes candle)

But it seems not working. Please help see what I did wrong.

Thanks in advance
Regards


Attachments:
Pips_20.vfs [39.93 KiB]
Downloaded 169 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: Set Buy/Sell Price Post rating: 0   New post Posted: Wed 09 Dec, 2015, 15:28 
Visual JForex expert at Dukascopy
User avatar

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

The amount traded is wrong: remember that the default traded amount is set in millions so you may need to consider dividing by 1000000 the result of your calculation.

Cheers


 
 Post subject: Re: Set Buy/Sell Price Post rating: 0   New post Posted: Thu 10 Dec, 2015, 11:55 
User avatar

User rating: 0
Joined: Thu 19 Nov, 2015, 06:43
Posts: 15
Location: MalaysiaMalaysia
Hi Thanks again for the reply.

I have 2 questions..
1. Related to the Set Buy/Sell, how can I set just for the current candle. For example when long/short pending position at mean price +/-20pips, once it passes the current 15 minutes candles , it should discard the pending position, and create next pending position so that I will not have many pending orders if not meet.

Question 2 is related to Parabolic SAR, I want to set it to default parameter, and the trigger short when first Parabolic SAR dot appears above the candlesticks and the trigger long when first Parabolic SAR dot appears below the candlesticks. Do you have the example for this strategy?

Regards


 
 Post subject: Re: Set Buy/Sell Price Post rating: 0   New post Posted: Thu 10 Dec, 2015, 14:47 
Visual JForex expert at Dukascopy
User avatar

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

I'm not sure I fully understand your first question. Could you please reformulate ?

If you only need to limit the number of pending positions then simply use the "Pending position Amount" variable for your condition .


2/ Sorry but I do not have any pattern that uses parabolic SAR as you described but you can do it yourself and let me know at which level you are blocked if any ...

Cheers


 
 Post subject: Re: Set Buy/Sell Price Post rating: 0   New post Posted: Fri 11 Dec, 2015, 08:46 
User avatar

User rating: 0
Joined: Thu 19 Nov, 2015, 06:43
Posts: 15
Location: MalaysiaMalaysia
Hi, I have some modification, but it still not long as per the diagram.
Image
Can you have a look why it is not long for the pending position?

Strategy
Using last candle 15 minutes close price add or subtract 20 pips to close price on current candle.

Regards


Attachments:
Pips_30_GBPUSD.vfs [51.09 KiB]
Downloaded 172 times
20Pips.jpg [345.24 KiB]
Downloaded 351 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: Set Buy/Sell Price Post rating: 0   New post Posted: Fri 11 Dec, 2015, 10:04 
Visual JForex expert at Dukascopy
User avatar

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

Could you please explain in detail the trading idea ? the overall trading idea including its parameters, entry and exit conditions and at which level you get stuck
I don't get why you cannot build what you're saying in VJF...

Please pay attention to the following:
- Working with last candle: The last candles data belongs to candle being constructed, thus the only known variable when a candle starts is the open price. The close price, the high and Low prices cannot definitely known till the candle is completely finished. why? because the market price is still moving till the candle period expires and thus the candle attributes will be determined at the end.
- make sure there is no condition blocking or limiting the execution of your action. Also, remember that conditions plugged out of 15mn candle period will be checked every 15mn (end of the candle)
- It doesn't make sense to plug OnTick start point if you work on candle periods (unless you know what are doing). It increases the strategy resources and may result in inconsistencies .
- We do not build strategies on behalf of users but rather help achieving certain actions, complex conditions based on best practices and our product knowledge. I'll be more than happy to give you detailed information on how the different components works in VJF so that you can achieve anything you want at the end of day. All the provided examples to users needs to be tested thoroughly in both demo and live / VJF and Jforex environments.

Thanks
A


 
 Post subject: Re: Set Buy/Sell Price Post rating: 0   New post Posted: Fri 11 Dec, 2015, 11:03 
User avatar

User rating: 0
Joined: Thu 19 Nov, 2015, 06:43
Posts: 15
Location: MalaysiaMalaysia
Hi Thanks again for the explanation.
I will re-look.


 

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