Hi,
do you know, how:
.
.
set(RULES+FACTORS);
.
.
while(algo(loop("OPEN","CLOSE"))){
if (is(TRAINMODE)||is(TESTMODE)){
var *Price = series(price());
if(Algo == "OPEN")
adviseOpen();
if(Algo == "CLOSE")
adviseClose();
} // END TRAIN mode
}
there is a output:
Rules: 4xcd_pat_uni 2019
Assets HistoryAssetsGP.csv
Train EURUSD_OPEN_L 26 patterns
Train EURUSD_OPEN_S 22 patterns
Rules stored in 4xcd_pat_uni.c
Error 044: No rule for EUR/USD:CLOSE:L!Factors stored in 4xcd_pat_uni.fac
Thanks Milan
edit:
I found ( maybe ) answ. For
Train cycle must by enterLong/Short,
for testing this I change to exit.
in the func adviseClose()
[code]
.
.
if (is(TRAINMODE))
enterLong(); // or SHORT
else
exitShort();