While it is not particularly clever or complex, the below strategy does seem to generate acceptable returns in backtesting, although the drawdown is a bit too high for my liking. I am, however, conscious that the amount of sample trades is quite low.

Do people actually trade simple systems like this, or are there obvious improvements / additions that strategies should have before going live?



function tradeTrend()
{
// Daily timeframe
TimeFrame = 24;
vars Price = series(priceClose(0));
vars Trend = series(LowPass(Price,200));
vars RSI10 = series(RSI(Price,optimize(10,4,20)));


Stop = optimize(2,1,3)*ATR(100);
// Stop = optimize(150,80,200)*PIP;
// Trail = optimize(2,1,3)*ATR(100);

if(Price[0] > Trend[0] && crossOver(RSI10,52)) {
enterLong();}
else if(Price[0] < Trend[0] && crossUnder(RSI10,48)) {
enterShort();}
plot("Trend",Trend,0,RED);
plot("RSI",RSI10,NEW,BLUE);
// plot("RSISm",RSISm,0,RED);
}

function run()
{
set(PARAMETERS+FACTORS); //+LOGFILE);
BarPeriod = 60;
// NumWFOCycles = 5;
// NumSampleCycles = 5;
BarZone = WET;
LookBack = 3361;
MaxLong = MaxShort = 1;
Capital = 1000;
Risk = (Capital+(WinTotal-LossTotal)/100)*0.02;

// asset loop
while(asset(loop("EUR/USD","GBP/USD","USD/JPY")))
while(algo(loop("TREND")))
{
if(Algo == "TREND")
tradeTrend();
}
}