Just modified the script to do 12000 trades.
Please see below.
Result is the same
Either .000 or .999 in the .fac file
function run()
{
LookBack = 400;//500;
BarPeriod = 60;
set(LOGFILE);
set(FACTORS);
assetList("History\AssetsZ10.csv");
while(loop(Assets))
{
asset(Loop1);
vars Price = series(price(0));
vars Trend = series(LowPass(Price,500));
Stop = 4*ATR(100);
vars MMI_Raw = series(MMI(Price,300));
vars MMI_Smooth = series(LowPass(MMI_Raw,300));
//if(falling(MMI_Smooth))
{
if(rising(Trend))
enterLong();
else if(falling(Trend))
enterShort();
}
}
}
Assets HistoryAssetsZ10.csv
Read ShowFACTOR.fac
Error 010: Invalid GRS/BTC Stop: 0.0002604 Price: 0.000124200
Loss -2.10843085B MI -1.07107704B DD 2.51155990B Capital 13.50459003B
Trades 12011 Win 29.7% Avg -175.5p Bars 88
ROI -95% PF 0.27 SR -1.36 UI 0% R2 0.83