|
Implement once per day strategy from a specific time based on set range of candle periods |
methetrader
|
Post subject: Implement once per day strategy from a specific time based on set range of candle periods |
Post rating: 0
|
Posted: Mon 24 Feb, 2014, 14:57
|
|
User rating: 0
Joined: Mon 24 Feb, 2014, 12:51 Posts: 2 Location: IrelandIreland
|
Hello,
I currently am implementing a strategy to start at 10 GMT and end at 13 GMT. However, there are additional components that I want considered but I've not been able to program into the strategy:
1) I want to only allow 1 trade per day based on the strategy 2) though I want the stategy to implement 1 trade between 10:00-13:00 I want the cycle that the trade is based on to remain constant - basically I want the stategy only to look at the high price and low price between 5am-9:59am in order to trigger the trade event.
Can someone please provide guidance on this?
|
|
|
|
 |
dirk_r1
|
Post subject: Re: Implement once per day strategy from a specific time based on set range of candle periods |
Post rating: 0
|
Posted: Fri 28 Feb, 2014, 18:21
|
|
Visual JForex expert at Dukascopy |  |
User rating: 27
Joined: Fri 03 May, 2013, 18:25 Posts: 366 Location: GermanyGermany
|
Greetings!
Actually, there are at least two options how to do it:
1. on candle start point: you need to calculate the number of hour-candles; you will get the time as well 2. on tick start point as an example is attached.
Attachments: |
methetrader_Time_expl.vfs [41.09 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.
|
|
|
|
|
 |
methetrader
|
Post subject: Re: Implement once per day strategy from a specific time based on set range of candle periods |
Post rating: 0
|
Posted: Tue 04 Mar, 2014, 16:32
|
|
User rating: 0
Joined: Mon 24 Feb, 2014, 12:51 Posts: 2 Location: IrelandIreland
|
Thank you very much Dirk. I think most of my questions are answered but this might have created some additional questions.
I tested your sample exactly as it is. Without the SL and TP targets the once position only opens and doesn't close. When I tried to add a SL and TP then I ran it over a 1mo period , the strategy only ever implemented once and closed once the TP was hit rather than once per day though the conditions were met many times - so there might be an issue with the logic in that area.
For the high/low designations - I want to trigger a Buy if the price is 2 pips greater than the highest ask in the range ask and I want to trigger a Sell if the price is 2 pips lower than the lowest bid in the range - can I just base this off of the range of candles between 5am-10am GMT?
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|