below is CCI and ZMA strategy , price above ZMA and CCI is below 100 level and ADX is rising with the help of Linear Regression Slope > 0 go LONG and the Opposit is True.
I have run this Algo for a month with only one Trade has so far been Opened, can somebody analysed this algo and advise me why is not opening trade anymore ?
function run()
{


BarPeriod =60;
StartDate =2015;
EndDate = 2018;

set(LOGFILE);
vars Close = series(priceClose());
vars price = series(priceClose());
vars adx= series(ADX(14));
var slope =LinearRegSlope(adx,14);
var iCCI =CCI(14);
var SMASlow = ZMA(price,100);
var Threshold = 100 , ExitEntry=180;
Capital = 2000;
Confidence =100;





while(asset(loop("EUR/USD","USD/JPY","AUD/USD","XAU/USD","GBP/USD","XAG/USD","EUR/JPY","USD/CHF")))



Margin = 0.125 * OptimalF * Capital * sqrt(1 + ProfitClosed/Capital)/6;
{
if(iCCI < -Threshold && price[0] > SMASlow && slope >0 )

enterLong();

}

{

if(iCCI >= ExitEntry)



exitLong();
}

{

if(iCCI >Threshold && price[0] < SMASlow && slope <0 )

enterShort();
}

{

if(iCCI <= -ExitEntry)


exitShort();
}
}