Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 672 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
5 bar reversal strategy #427208
08/05/13 09:55
08/05/13 09:55
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
Hiho together,

when i look at the Z strategies i see that the main time frame is 240min. Also those strategies have drawdowns of many weeks where you have no regular income.

I know that strategies based on higher timeframes are more predictable but for a more steady income it would be cool to see a strategy based on lower timeframes as 5 or 15 min.

What do you guys think of this strategy: 5 bar reversal setup ?

Re: 5 bar reversal strategy [Re: Sundance] #427236
08/05/13 13:51
08/05/13 13:51
Joined: Nov 2012
Posts: 126
B
blaub4r Offline
Member
blaub4r  Offline
Member
B

Joined: Nov 2012
Posts: 126
Originally Posted By: Sundance
Hiho together,

when i look at the Z strategies i see that the main time frame is 240min. Also those strategies have drawdowns of many weeks where you have no regular income.

I know that strategies based on higher timeframes are more predictable but for a more steady income it would be cool to see a strategy based on lower timeframes as 5 or 15 min.

What do you guys think of this strategy: 5 bar reversal setup ?




I think it is pretty difficult to find inefficiencies with smaller BarPeriods, that's why all Zorro Strategies have such big BarPeriods.

I'm trying to code a version of the 5 bar strategy and post it later.

Re: 5 bar reversal strategy [Re: blaub4r] #427237
08/05/13 13:55
08/05/13 13:55
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
Yeah. I think you are right. Those inefficiencies are lost within the random noise you find in lower timeframes...

Thanks for trying to program the strategy. It won't be that easy. Don't underestimate it :-)

Re: 5 bar reversal strategy [Re: Sundance] #427239
08/05/13 14:02
08/05/13 14:02
Joined: Nov 2012
Posts: 126
B
blaub4r Offline
Member
blaub4r  Offline
Member
B

Joined: Nov 2012
Posts: 126
Yeah, I'm not sure what to do if the priceClose() of the reversal bar already exceeds the entry price.

Re: 5 bar reversal strategy [Re: Sundance] #427240
08/05/13 14:05
08/05/13 14:05

A
acidburn
Unregistered
acidburn
Unregistered
A



Originally Posted By: Sundance
Hiho together,

when i look at the Z strategies i see that the main time frame is 240min.


I remember, when I first saw the Zorro project, that fact is the first thing that attracted me to it. Wow, somebody had a courage to market a 4h forex strategy? They must be genuine. wink

Originally Posted By: Sundance
I know that strategies based on higher timeframes are more predictable but for a more steady income it would be cool to see a strategy based on lower timeframes as 5 or 15 min.


Generally, I agree with you, it would be nice to develop at least one lower TF strategy for Zorro. Of course, the big problem is that market it so much more random at those TF. So it won't be easy. From what I read elsewhere, but it's all theoretical, more frequent trading could produce a strategy with a higher Sharpe, which then would allow higher leverage. Of course, it's easier said than done. I'm not even sure atm that winning strategies are possible at the timeframes below approx. 1 hour. Everybody's free to contest that though, but... grin

Originally Posted By: Sundance

What do you guys think of this strategy: 5 bar reversal setup ?


I guess we won't ever know, unless someone steps in, code and backtests it. wink It should be pretty straigthforward in Zorro, though.

Three things:

- it seems to be for the higher TF, also
- it seems overly simple (but that could be improved upon)
- on the first looking, I haven't caught any exit strategy mentioned, so the strategy is incomplete, as is

Re: 5 bar reversal strategy [Re: ] #427241
08/05/13 14:18
08/05/13 14:18
Joined: Nov 2012
Posts: 126
B
blaub4r Offline
Member
blaub4r  Offline
Member
B

Joined: Nov 2012
Posts: 126
function checkEntry()
{
int i;
// check for five negative candles
for (i = 5; i >= 0; i--)
{
if (i == 0)
if (priceClose(i) - priceOpen(i) > 0)
if (priceOpen(1) > priceClose(0))
{
Entry = priceOpen(1);
Stop = priceOpen(0);
TakeProfit = priceOpen(5);
enterLong();
}
if (priceClose(i) - priceOpen(i) >= 0)
break;
}
// check for positive candles
for (i = 5; i >= 0; i--)
{
if (i == 0)
if (priceClose(i) - priceOpen(i) < 0)
if (priceOpen(1) < priceClose(0))
{
Entry = priceOpen(1);
Stop = priceOpen(0);
TakeProfit = priceOpen(5);
enterShort();
}
if (priceClose(i) - priceOpen(i) <= 0)
break;
}
}

function run()
{
set(LOGFILE);
set(HEDGING);
// var *Trend = series(EMA(Price,250));
TimeWait = 5;

checkEntry();
// zoom in a certain date
StartDate = 20081025;
// NumDays = 10;
// plot("Trend",*Trend,0,RED);

PlotWidth = 800;
PlotHeight1 = 320;
}

That's my first result. Though I get a few "invalid Profit Target errors on EUR/USD, so there is probably still something wrong.

It does not seem to have an edge at first glance.

Re: 5 bar reversal strategy [Re: blaub4r] #427244
08/05/13 14:27
08/05/13 14:27
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
Hi acid,

blaub4r is already into programming .-)

About the Exit strategy i found something on another page. It should be near the last high/low or S/R or whatever makes you fear to stay in the trade :-)


blaub4r: Thanks. wow. Your fast. I just had created my Visio document for me to see where to go :-)

I will take a look on evening and will report back...


Thanks guys. Now back to work :-)

Re: 5 bar reversal strategy [Re: Sundance] #427246
08/05/13 15:17
08/05/13 15:17

A
acidburn
Unregistered
acidburn
Unregistered
A



Originally Posted By: Sundance
Hi acid,

blaub4r is already into programming .-)


Well, with Zorro, that's the only sane approach. Especially with simple strategy like this. Where you can expect tens of forum pages elsewhere, lamenting and tweaking this and that, a real Zorro coder codes and backtests it and either discards it or improves it in the next half an hour or less. wink

Originally Posted By: Sundance

About the Exit strategy i found something on another page. It should be near the last high/low or S/R or whatever makes you fear to stay in the trade :-)


Nah, say it in code. Or be nice to blaub4r. wink

Re: 5 bar reversal strategy [Re: ] #427254
08/05/13 17:35
08/05/13 17:35
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
So. As i made my visio document yesterday i had asked me also what TP to take. The SL is not the problem. It should be clear. I thought to give it a 1:1 or 2:1 risk/reward. So i would start with TP = 2*SL. Or just the simple way of trying to optimize this parameter... :-)

I will respond more later...

Re: 5 bar reversal strategy [Re: Sundance] #429817
09/19/13 06:51
09/19/13 06:51
Joined: May 2013
Posts: 627
Bonn
Sundance Offline OP
User
Sundance  Offline OP
User

Joined: May 2013
Posts: 627
Bonn
Just a quick info. I finished programming the 5bar reversal strategy and can say that this strategy is a total failure :-)
It does make some money but not on a stable basis. There are many month of draw down and no consistency in building some profit.
So guys. Forget about it. I will :-)

Page 1 of 2 1 2

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1