DislikedHi fxdaytrader.i appreciate your good work.please can u help me code an ea using cci 10 period applied to typical price.the ea only closes a trade when the line crosses the zero line.thanksIgnored
if cci crosses 0.0 upwards the ea shold close open sell-trades, if cci crosses 0.0 downards it should close open buy-trades ...
logics:
if (cci>0.0&&cci1<=0.0 && OrderType()==OP_SELL) result=CloseTrade(OrderTicket());
if (cci<0.0&&cci1>=0.0 && OrderType()==OP_BUY) result=CloseTrade(OrderTicket());
more I will not do on it
edit: stoch-macd cross added, ...
Attached File(s)
CloseProfitOrdersAtNewBar EA.ex4
9 KB
|
307 downloads
PM me with coding requests and I'll probably put you on my ignore list