Posted By: ech87
Spread value conditional - 11/20/17 07:25
Hi There,
Im totally new to zorro and pretty bad at programming in general.
How can I create an on tick trade conditional that takes into account the spread.
For example i've tried:
function tick(){
if(Spread < 5){
[trading code goes here];
}
}
But when I try that with a simple long order, linked with and Mt4 account my orders go berserk and don't take into account the spread conditional at all?
Thanks!
Im totally new to zorro and pretty bad at programming in general.
How can I create an on tick trade conditional that takes into account the spread.
For example i've tried:
function tick(){
if(Spread < 5){
[trading code goes here];
}
}
But when I try that with a simple long order, linked with and Mt4 account my orders go berserk and don't take into account the spread conditional at all?
Thanks!