Hi,
in the beta, version 2.14 is a bug with fce tick() and algo. In this construction:
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*************");
}
}
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:
algo("OPEN");
if(Algo == "OPEN") {......