Here is Forex Strategy “4 indicators” with using ATR Stop.
It is a very high winning % on a EUR/USD 60 min bar and it is profitable although a low profit.
I have a problem with adding a dynamic exit which has 2 types based on a site below.
If someone could add it correctly, it would be great.
Please note that 90 Smoothed MA is identical to 179 EMA.
http://strategy4forex.com/strategies-based-on-forex-indicators/forex-strategy-4-indicators.html
function run()
{
set(TICKS);
int MA_Period = 179;
int Wil_Period = 11;
int CCI_Period = 12;
int ATR_Period = 14;
vars Close_Price = series(priceClose());
vars MA = series(EMA(Close_Price,MA_Period));
vars Wil = series(WillR(Wil_Period));
vars CCIc =series(CCI(CCI_Period));
vars ATRc = series(ATR(ATR_Period));
if(Close_Price[0] > MA[0] && Wil[0] < -85 && CCIc[0] < -100 && ATRc[0] > 0.002)
enterLong();
if(Close_Price[0] < MA[0] && Wil[0] > -15 && CCIc[0] > 100 && ATRc[0] > 0.002)
enterShort();
Stop = 10*ATR(20);
TakeProfit = 40*PIP;
}