This is a simple ea.
It will open 2 trades on every new bar. ( if they are greater or smaller then CCI MaxValue or CCI MinValue)
The trades are determined by the max and min CCI on every currency pair you wish to trade.
TimeFrame= timeframe of CCI Signal
SignalPeriod= CCI period
profitdollars2= profit when 2 orders are open
profitdollars4= profit when 4 orders are open, etc…
The profit is calculated in dollars, not pips.
I did not write it for a major release, so there may be bugs and it is not very refined.
Also you cant set and forget it. You will have to close trades manually sooner or later.
I made it for high time frames, but it can be run on any time frame. The graph pic is run on M15 over 1 week.
Please dont run it live! I certainly would not unless I understood the risk!!!
Yep, mostly scouring forums and putting ideas into code. Most of my learning has been from trial and error. More error
I would love to let them run 24/7, but with real money… not a chance…
This ea (as with most) you need a good broker! low spreads, good signals, etc. It cant be backtested as it trades multiple currencies.
The way i trade with it is to let it run automatically. I start watching when there seems to be a large number of orders open. If i am not happy with the number of orders or drawdown, i will close the biggest losing trades, or all the trades. I try to close them with as little loss as possible.
It uses CCI. So the open trades are the ones that deviate the most from the moving average. Simply they are the ones with the best chance of reversal or correction.
The biggest problem is when you have too many trades open you miss the optimal reversal wave and you can be opening trades in the opposite direction.
How stable is it?
The graph above is from this week and i have not intervened. I am a bit surprised it survived with the large movements we have had.
There is probably a best time to trade this ea too. Trading over the US session on a low timeframe will cause issues. (trends with no reversals)
The set file I included is set to 0.1 lots. I have roughly been keeping a ratio of 0.1 lots to every $10,000. My total account Drawdown is around 30%, which is quite high as I closed alot of losing trades at 1 time. Current return is at 30% per month. I have been trading it for 6 months. I would have a better return if I didnt have to sleep,etc
Thanks the reason i asked was that i am actually after an EA which loses. I am currently trying to improve my knowledge of EA’s, how they work, when to and when not to trust them etc, would it be possible for you to post the worst EA you have please?
Also with your CCI EA, with regards to improving it, perhaps it could be discussed and other babypips members might have ways to improve it?
Yes sure, you can improve it or change it any way you want. It is not designed as a fail safe system. It is just a tool.
this ea will be pretty bad if you dont watch it. I guarantee you will lose everything eventually on full auto.
As to when to trust an ea. That’s simple…
If you know how an ea operates, you will know what the market is expected to do when a trade is opened.
If the market does not behave in the way you want it to, then you have to decide weather to stop trading,etc.
A really important thing to come to terms about ea’s is that they are “Reactive”. They are not “Predictive”.
eg. If there is really bad news out such as “Greece to leave EURO”. You can predict the USD will gain. An EA will
only react to the movement in the market and you will probably lose money because of this.
If there is a better then average chance of the market moving in a certain direction, why would you trade against it?
I completly agree, im still learning about forex and EA’s so best way to learn is to push things to the extreme, watch them fail and then i analyse why they failed.
I guess thats just one way i learn, but it has taught me alot about EA’s. I find forex fascinating, as there are so many different ideas, but at the same time 2 people can disagree about a strategy and different things work for different people
The reason it does not have a TP and SL in pips is just because I could not be bothered to work out the code for JPY pairs as they have different digits. I have added profit pips. Just make sure you do not trade JPY pairs with it, and you attach it to a non-jpy chart.
Also I did plan it to work with a basket close as it picks the most likely pair to open out of a range. The problem is it will not always get it right, so the basket close helps average out the trades.
Here is an update. Just added a time filter. If it works correctly the time filter will not reopen trades after the basket closes, but it will open trades until it does close.
Also Profit and Loss in Pips
Hello Goldylox, after dragging EA to a chart, adjusting the inputs, click OK, I cannot reopen Properties. Do I something wrong or is it the EA?
Gr. René