Hi Guys,
Here is my manual trading system, I don't know if it is good to produce an EA for this but would save a lot of time watching charts
Timeframes : M15 H1 H4
Pairs : E/U, G/U
Indicators : ZigZag 13,5,5 + stochs 13,3,3
Trading hours : 8:00 - 20:00 (london open + 12)
I attached the indicator I use. It plot the lines when previous hi/low is fixed.
I plot 2 lines from previous hi & low. When the price break one of those by a number of pips defined by the pip difference between current hi-low, I trigger a trade, long or short depends the direction.
Positions can be confirmed with higher timeframe or directly by the stochs (if you like them).
SL is Pips difference / 2
TP isn't clearly defined, I currently use a jumping stop and I move my SL at BE when I have 15pips. I also tested trailing stop.
Example on the attached charts :
GU : Hi-low pips difference is around 43. When price break the blue line by 4pips (43/10), a long trade is triggered.
EU : Hi-Lo pips = 40. Short has been triggered at redline + 4pips
It doesn't produce a lot of trades but they are profitable when triggered.
Maybe we can use buy/sell stops and launch new pending orders if hi-low hasn't been broken.
Does anyone have the time to code this into an EA ?
Tell me what do you think ! Comments highly welcome !
Cheers,
Lio
ZigZag breakdance
- lhDT
- Trader
- Posts: 198
- Joined: Tue Nov 15, 2011 9:52 pm
- Location: Brussels/Belgium
ZigZag breakdance
You do not have the required permissions to view the files attached to this post.
- DING
- Trader
- Posts: 103
- Joined: Wed Nov 16, 2011 11:53 am
Re: ZigZag breakdance
how about the performance as your past manual trading experience ? :
- lhDT
- Trader
- Posts: 198
- Joined: Tue Nov 15, 2011 9:52 pm
- Location: Brussels/Belgium
Re: ZigZag breakdance
Performance is quite good but patience is a key and to be honest I like when things move fast
It is one or two trades per day max.
If I followed that strategy 100% I should get around 80% winning trades but I was more trying to catch pullbacks or S/R trades than real breaks.
It is one or two trades per day max.
If I followed that strategy 100% I should get around 80% winning trades but I was more trying to catch pullbacks or S/R trades than real breaks.
- lhDT
- Trader
- Posts: 198
- Joined: Tue Nov 15, 2011 9:52 pm
- Location: Brussels/Belgium
Re: ZigZag breakdance
Code for an EA. (logic is done).
Function to get the last 3ZigZag points
Code to get the values :
Code to trigger for a long position :
Code to trigger for a long position :
The code isn't probably optimized but the logic is there.
I tried to put that in the Steve's Shell but there are way too much values I don't understand
Steve, if you have time could you please try ?
Thanks,
Lionel
Function to get the last 3ZigZag points
Code: Select all
void getZigZag()
{
int backBars = 2000;
int loops = 0;
for(x=0;x<=backBars;x++)
{
double zig = iCustom(NULL, 0, "ZigZag SG",13,5,5,0,0+x);
if(zig != 0) { zigTest[loops] = zig; loops++; }
if(loops==3){ break; }
}
}
Code: Select all
getZigZag();
if(zigTest[1]>zigTest[2]) { zigHigh = zigTest[1]; zigLow = zigTest[2]; } else { zigHigh = zigTest[2]; zigLow = zigTest[1]; }
hlPips = (zigHigh-zigLow)*10000;
StopLoss = hlPips/2;
nextBuyPrice = zigHigh+(zigHigh-zigLow)/10;
nextSellPrice = zigLow-(zigHigh-zigLow)/10;
Code: Select all
Ask > nextBuyPrice
Code: Select all
Bid > nextSellPrice
I tried to put that in the Steve's Shell but there are way too much values I don't understand
Steve, if you have time could you please try ?
Thanks,
Lionel
Re: ZigZag breakdance
Is this sort of like supply demand trading breakouts as Sam Seiden teaches? Don't take the breakout but take the re-test? Do you also take trades that come into the "zones"?