DislikedOk, looks like everything lines up. Thanks for the clarification FerruFX.
This is version 2 of my original EA in the first thread. I have decided not to pursue the cross variation largely because it ended up being just another MA cross, and unprofitable in a ranging period.
This EA works the same way as the last one. You attach one EA to the chart for each pair you want to trade. All of the \"Main Settings\" are the same as in any of my EAs, so there should be no surprises there.
I'll explain the CCFp Settings:
- MA_Method = CCFP indicator setting
- Price = CCFP Indicator Setting
- Fast = CCFP Indicator Setting
- Slow = CCFP Indicator Setting
- TradeHighestOnly: If set to true, then all the EAs involved will communicate with each other through GlobalVariables to determine which one among them has the largest difference between the Base and the Counter Currencies. For example, if EUR is - 5, USD is + 2, and GBP is -1.
- EURUSD has a score of 7
- GBPUSD has a score of 3
- EURGBP has a score of 4
- Of this group, EURUSD would be the one traded for that bar.
- IdentifyHighestPair: If you're like me and you just have an array of black charts with only the EA comments displayed, this may be useful to you. It sets the entire chart of the highest pair the color you choose in the \"Color\" setting.
- Color: Color relating to IdentifyHighestPair
- MinutesDelayStart: I haven't figured out a reliable enough tick-checking code, so I just use a delay. This is the start of the delay period calculated from the bar's open time.
- MinutesDelayEnd: This is the end of the delay period. All trades will happen between the start periods and end periods. If you are getting trade context errors, try staggering the times a little bit so one EA goes from 5 to 10 minutes, and another EA 11 to 15, etc. There is minimal detection in the EA for Trade Context Busy largely because (for me at least) it leads to missed signals.
- TradeLevel: This works the same way as FerruFX's indicator's trade level. You choose a trade level, and if both currencies in a pair are above this level, the EA takes a trade in the recommended direction.
- TradeReversals: If set to true, the EA will trade reversals as suggested in FerruFX's indicator. Note, there is no connection between FerruFX's indicator and my EA. I have reverse-engineered FerruFX's indicator--with his help--and implemented the important logic into the EA.
- A reversal requires one currency to be long and the other currency to be short, and at least one of the currencies is below the trade level.
- UseCurrent: This shifts from using [0] and [1] (Set to true) to using [1] and [2] (Set to false).
As I'm currently using this EA:
I'm trading the following pairs:
- AUDUSD
- EURCHF
- EURGBP
- EURJPY
- EURUSD
- GBPCHF
- GBPJPY
- GBPUSD
- NZDUSD
- USDCAD
- USDCHF
- USDJPY
Each EA has:
- A unique magic number
- 20 pip SL + spread
- 10 pip TP + spread
- All signals are traded.
- UseCurrent set to false.
- TradeReversals set to true
- TradeLevel set to 4.
You need the indicator in the metatrader/experts/indicator folder in order for this to work.
I do not support IBFX pairs and I will not code a separate EA to accommodate. If you can find me a CCFp indicator which does both IBFX pairs and regular pairs, I'll edit the EA so the EA uses that indicator instead.
[EDIT] Replaced the CCFp indicator with a universal one thanks to Shiva. Make sure you overwrite the CCFp indicator.Ignored
Hi Ron,
many thanks for your time and efforts to code a decent EA trying to reflect ES system. However, after testing your latest version, I have noticed a couple of problems which need to be fixed:
1= the EA - with your suggested settings - does not trade enough as per ES system
2) I have set the TradeHighestOnly to true according to your instructions and no trade has been made for 4 hours (since I started it).
Do you think you can improve these issues?
Thanks