advise for ENTER & EXIT

Posted By: Grat

advise for ENTER & EXIT - 06/09/19 13:51

Hi,

do you know, how:

Code:
.
.
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();

Posted By: OptimusPrime

Re: advise for ENTER & EXIT - 06/10/19 15:26

Hi Grat:

I don't understand the question.
© 2024 lite-C Forums