Hello. Below attached is script.
I have tried to edit the script to only execute hedging orders, only if the spread is zero or one.
I got this code by searching, but couldn't implement it.
Please see into the script, and tell me what to do, or if you can edit/code the script with it, I'd be really grateful.
Thanks.
I have tried to edit the script to only execute hedging orders, only if the spread is zero or one.
I got this code by searching, but couldn't implement it.
Inserted Code
extern double MaxSpread = 4;
Spread = MarketInfo(Symbol(), MODE_SPREAD);
if(Spread >= MaxSpread) { return(0);} Please see into the script, and tell me what to do, or if you can edit/code the script with it, I'd be really grateful.
Thanks.
Attached File(s)