Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by txesmi. 09/14/19 15:44
file_write var array ?
by jcl. 09/14/19 08:31
Shift on MA
by Fred7. 09/14/19 07:37
Smaller Zorro GUI for Windows XP
by Petra. 09/13/19 17:31
Options t8 format question
by jcl. 09/13/19 12:15
import pandas from python for deep learning
by anonymous69. 09/12/19 14:40
script mt5
by anonymous69. 09/12/19 12:11
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
5 registered members (3run, Dalla, bondo1, 2 invisible), 616 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
web20tpo, tarekhazem, Juanjo, Fred7, saulius
18288 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: 163
Czech Republic
Grat Offline OP
Member
Grat  Offline OP
Member

Joined: May 2015
Posts: 163
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: 85
O
OptimusPrime Offline
Junior Member
OptimusPrime  Offline
Junior Member
O

Joined: Aug 2018
Posts: 85
Hi Grat:

I don't understand the question.


Thanks so much,

OptimusPrime


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1