Gamestudio Links
Zorro Links
Newest Posts
Where's the Wiki?
by Quad. 06/25/19 22:16
Published Gamestudio Games?
by Dooley. 06/25/19 16:59
Updating to A8 [SOLVED]
by Dooley. 06/25/19 16:00
Message from IB of open position
by Zheka. 06/25/19 13:58
FXCM: "Can't connect to price server"
by riinvest. 06/25/19 10:35
New Zorro version 2.12
by jcl. 06/25/19 09:42
Aum120 is ready
by Emre. 06/24/19 17:54
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 (JeyKey II, wdlmaster, alibaba, jenGs, kvm), 574 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Theaisback, redye, rhe2564, Qw3rty, Dal
18239 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: 134
Czech Republic
Grat Offline OP
Member
Grat  Offline OP
Member

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

Joined: Aug 2018
Posts: 75
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