Aloha everyone,
In order to keep the Gorilla EA separate from the Gorilla Method thread from Cm7, I am setting up this thread. Please keep the discussion only to the EA’s. I will post any modifications and improvements to the EA here.
If you are involved in the testing of the EA, please post your results here at the end of each week.
Previous EA posts copied below:
-------------------------------------------------------
Gorilla v1.0
-------------------------------------------------------
I modified one of my other EA’s to the Gorilla trading rules. To run this EA, put the nonlagdot file in the indicators folder and compile, put the currencySignals file in the include folder (do not need to compile), and the Gorilla_EA_v1.0 in experts folder and compile. Entry rules and exit rules are in the comments at the top of the EA code.
I also added a few options and additional features:
- AutoMagicNumber: if this is true, you don’t need to assign a magic # for all major pairs and major crosses. If false, you can pick a magic #. This is useful if you want to stay in a position longer term and add to it, remove the EA, then set a new EA with AutoMagicNumber = false and you can assign a new magic #. If the EA closes out the 2nd position due to trading rules, the first will be open still (since different magic #).
- longTarget / shortTarget: manually set these is you want to get out at a specific price. I like to set at swing highs / swing lows as that’s where people usually put SL and it’s a good place to exit as SL are run.
- wantLongs / wantShorts: self-explanatory
- useNLD filter: non lag dot (NLD) is evaluated on 5 and 15 min charts. Both must indicate up for longs. If price is falling on 1 hr chart at/near EMA30, and useNLD = true, then EA will not enter till price heads up on 5, 15 min TF’s.
- pipsFromEMA: number of pips from EMA30 to enter trade (assuming other criteria is met). Set to 0 to enter at EMA30.
- X offset: this is for moving the text on the right of the EA if it doesn’t fit on your screen.
- use_sl_and_tp: if true, both values must have a value other than 0. If you want 30 pip SL and don’t want to use a TP, put TP as a large amount (200 or something). If you put 0, then it will TP at the ask and exit right away
- trailStop_std: self-explanatory
- MaxSpread: self-explanatory
There is also a feature for preventing new trades beyond weekly R2 or below weekly S2, or if in a position to exit there at the R2 or S2. I’ve done statistical analysis, and the probability of closing beyond the weekly R2 / S2 is not that high so best to exit or stay out.
The EA also shows the strength for each currency which make up the currency pair from the 5 min to 4 hr TF’s. The strength goes from -7 to 7 for each currency. So if you have EUR = 5, USD = -6, the difference is 11, which is a pretty good trend. I think that entering only long when the difference in trend is strong on 4 hr or 1 hr might be the way to go. Right now these currency strength numbers do not affect the EA trading logic, but I may incorporate it into future versions. This can hopefully filter out the chop and only get in on longer term trends.
In the next version, I plan on adding a feature to write to a .csv file when every trade is entered the currency strength values, and then later write to a file when the trade was closed and reason for closing (4 < 15 EMA, etc.). I think having data like this will help guide us to when the EA is trading well (in good long term trends, etc.).
Let me know if anyone has any questions, or thoughts how to improve the EA.
-------------------------------------------------------
Gorilla v1.1
-------------------------------------------------------
I have been working on the Gorilla EA v1.1 (attached below), and another different project which I hope will be much better than Gorilla. I still need to test both.
I would appreciate help from people in this forum for testing Gorilla EA 1.0 and 1.1 (with 2 different options). I need to compare to see which one is better. Test with the standard settings in the EA, except v1.1 will need to change one option.
Requesting several people test on demo accounts 24/5, and at the end of the week post the account history for their files here. I would like testing to be done from 1/2/19 to 2/1/19. After that, I will do analysis of output files, and look at the EA and see where it can be improved. The EA must be checked at the start of the Asian session, and reset if profit hit or stopped out as per the trading logic.
Testing must be done on the following pairs:
AUDCAD AUDCHF AUDJPY AUDNZD AUDUSD CADCHF CADJPY CHFJPY EURAUD EURCAD EURCHF EURGBP EURJPY EURNZD EURUSD GBPAUD GBPCAD GBPCHF GBPJPY GBPNZD GBPUSD NZDCAD NZDCHF NZDJPY NZDUSD USDCAD USDCHF USDJPY
I will be testing my new advanced EA and also Gorilla v1.1. If my new EA (and future modifications) are profitable, I will share with people who help out in testing for the full month for Gorilla EA 1.0 and 1.1 (with 2 different options). I will also create a new thread for my new EA as it departs so much from the Gorilla EA logic.
Now ... the changes I made from v1.0 to v1.1:
// v1.1 - added EMAdistance which will verify that the distance from the EMA4 to EMA15 and EMA15 to EMA30
// is at least x pips. This will prevent entries when prices are flat and little to no distance between EMAs. Default x = 5
// - added prevEMA4 and prevEMA15. This is the previous value of the EMA's 1 hr back. EMA4 must be > prevEMA4
// and EMA15 must be > prevEMA15 for longs. Opposite for shorts.
// - added AutoPipsFromEMA. If this is set to true, then pipsFromEMA = 30 for larger moving pairs, and 20 for normal pairs
// - added NLD filter so 5 min NLD and 15 min NLD (shorter term trends) must align to everything else for buys/sells
// - added if beyond daily R2, then exit on 5 min NLD change.
// - notification of reason for exiting after trade closed in upper right part of the screen.
// - move SL to b/e once R1/S1 hit
//
// - added option to only trade if price above/below weekly pivot (weeklyPivotFilter). if weeklyPivotFilter = true:
// - price > weekly pivot
// - 4hr EMA4 > EMA15
// - 4 hr EMA4 > prev. EMA4 (same for EMA15)
The entry logic seems to be working fine. The only thing I have not tested yet is to move SL to b/e once R1/S1 hit. Please let me know if there are any issues in the EA not executing as it should (trading rules are at the top of the EA).
I think a lot of the changes I made to the EA will eliminate a lot of the chop and bad trades.
Again, I need several people to test the following after the New Year on all pairs for 1 month on demo, and post the trade history at the end of each week for the following EA tests:
- Gorilla v1.0
- Gorilla v1.1 (weeklyPivotFilter = false)
- Gorilla v1.1 (weeklyPivotFilter = true)
I have many new ideas to improve the trading logic (coded into my new EA which I am separately testing), and will gladly share if people help out in testing the above for 1 month.
-------------------------------------------------------
1/7/2019
v 1.0a and 1.1a - removed currency signal calculations to free up memory usage
-------------------------------------------------------
-------------------------------------------------------
1/13/2019
Gorilla v1.2 - v1.0a logic was modified and added a trailing SL. When pipsToTrailSL (default setting = 5) is exceeded, EA will trail SL and exit on 15 min NLD change.
Gorilla v1.3 - v1.1a logic was modified and added a trailing SL. When pipsToTrailSL (default setting = 5) is exceeded, EA will trail SL and exit on 15 min NLD change.
-------------------------------------------------------
Regards,
EZcurrency
In order to keep the Gorilla EA separate from the Gorilla Method thread from Cm7, I am setting up this thread. Please keep the discussion only to the EA’s. I will post any modifications and improvements to the EA here.
If you are involved in the testing of the EA, please post your results here at the end of each week.
Previous EA posts copied below:
-------------------------------------------------------
Gorilla v1.0
-------------------------------------------------------
I modified one of my other EA’s to the Gorilla trading rules. To run this EA, put the nonlagdot file in the indicators folder and compile, put the currencySignals file in the include folder (do not need to compile), and the Gorilla_EA_v1.0 in experts folder and compile. Entry rules and exit rules are in the comments at the top of the EA code.
I also added a few options and additional features:
- AutoMagicNumber: if this is true, you don’t need to assign a magic # for all major pairs and major crosses. If false, you can pick a magic #. This is useful if you want to stay in a position longer term and add to it, remove the EA, then set a new EA with AutoMagicNumber = false and you can assign a new magic #. If the EA closes out the 2nd position due to trading rules, the first will be open still (since different magic #).
- longTarget / shortTarget: manually set these is you want to get out at a specific price. I like to set at swing highs / swing lows as that’s where people usually put SL and it’s a good place to exit as SL are run.
- wantLongs / wantShorts: self-explanatory
- useNLD filter: non lag dot (NLD) is evaluated on 5 and 15 min charts. Both must indicate up for longs. If price is falling on 1 hr chart at/near EMA30, and useNLD = true, then EA will not enter till price heads up on 5, 15 min TF’s.
- pipsFromEMA: number of pips from EMA30 to enter trade (assuming other criteria is met). Set to 0 to enter at EMA30.
- X offset: this is for moving the text on the right of the EA if it doesn’t fit on your screen.
- use_sl_and_tp: if true, both values must have a value other than 0. If you want 30 pip SL and don’t want to use a TP, put TP as a large amount (200 or something). If you put 0, then it will TP at the ask and exit right away
- trailStop_std: self-explanatory
- MaxSpread: self-explanatory
There is also a feature for preventing new trades beyond weekly R2 or below weekly S2, or if in a position to exit there at the R2 or S2. I’ve done statistical analysis, and the probability of closing beyond the weekly R2 / S2 is not that high so best to exit or stay out.
The EA also shows the strength for each currency which make up the currency pair from the 5 min to 4 hr TF’s. The strength goes from -7 to 7 for each currency. So if you have EUR = 5, USD = -6, the difference is 11, which is a pretty good trend. I think that entering only long when the difference in trend is strong on 4 hr or 1 hr might be the way to go. Right now these currency strength numbers do not affect the EA trading logic, but I may incorporate it into future versions. This can hopefully filter out the chop and only get in on longer term trends.
In the next version, I plan on adding a feature to write to a .csv file when every trade is entered the currency strength values, and then later write to a file when the trade was closed and reason for closing (4 < 15 EMA, etc.). I think having data like this will help guide us to when the EA is trading well (in good long term trends, etc.).
Let me know if anyone has any questions, or thoughts how to improve the EA.
-------------------------------------------------------
Gorilla v1.1
-------------------------------------------------------
I have been working on the Gorilla EA v1.1 (attached below), and another different project which I hope will be much better than Gorilla. I still need to test both.
I would appreciate help from people in this forum for testing Gorilla EA 1.0 and 1.1 (with 2 different options). I need to compare to see which one is better. Test with the standard settings in the EA, except v1.1 will need to change one option.
Requesting several people test on demo accounts 24/5, and at the end of the week post the account history for their files here. I would like testing to be done from 1/2/19 to 2/1/19. After that, I will do analysis of output files, and look at the EA and see where it can be improved. The EA must be checked at the start of the Asian session, and reset if profit hit or stopped out as per the trading logic.
Testing must be done on the following pairs:
AUDCAD AUDCHF AUDJPY AUDNZD AUDUSD CADCHF CADJPY CHFJPY EURAUD EURCAD EURCHF EURGBP EURJPY EURNZD EURUSD GBPAUD GBPCAD GBPCHF GBPJPY GBPNZD GBPUSD NZDCAD NZDCHF NZDJPY NZDUSD USDCAD USDCHF USDJPY
I will be testing my new advanced EA and also Gorilla v1.1. If my new EA (and future modifications) are profitable, I will share with people who help out in testing for the full month for Gorilla EA 1.0 and 1.1 (with 2 different options). I will also create a new thread for my new EA as it departs so much from the Gorilla EA logic.
Now ... the changes I made from v1.0 to v1.1:
// v1.1 - added EMAdistance which will verify that the distance from the EMA4 to EMA15 and EMA15 to EMA30
// is at least x pips. This will prevent entries when prices are flat and little to no distance between EMAs. Default x = 5
// - added prevEMA4 and prevEMA15. This is the previous value of the EMA's 1 hr back. EMA4 must be > prevEMA4
// and EMA15 must be > prevEMA15 for longs. Opposite for shorts.
// - added AutoPipsFromEMA. If this is set to true, then pipsFromEMA = 30 for larger moving pairs, and 20 for normal pairs
// - added NLD filter so 5 min NLD and 15 min NLD (shorter term trends) must align to everything else for buys/sells
// - added if beyond daily R2, then exit on 5 min NLD change.
// - notification of reason for exiting after trade closed in upper right part of the screen.
// - move SL to b/e once R1/S1 hit
//
// - added option to only trade if price above/below weekly pivot (weeklyPivotFilter). if weeklyPivotFilter = true:
// - price > weekly pivot
// - 4hr EMA4 > EMA15
// - 4 hr EMA4 > prev. EMA4 (same for EMA15)
The entry logic seems to be working fine. The only thing I have not tested yet is to move SL to b/e once R1/S1 hit. Please let me know if there are any issues in the EA not executing as it should (trading rules are at the top of the EA).
I think a lot of the changes I made to the EA will eliminate a lot of the chop and bad trades.
Again, I need several people to test the following after the New Year on all pairs for 1 month on demo, and post the trade history at the end of each week for the following EA tests:
- Gorilla v1.0
- Gorilla v1.1 (weeklyPivotFilter = false)
- Gorilla v1.1 (weeklyPivotFilter = true)
I have many new ideas to improve the trading logic (coded into my new EA which I am separately testing), and will gladly share if people help out in testing the above for 1 month.
-------------------------------------------------------
1/7/2019
v 1.0a and 1.1a - removed currency signal calculations to free up memory usage
-------------------------------------------------------
-------------------------------------------------------
1/13/2019
Gorilla v1.2 - v1.0a logic was modified and added a trailing SL. When pipsToTrailSL (default setting = 5) is exceeded, EA will trail SL and exit on 15 min NLD change.
Gorilla v1.3 - v1.1a logic was modified and added a trailing SL. When pipsToTrailSL (default setting = 5) is exceeded, EA will trail SL and exit on 15 min NLD change.
-------------------------------------------------------
Regards,
EZcurrency
Attached File(s)
Gorilla_EA_v1.1.mq4
39 KB
|
1,032 downloads
nonlagdot.mq4
9 KB
|
1,141 downloads
Gorilla_EA_v1.0.mq4
30 KB
|
678 downloads
currencySignals.mqh
38 KB
|
1,086 downloads
Gorilla_EA_v1.0a.mq4
24 KB
|
622 downloads
|
Uploaded Jan 7, 2019 11:47pm
Gorilla_EA_v1.1a.mq4
34 KB
|
710 downloads
|
Uploaded Jan 7, 2019 11:47pm
Gorilla_EA_v1.2.mq4
25 KB
|
623 downloads
|
Uploaded Jan 13, 2019 4:15pm
Gorilla_EA_v1.3.mq4
35 KB
|
1,554 downloads
|
Uploaded Jan 13, 2019 4:18pm