Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, howardR), 472 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
advise for ENTER & EXIT #477274
06/09/19 13:51
06/09/19 13:51
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
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();


Last edited by Grat; 06/09/19 14:04.
Re: advise for ENTER & EXIT [Re: Grat] #477277
06/10/19 15:26
06/10/19 15:26
Joined: Aug 2018
Posts: 98
O
OptimusPrime Offline
Junior Member
OptimusPrime  Offline
Junior Member
O

Joined: Aug 2018
Posts: 98
Hi Grat:

I don't understand the question.


Thanks so much,

OptimusPrime


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1