Hello.
Either my skis are not going, or I am......
Needed a script for grid orders, yours turned out to be the only working one of all that I could find.
The only thing that causes confusion is that in the description of the script the setting parameter:Gap for pending orders UP from the current price (in pips) - should make a gap from the current price for the first pending order,
in reality, this parameter is responsible for the step between orders,
and the parameter that should be responsible for the step between orders Step between orders UP (in pips) does not change anything at all :-(
Has something changed in metatrader and the script started to work incorrectly or was it originally designed that way?
Hello.
Either my skis aren't moving or I am.....
Needed a script for grid orders, yours turned out to be the only working one I could find.
The only thing that causes confusion is that in the description of the script the setting parameter:Gap for pending orders UP from the current price (in pips) - should make a gap from the current price for the first pending order,
in reality, this parameter is responsible for the step between orders,
and the parameter that should be responsible for the step between orders Step between orders UP (in pips) does not change anything at all :-(
Has something changed in metatrader and the script started working incorrectly or was it originally designed that way?
Thanks for your attention!
Indeed, the step was lost in the code - now the step between pending orders works, and also the calculation of SL and TP has been corrected. The code is still under testing, but I will post version 1.002:
Pending orders DOWN.mq5
version "1.002"
Thanks for the heads up!
Indeed, the step was lost in the code - now the step between pending orders works, and also the calculation of SL and TP has been fixed. The code is still under testing, but I will post version 1.002:
Pending orders DOWN.mq5
version "1.002"
Great!!! And the UP one, where do you get the corrected one?
It's on republish too. But if you ask a question in its thread, I will post the corrected code there too.
Good afternoon, is it possible to add a function to restore from a working order? That is, we have orders A, B, C. D, order C closed at stoploss/stakeprofit, the order is set again with the same conditions as the previous time.
No, you can't - because it is a script.
Good afternoon!
Thanks for the script, everything works. Only one question: is it possible to change the number of characters that can be written in the first line?
- Gap for pending orders DOWN from the current price(in pips) - the gap from the current price for the first pending order.
Good afternoon!
Thanks for the script, everything works. Only one question: is it possible to change the number of characters that can be written in the first line?
- Gap for pending orders DOWN from the current price(in pips) - the gap from the current price for the first pending order.
Yes you can, replace the integer type with uint.
That's the way it is now:
//--- input parameters input ushort InpDownGep = 15; // Gap for pending orders DOWN from the current price (in pips)
and youdo this:
//--- input parameters input uint InpDownGep = 15; // Gap for pending orders DOWN from the current price (in pips)
Yes you can, replace the integer type with uint.
This is the way it is now:
and youdo this:
Thank you so much! Everything works. I just can't understand why the number of orders is always 0.1? I change it to 10, 10.00, 10.0 ... I don't know how to do it right, but still the programme puts 0.1.
Thank you so much! Everything works. I just can't understand why the number of orders is always 0.1? I change it to 10, 10.00, 10.0 ... I don't know how to do it right, but still the programme sets 0.1.
The input parameter - position volume - was set for the future: when there are several modernisation proposals, then it will be included in the stake. For now, the script puts pending orders with the minimum possible volume.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Pending orders DOWN:
Author: Vladimir Karputov