|
|
|
The Fozzy EA
 |
|
|

Sep 29, 2006 10:42am
|
|
|
The Fozzy EA
Attached is the EA for the Daily Fozzy method. The method is described here: http://www.forexfactory.com/forexfor...ead.php?t=7984.
The EA was developed jointly by tradeigel and stockwet.
The EA has the following features:
- Automatically opens a new order if criteria is met for a given currency (only one order per currency pair is allowed open at a time.)
- Allows the trader to take ALL crosses, or, only those that also meet the Bollinger Bands median line criteria.
- Trader can specify the number of lots to trade.
- The Stop Loss is automatically set to the preceding bar's high or low value (depending on trade direction.)
- The SL can optionally be set based on BeachBum's ATR method.
- Traders can specify a stop loss "cushion" which would place the initial stop loss above or below the high or low based on the number of pips specified (account for double touches, spreads, whatever.)
- The SL is moved to breakeven when a specified number of pips is reached.
- A trailing stop feature can be enabled. Traders can specify when to activate the trailing stop and the amount to trail by.
- A maximum TP amount can also be specified.
- The EA sets the magic number to 7984 (same as the Fozzy thread id) so that the EA does not impact other trades on the same currency.
- The EA does not hardcode the daily time period, enabling Fozzy to be run or tested on other time periods.
- The EA can send alerts to email when a valid signal occurs.
- Live trading can be disabled in the EA itself.
Future possible features: - Ability to take partial profit out at a specified target
- Others?
The latest Fozzy EA will always be posted on this first thread to ensure that it is easy to find. If you have any bugs, questions, suggestions, etc., use this forum. If you have questions about the method itself, refer to the main Fozzy thread in the Discussion forum (see link above.)
**** UPDATES ****
:: 9-29-2006: Changed okToCheck to support trading only on 00 GMT, if the Use_00_GMT variable is set to
true. Otherwise, trades open on new bar.
:: 9-30-2006: Added parameter to specify MA method. Uses EMA by default now.
:: 10-2-2006: Added ability to set SL according to ATR(10) method, as described by BeachBum
:: 10-3-2006: Added feature for taking partial profit out at a specified level. User specifies number of lots to take out.
Currently, this feature only supports a single partial profit takeout. It looks to see if the order lots
is equal to the Lots value. So, the EA can be "tricked" into taking additional partial profit by modifying the
Lots value to equal the current open order lots remaining and resetting the partial profit value.
:: 10-9-2006: Added alert feature when a cross occurs. Also added Trade_Live parameter to turn live trading on and off.
:: 10-17-2006: Bug Fix: TP amount getting set to 0 on B/E and Trailing Stop functions.
:: 10-23-2006: Bug Fix (v2.2): RSI MA values being incorrectly calculated in EA. Added feature to include test information as comments in chart window.
:: 10-24-2006: Incremented EA version. Fozzy 2.1 is old version with incorrect calculations but positive EA results. Fozzy 2.2 includes the calculation fix.
****
Last edited by stockwet, Oct 24, 2006 8:22am
|

Sep 29, 2006 10:58am
|
 |
Trade the MAX System with me...
|
|
|
|
Outstanding work stockwet & tradeigel.....thank you very much!
I can't wait to test with this EA........
Quote:
|
Originally Posted by stockwet
Attached is the EA for the Daily Fozzy method. The method is described here: http://www.forexfactory.com/forexfor...ead.php?t=7984.
The EA was developed jointly by tradeigel and stockwet.
The EA has the following features: - Automatically opens a new order if criteria is met for a given currency (only one order per currency pair is allowed open at a time.)
- Allows the trader to take ALL crosses, or, only those that also meet the Bollinger Bands median line criteria.
- Trader can specify the number of lots to trade.
- The Stop Loss is automatically set to the preceding bar's high or low value (depending on trade direction.)
- Traders can specify a stop loss "cushion" which would place the initial stop loss above or below the high or low based on the number of pips specified (account for double touches, spreads, whatever.)
- The SL is moved to breakeven when a specified number of pips is reached.
- A trailing stop feature can be enabled. Traders can specify when to activate the trailing stop and the amount to trail by.
- A maximum TP amount can also be specified.
- The EA sets the magic number to 7984 (same as the Fozzy thread id) so that the EA does not impact other trades on the same currency.
- The EA does not hardcode the daily time period, enabling Fozzy to be run or tested on other time periods.
Future possible features: - Ability to take partial profit out at a specified target
- Alert mechanism
- Others?
The latest Fozzy EA will always be posted on this first thread to ensure that it is easy to find. If you have any bugs, questions, suggestions, etc., use this forum. If you have questions about the method itself, refer to the main Fozzy thread in the Discussion forum (see link above.)
|
__________________
good trading to all......
BB
I traded in my surfboard for a keyboard...
Fozzy Table of Contents: HERE
|

Sep 29, 2006 12:47pm
|
|
|
I'm new to metatrader, and I had no idea this program was this powerful. I think I've found my new interface. Too bad Oanda doesn't support it.
__________________
So far so good.
|

Sep 29, 2006 4:19pm
|
 |
Member
|
|
|
|
Thanks for sharing, stockwet & tradeigel!
I was thinking to make an EA for Fozzy myself, but it's much nicer to just enjoy someone else 's work. 
|

Sep 29, 2006 4:43pm
|
 |
Member
|
|
|
|
A bug?
Don't be mad if I am wrong,  , but there seems to have a bug in the oktocheck() function, in which you use the bar numbers to determine if there is a new opening bar:
if (lastBars != Bars && checkOpenTrade()==0) barOK = true;
but when a trade open and stop in the same day, the bar number hasn't changed and the setup may be still there, so the trade will be reopened and stopped out again and again until the setup disappears or the next day coming. I found this in my back tests.
I verified this by modified one line in the start() as following and problem solved:
if(checkOpenTrade() == 0 && Hour()==0 && Minute()<1 && Seconds()<10) getSignal();
You probably want to fix the oktocheck() instead of doing what I did.
Try backtesting GBPUSD in Aug 06 and you will find this bug.
Just a tiny problem. THE EA STILL ROCKS!
|

Sep 29, 2006 5:13pm
|
|
|
Hey thanks. I'm not sure if this is a bug or not. I was under the impression that there really is only one trade per day since you should be checking at the start of each day. Nothing has been said on the forum about what to do if you're stopped out in the same day. Do you reenter again, or, wait until the next valid signal. It's an excellent observation.
Quote:
|
Originally Posted by aha
Don't be mad if I am wrong,  , but there seems to have a bug in the oktocheck() function, in which you use the bar numbers to determine if there is a new opening bar:
if (lastBars != Bars && checkOpenTrade()==0) barOK = true;
but when a trade open and stop in the same day, the bar number hasn't changed and the setup may be still there, so the trade will be reopened and stopped out again and again until the setup disappears or the next day coming. I found this in my back tests.
I verified this by modified one line in the start() as following and problem solved:
if(checkOpenTrade() == 0 && Hour()==0 && Minute()<1 && Seconds()<10) getSignal();
You probably want to fix the oktocheck() instead of doing what I did.
Try backtesting GBPUSD in Aug 06 and you will find this bug.
Just a tiny problem. THE EA STILL ROCKS!
|
|

Sep 29, 2006 5:24pm
|
|
|
Actually,
I re-read your post again and realized I may have misunderstood. Are you saying that the EA currently opens up multiple orders if stopped out, or that it does not open up multiple orders and you would like it to?
I think I see what you're saying - that the EA opens multiple orders if stopped out and we need to keep that from happening.
Tradeigel suggested using time code instead of the bars code. I like that idea. But, when I tested the time code, I got really funny results in strategy tester (not that I know how to use it anyway.)
I'll make the change and see how it does.
stockwet
Quote:
|
Originally Posted by aha
Don't be mad if I am wrong,  , but there seems to have a bug in the oktocheck() function, in which you use the bar numbers to determine if there is a new opening bar:
if (lastBars != Bars && checkOpenTrade()==0) barOK = true;
but when a trade open and stop in the same day, the bar number hasn't changed and the setup may be still there, so the trade will be reopened and stopped out again and again until the setup disappears or the next day coming. I found this in my back tests.
I verified this by modified one line in the start() as following and problem solved:
if(checkOpenTrade() == 0 && Hour()==0 && Minute()<1 && Seconds()<10) getSignal();
You probably want to fix the oktocheck() instead of doing what I did.
Try backtesting GBPUSD in Aug 06 and you will find this bug.
Just a tiny problem. THE EA STILL ROCKS!
|
|

Sep 29, 2006 5:48pm
|
 |
Member
|
|
|
|
Backtesting result
My backtesting result is pretty bad for both EURUSD and GBPUSD in 2006 (AUG and Sept is good though). I notice you posted in Fozzy's thread that Tradeigel also have different results than yours. I am curious what happened.
A way to find it out is to analyze the trade made by the EA one by one. To do that, you may press the "open chart" button on the tester at the right. A chart will be opened with all the trades labeled on it. We can match our charts to see when our results begin to be different (maybe our chart data is different... ).
The attached is the chart I produced in that way. The indicators are added on manually, for the convenience to verify the trade setups.
You can see they are all valid trade setups according to Fozzy system.
|

Sep 29, 2006 5:52pm
|
 |
Member
|
|
|
|
Yeah, if a trade is stopped in the same day it opens, and if the setup is still there, it will reopen again.
I saw in my backtesting. You may try your EA to backtesting GBPUSD from Aug 01 to Sept 01, which should reproduce the problem.
You can open the charts in the tester to see what exactly happened.
Quote:
|
Originally Posted by stockwet
Actually,
I re-read your post again and realized I may have misunderstood. Are you saying that the EA currently opens up multiple orders if stopped out, or that it does not open up multiple orders and you would like it to?
I think I see what you're saying - that the EA opens multiple orders if stopped out and we need to keep that from happening.
Tradeigel suggested using time code instead of the bars code. I like that idea. But, when I tested the time code, I got really funny results in strategy tester (not that I know how to use it anyway.)
I'll make the change and see how it does.
stockwet
|
|

Sep 29, 2006 5:54pm
|
|
|
First, I made a change to the EA. I decided to add a variable to control whether you open based on last bar or based on GMT 00. The reason is that I think some people might want to test or try the EA on lower time periods.
When I run results on tick data, I get poor results. Much like yours and tradeigel's. I downloaded Apari 1m data and used that for testing. I'll post a chart of my results as soon as I have a chance.
stockwet
|

Sep 29, 2006 5:56pm
|
 |
Member
|
|
|
|
My data was from Apari... we can match our charts to find out the difference on data too.
Quote:
|
Originally Posted by stockwet
First, I made a change to the EA. I decided to add a variable to control whether you open based on last bar or based on GMT 00. The reason is that I think some people might want to test or try the EA on lower time periods.
When I run results on tick data, I get poor results. Much like yours and tradeigel's. I downloaded Apari 1m data and used that for testing. I'll post a chart of my results as soon as I have a chance.
stockwet
|
|

Sep 29, 2006 8:53pm
|
 |
Member
|
|
|
|
SMA or EMA
Quote:
|
Originally Posted by stockwet
Attached is the EA for the Daily Fozzy method. The method is described here: http://www.forexfactory.com/forexfor...ead.php?t=7984.
The EA was developed jointly by tradeigel and stockwet.
The EA has the following features:
- A trailing stop feature can be enabled. Traders can specify when to activate the trailing stop and the amount to trail by.
- A maximum TP amount can also be specified.
- The EA sets the magic number to 7984 (same as the Fozzy thread id) so that the EA does not impact other trades on the same currency.
- The EA does not hardcode the daily time period, enabling Fozzy to be run or tested on other time periods.
- The EA uses SMA for the moving average type.
|
Is it SMA or EMA? I think Fozzy confirms that he uses EMA and not SMA.
__________________
Stars don't struggle to shine, Rivers don't struggle to flow, also I will never struggle to excel in life.
HOLY GRAIL: I've found it...Emotional Discipline and Money Management.
|

Sep 30, 2006 10:28am
|
|
|
Quote:
|
Originally Posted by juxta14
Is it SMA or EMA? I think Fozzy confirms that he uses EMA and not SMA.
|
I posted a new update to allow the method to be specified as a parameter (MA_Method). By default, it is now set to EMA.
|

Sep 30, 2006 11:51am
|
|
|
will try in demo account 
__________________
{ commercial link removed by mod, please read the forum rules }
|

Sep 30, 2006 4:05pm
|
|
|
partial take profit..
Quote:
|
Originally Posted by stockwet
I posted a new update to allow the method to be specified as a parameter (MA_Method). By default, it is now set to EMA.
|
Any luck at deciphering the take profit mechanisim from that EA I sent you? Will it provide any value in adding that feature to this EA?
Jason
|
 |
|
|
1 Trader Viewing This Thread (0 are members)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
|