I have a script, which is supposed to close half the position, every time is executed or double clicked. But the script not working as per expected. The script only close's half position only sometimes (but should be always), also sometimes it does not always close half position. Can someone please help me refine this script. Script is attached.
Files:
close_half_position v2.mq4
2 kb
- Where to find a script for closing half position from open order?
- [ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3.
- The great and terrible MT4 forever (or how to strategise a transition)
bm0899:
I have a script, which is supposed to close half the position, every time is executed or double clicked. But the script not working as per expected. The script only close's half position only sometimes (but should be always), also sometimes it does not always close half position. Can someone please help me refine this script. Script is attached.
I have a script, which is supposed to close half the position, every time is executed or double clicked. But the script not working as per expected. The script only close's half position only sometimes (but should be always), also sometimes it does not always close half position. Can someone please help me refine this script. Script is attached.
Try it out now
Files:
Thanks mladen. The script is still causing the same problem, which is: when you double click the script to run (or drag to a chart) it does not function/work. Only on some instances it will function/work (when dragging to chart of double clicking). Please check, Many thanks :-)
bm0899:
As I told already : it works for me. Check the error that you are getting when you try to execute it since on my demo accounts it is working OK
Thanks mladen. The script is still causing the same problem, which is: when you double click the script to run (or drag to a chart) it does not function/work. Only on some instances it will function/work (when dragging to chart of double clicking). Please check, Many thanks :-)
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