Hi Smallz,

I figured out some small changes in your script that potentially could improve the results.

In order to increase the number of trades, I would suggest you to change the optimization range of RoC limits to something like:

var upperLimit = optimize(0.05,0.01,0.10);

As a trend indicator, try this:

int TrendPeriod = optimize(20,2,50);
int RoCPeriod = optimize(5,2,20,1);
var RoCValue = ROC(series(DEMA(series(DEMA(Prices,TrendPeriod)),TrendPeriod)),RoCPeriod);

Regarding the stops, add a TrailLock:

TrailLock = optimize(0,0,100,5);

Let us know if there was any improvement.

best regards,
jl