Hi,
You could use this formula in OrderSend() function to spend the lot size for each new pending order:
lots*MathPow(lotmultiplier,n)
ok thanks really helpfull and if i wanna wait x time before open every pending ?
Thomas Bolognesi:
ok thanks really helpfull and if i wanna wait x time before open every pending ?
ok thanks really helpfull and if i wanna wait x time before open every pending ?
So you could use this below before the "for" loop:
static datetime lastTime=TimeCurrent(); if(TimeCurrent()<lastTime+X_Minutes*60)return;//X_Minutes is a global extern variable that can be any integer positive value lastTime=TimeCurrent();

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hi,
i nead to impleament a lot multyplier in this grid script i post the code. Can someone help me?