'Close all' scripts for MT4.
'Close all' scripts for MT4.
I don't know about the close all open position one for me, but the close all pending script will certainly help me as I almost always trade with limit/stop orders.
Thanks Magedology.![]()
Jafar Calley - Director
FXOpen AU Pty Ltd
Level 26 • 1 Bligh Street
Sydney NSW 2000
Australia
AFSL:412871 ABN:61 143 678 719
http://www.fxopenaus.com
Close all script isn`t something good, because not all trends can reverse in the same moment. Try using multiple close option, to close all of the positions in just one currency pair.
thank u very much indeed I think needed this thing very much.
is there any way that an EA could call a script?anybody knows how to do this?or should i just combine the source?
because i think that if i combine this script (magedology's) and any EA that is going to open many currency pairs.. (diversifications that is) would be a great thing for us.![]()
No. Just recode the script so that it becomes a function callable by the EA.
Generally it means:
- Change init(), deinit(), start() from script to something else, say sInit(), sDeinit(), and sStart().
- Change other functions' name in the script so there is no conflict with functions in the EA
- Similarly for all global variables and defines in the script
- In EA's init() call sInit(), in deinit() call sDeinit(), and call sStart() where ever you want it.
- Lastly, don't forget to include the script file at the beginning of file EA (sth like #include blah-blah)
i want this script,
thank you .
is there a place or any useful link i can learn to program metatrader?
i am a good programmer in real life so i could apply some of my knowledge here.![]()
finally I find what I am searching for
thanks
but how can I use it
or how can I put it in my meta trader
a very useful script thnx
Thanks broo
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks