Job finished
Specification
CCI EA
Universal Logic:
-
Ea must buy or sell based on CCI signal. Must be able to execute on all time frames. (if possible would like to use attached CCI indicator).
-
Ea can only be in buy or sell mode. Ea will only make one trade. It will not look for more trades after trade is complete. (if possible pause message will appear and option to start trading again in the same direction after trade is complete).
-
Ea will enter Position #1 with set profit target and stop loss in pips. If position #1 goes against the trade “X” amount of pips, then Position #2 is executed in the same direction and in the same lot size amount.
-
If position #2 is executed then new take profit pip amount is calculated for both positions. The original stop loss level for Position #1 also becomes the stop loss level for Position #2. If Position #2 is executed then both positions take same stop loss level and same take profit level. Must be able to trade according to FIFO rules.
-
Ea should leave historical trail for trades on the chart.
To Enter Buy Trade:
-
Ea must be in buy mode.
-
If placed on chart and CCI is above “0” line, trade will execute immediately.
-
If EA is placed on chart and CCI is below “0” line EA will execute after CCI turns positive on bar close.
To Enter Sell Trade:
-
Ea must be in Sell mode.
-
If placed on chart and CCI is below “0” line trade, will execute immediately.
-
If EA is placed on chart and CCI is above “0” line, EA will execute after CCI turns negative on bar close.
Adjustable Parameters:
-
EA magic number.
-
CCI settings
-
Buy or Sell mode.
-
Lot size
-
Amount of pips against the trade for Position #2 to open
-
Stop loss in pips from original start of trade.
-
Take profit target (in pips) for position #1 if position #2 is not executed.
-
New Take profit target (in pips) from original entry if position #2 is executed.
-
Maximum spread filter (to make sure EA doesn't trade if spreads are to wide)