Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Nymphodora, Quad), 923 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Beta 2.14 - problem with fce tick() #477320
06/15/19 07:24
06/15/19 07:24
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,

in the beta, version 2.14 is a bug with fce tick() and algo. In this construction:
Code
function run(){
...
  
while(algo(loop("OPEN","CLOSE"))){
...
...
// run code for algos
}
} // end of FCE run()

function tick(){
    
        if(Algo == "CLOSE") {
      	  printf("\n************RUN CLOSE*************");
        }
          
        if(Algo == "OPEN") {
        
          printf("\n************RUN OPEN*************");
        }	
}



Quote
User-supplied function that is called on arrival of a new price quote of any asset used in the strategy. This function can be used when an immediate reaction on every new price quote is required.


In the FCE tick() call only Algo "CLOSE", for algo "OPEN" i must make this workaround:
Code
        algo("OPEN");
        if(Algo == "OPEN") {......

Re: Beta 2.14 - problem with fce tick() [Re: Grat] #477321
06/15/19 07:39
06/15/19 07:39
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
You must always call algo() for setting the Algo string, what has it to do with the beta version?

Re: Beta 2.14 - problem with fce tick() [Re: Grat] #477322
06/15/19 08:05
06/15/19 08:05
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
Aaaa, this is a my mistake, I thinking the FCE tick() is calling from construct:

while(algo(loop("OPEN","CLOSE"))){ ... }


thanks


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1