Dukascopy
 
 
Wiki JStore Search Login

strategy doesn't work
 Post subject: strategy doesn't work Post rating: 0   New post Posted: Tue 31 Jan, 2017, 16:54 
User avatar

User rating: 1
Joined: Tue 24 Feb, 2015, 22:29
Posts: 15
Location: Egypt, Cairo
hi every one
this strategy should simply buys at yesterday high minus a predefined trigger and vice versa but unfortunately doesn't work
what is wrong


Attachments:
yesterday_high_low.vfs [38.64 KiB]
Downloaded 134 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 doesn't work Post rating: 0   New post Posted: Wed 01 Feb, 2017, 16:45 
Visual JForex expert at Dukascopy
User avatar

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

I've checked your strategy and it looks okay. I've made a quick test and I've seen a position opened.
Currently I cannot say more than that as we're experiencing an issue with historical data feed. We'll fix asap and update you if needed.
I've just made simple changes to your file: As the trading period is set to day: Better to use Oncandle method instead.

Cheers


Attachments:
yesterday_high_low_V2.vfs [39.13 KiB]
Downloaded 138 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 doesn't work Post rating: 0   New post Posted: Sun 12 Feb, 2017, 14:26 
User avatar

User rating: 1
Joined: Tue 24 Feb, 2015, 22:29
Posts: 15
Location: Egypt, Cairo
thank you Mr.Amine
I try also to do some statistical search
the first step is to find the previous week days of highest and lowest price (e.g. Monday had highest price and Friday had the lowest price during the past week)
to do this I tried to get the last Friday candle shift then get the high and low of 6 candles past that last Friday, then get day of week for highest and lowest candles.
It does not work .I don't know if it is due to code or the tester data feed problem
also if you suggest more simple way to get the result it will be appreciated


Attachments:
previous_week_high_low_days.vfs [41.26 KiB]
Downloaded 121 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 doesn't work Post rating: 0   New post Posted: Tue 14 Feb, 2017, 10:54 
Visual JForex expert at Dukascopy
User avatar

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

I tried to implement a dynamic shift so that "Get Hisotrical candle" will point on the previous week automatically but need your help to test and adjust it as per your requirements.
I'm sure you'll get the logic of this example.. you have to double check the shift when the day is saturday: either you need to retrieve the current week data OR you need the previous one. In this example I've kept the current week data so shift is assigned back to 1. If you still need the previous data while the day is sat. then simply continue the sum cycle to have shift = 8


Attachments:
previous_week_high_low_days_V2.vfs [37.94 KiB]
Downloaded 137 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:  

  © 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