Rsi & Cci Divergence EA Trades when there is a divergence of “RSI” or “CCI” indicator has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.
***Include “IncreaseFactor” function if you lose a trade the next lotsize will be increased****
Try it on demo first.
This EA trades only with the price of open candle!
If you do not want to trade with increasing lot size when you lose a trade set:”IncreaseFactor=0″
Inputs
-  Use_TP_In_Money– Use Take Profit In Money (values:true/false).
-  TP_In_Money– Take Profit In Money   (values: 10-100).
- Use_TP_In_percent- Use Take Profit In Percent (values:true/false).
- TP_In_Percent– Take Profit In Percent (values: 10-100).
- Enable_Trailing-Enable_Trailing with money  (values:true/false).
- Take Profit In Money (in current currency)Â (values: 1-100).
- Stop Loss In Money(in current currency)Â (values: 1-100).
- Exit=Enable Exit strategy (value:false).
- IncreaseFactor -how much to increase lots from total margin if you lose a trade (values: 0.001-0.1)..
- CCI –  “CCI” indicator value (values:10-40).
- RSI – “RSI” indicator value(values:10-40).
- CandlesToRetrace – Number of candles to wait for divergence (values: 10-100).
- Lots – Lots size (values: 0.01-10).
- Lots size Exponent  (values: 1.01-2).
- Stop_Loss – Stop Loss (values: 30-500).
- MagicNumber – Magic number (values: 1-100000).
- TakeProfit – Take Profit (values: 50-100).
- FastMAÂ – Fast Moving Average (values: 1-50).
- SlowMAÂ – Slow Moving Average (values: 60-200).
- Â Mom_Sell-Momentum_Sell trtrigger(values: 0.1-5).
- Â Mom_Buy-Momentum_Buy trtrigger(values: 0.1-5.
- UseEquityStop -Use Equity Stop(value: true).
- TotalEquityRisk-Total Equity Risk(values: 1-3).
- Max_Trades-Maximum trades(values: 1-5).
- IF YOU USE ONLY 1 TRADE:
- //////////////////////////////////////////////////
- TrailingStop-set a value from 40 to 100 to activate trailing stop loss & take profit, “0” will not activate trailing stop loss.
- Enable “Break Even” -(values:true/false).
- When move “Break Even”-Â (values: 5-30).
- How much pips move- “Break Even” (values:5-30).
- ///////////////////////////////////////////////////////
You can use it as hedging grid EA or a single trade EA.
You need to optimize this EA once a week and use the exact same inputs from above .
How to perform back test: