Dukascopy
 
 
Wiki JStore Search Login

Open at market trouble
 Post subject: Open at market trouble Post rating: 0   New post Posted: Tue 15 Oct, 2013, 07:30 

User rating: 0
Joined: Thu 03 Oct, 2013, 02:38
Posts: 2
Trying to set up so robot buys at market when condition is met.

1. 4hr candles only
2. 4hr candle closes above 4hr SMA
3. Buy @ market when last tick = 4hr SMA

Any ideas on were im going wrong wold be greatly appreciated.

vfs file attached below.


Attachments:
tester1.vfs [27.27 KiB]
Downloaded 151 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 at market trouble Post rating: 0   New post Posted: Wed 16 Oct, 2013, 09:18 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

The problem is that logically it makes no sense - At least if you want to see trades!

CandleClose >= SMA AND LastTick = SMA -> only if the lastTick(Close of the candle) = SMA then it will buy.

Your calculation is based on candle and the indicator is based on tick that means very much signals for the indicator and only one signal after a built candle.

Please have a look at our webinars and maybe you can also check the examples given in VJF below "Strategy".

In your case please explain exactly what the strategy should do because there are several possibilities to understand your willing.

Cheers


 
 Post subject: Re: Open at market trouble Post rating: 0   New post Posted: Fri 18 Oct, 2013, 00:06 

User rating: 0
Joined: Thu 03 Oct, 2013, 02:38
Posts: 2
Thank you for the quick response.

Essentially i want to execute a buy order at market when the following has been confirmed

1. 4hr candle closes above the 4hr SMA

- if the above condition is met, the system should buy at market when price touches the current 4hr SMA. This maybe on the current 4hr candle or it may be 2,3,4,5 etc candles later. i have attached an example, hopefully i make sense to you.


Attachments:
Example.docx [140.87 KiB]
Downloaded 162 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 at market trouble Post rating: 0   New post Posted: Mon 21 Oct, 2013, 08:14 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

I hope I get your question ;)


Attachments:
Example_SMA.vfs [32.82 KiB]
Downloaded 163 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.
 

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