Forex
Google

Go Back   Forex Trading > Downloads > Tools and utilities
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (6) Thread Tools Display Modes
  #101 (permalink)  
Old 02-17-2008, 08:01 AM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 502
Michel is on a distinguished road
Quote:
Originally Posted by Rambaldi View Post
Hi,

i have a big problem, i try to code a script to "close a Part of a actuall Position", but my code skills are not so well, is there any chance to find this script?

Many Thanks, Ram
Not a problem at all : just put the quantity of lots you want to close in the OrderClose() function.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #102 (permalink)  
Old 02-17-2008, 04:07 PM
Dawny Dawny is offline
Junior Member
 
Join Date: Nov 2007
Posts: 1
Dawny is on a distinguished road
Smile Request Script for OPen Order

4 all coder Meta here, Please help me to make this script. I need 8 srcipt for simple Open Order.. So this will make open order at the same time. And this is the rule... :

Script I :

Buy : 1.5 lot TP : 50 pip SL : 0
Buy : 0.25 lot TP : 100 pip SL : 0
Buy : 0.25 lot TP : 200 pip SL : 0

Script II:

Buy : 6 lot TP : 50 pip SL : 0
Buy : 0.25 lot TP : 100 pip SL : 0
Buy : 0.25 lot TP : 200 pip SL : 0

Script III
Buy : 27 lot TP : 50 pip SL : 0
Buy : 0.25 lot TP : 100 pip SL : 0
Buy : 0.25 lot TP : 200 pip SL : 0

Script IV
Buy : 50 lot TP : 50 pip SL : 0
Buy : 40 lot TP : 50 pip SL : 0
Buy : 8 lot TP : 50 pip SL : 0
Buy : 0.25 lot TP : 100 pip SL : 0
Buy : 0.25 lot TP : 200 pip SL : 0

And for script 5 until 8 is same like above, but the status is sell.. Thanks before 4 all
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #103 (permalink)  
Old 02-29-2008, 04:53 AM
etrade's Avatar
etrade etrade is offline
Senior Member
 
Join Date: Aug 2007
Posts: 234
etrade is on a distinguished road
Script for conditional trade

Is there any script or method to execute trades conditionally on MT4 ?

I mean for instance opening a new trade (on buy/sell limit) only and only if an old one is closed

or maybe a script to limit the number of trades ... of course it should be simple to change the setting as it needs to be set up regularly
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #104 (permalink)  
Old 03-03-2008, 01:01 PM
HeftiFX HeftiFX is offline
Junior Member
 
Join Date: Mar 2008
Posts: 6
HeftiFX is on a distinguished road
Trade nonexsitent crosses with EA or script?

Hello,

my broker is ok, but it has very high spread on EURAUD and it does not offer CADCHF. But i like to trade both, since im making superior profit with both crosses.

My idea is to trade EURAUD trhough EURUSD long and AUDUSD/short. This will equalize USD and end up in EURAUD. But it is quite unhandy to to open both (eurusd and audusd) in the same time.

So i thought i could programm a script that opens these positions for me, and also cloeses both when i want it to.

I am very new to mql4 and i have never programmed such, so besides the question how the code must look like, the next question is, should it run as a script or EA?

Note: this type of trading is good for saving spreas as well: e.g. EURAUD has 10 pips spread, EURUSD has 2 and AUDUSD has 3, so for trading EURAUD my sepcial way, will save 5 pips spread. This works out for all major currencies with minor crosses, like GBPAUD (great for trading) or GBPCAD or EURCAD.

I am open to all ideas and input regarding programming AND the trading idea itself.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #105 (permalink)  
Old 03-07-2008, 02:21 AM
Telac's Avatar
Telac Telac is offline
Junior Member
 
Join Date: Jan 2008
Posts: 7
Telac is on a distinguished road
Looking for script/EA for manual scalping

Does anyone know of a simple script or EA that will allow you to enter buy limit/sell limit TP/SL parameters so you can bypass the 10 pip limits of the order entry box of the MT4 terminal. It would be a wonderful tool to use in manual scalping situations allowing you a bit more freedom from the mouse and screen

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #106 (permalink)  
Old 03-07-2008, 02:29 AM
Linuxser's Avatar
Linuxser Linuxser is offline
Moderator
 
Join Date: May 2006
Location: Helliconia (Autumn)
Posts: 2,162
Linuxser has disabled reputation
Quote:
Originally Posted by Telac View Post
Does anyone know of a simple script or EA that will allow you to enter buy limit/sell limit TP/SL parameters so you can bypass the 10 pip limits of the order entry box of the MT4 terminal. It would be a wonderful tool to use in manual scalping situations allowing you a bit more freedom from the mouse and screen

Thanks
the indicator posted on this thread helps to set, SL, Exit, etc. Another sophisticated tool is
Swiss Army EA (Automatic order management)

But, often, the limits are established by the broker not the software. That's means one broker could set a minimum of 10 pips between entry and stop, others could change this limit to 20 or 5, 40 or 1 pips.

Last edited by Linuxser : 03-07-2008 at 02:32 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #107 (permalink)  
Old 03-07-2008, 03:10 AM
Telac's Avatar
Telac Telac is offline
Junior Member
 
Join Date: Jan 2008
Posts: 7
Telac is on a distinguished road
Quote:
Originally Posted by Linuxser View Post
the indicator posted on this thread helps to set, SL, Exit, etc. Another sophisticated tool is
Swiss Army EA (Automatic order management)

But, often, the limits are established by the broker not the software. That's means one broker could set a minimum of 10 pips between entry and stop, others could change this limit to 20 or 5, 40 or 1 pips.
Thanks Linuxser - just what I was looking for
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #108 (permalink)  
Old 03-13-2008, 10:27 AM
slonmd slonmd is offline
Junior Member
 
Join Date: Jul 2006
Posts: 9
slonmd is on a distinguished road
Help!!!

Please help me!!! i am looking a script that will close all my positions when a certain amount of money is made.
ex. i set the script to close at 1500 USD profit (no matter how many is in + or hoe many is in-)
i have the following open orders.
1 buy with 1000 USD profit
1 buy with 1000 usd profit
1 buy with -500 USd loss
Total 2000-500=1500 so the script will colse all positions because the target of 1500 USD is reached.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #109 (permalink)  
Old 03-13-2008, 09:09 PM
roodstaart roodstaart is offline
Senior Member
 
Join Date: Jul 2007
Posts: 121
roodstaart is on a distinguished road
Open two positions

hi,

I hope someone can help.
I need a script, that opens two positions at the same time.
If possible a stoploss must be placed for both positions and a TPtarget for one position.

So is has to be one script this way for sell and one for buy. I looked everywhere, but no such script to find. I managed to create a script for two selling but cannot get the rest done.
In advance: thank you so much
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #110 (permalink)  
Old 03-14-2008, 01:13 AM
Linuxser's Avatar
Linuxser Linuxser is offline
Moderator
 
Join Date: May 2006
Location: Helliconia (Autumn)
Posts: 2,162
Linuxser has disabled reputation
Quote:
Originally Posted by slonmd View Post
Please help me!!! i am looking a script that will close all my positions when a certain amount of money is made.
ex. i set the script to close at 1500 USD profit (no matter how many is in + or hoe many is in-)
i have the following open orders.
1 buy with 1000 USD profit
1 buy with 1000 usd profit
1 buy with -500 USd loss
Total 2000-500=1500 so the script will colse all positions because the target of 1500 USD is reached.
Hello,

Maybe this thread could help: does anyone have an expert that closes all trades based on equity gain or loss?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/tools-utilities/174-close-all-open-tools.html
Posted By For Type Date
Close all trades !!! This thread Refback 06-24-2008 03:13 AM
Close all trades !!! This thread Refback 06-19-2008 10:53 AM
Close all trades !!! This thread Refback 06-19-2008 09:33 AM
Antara EA yang telah diLIVE test oleh MyMEFx Grup - Page 50 - Nogold.com This thread Refback 12-05-2007 03:58 PM
skrypty close i modify This thread Refback 08-07-2007 04:11 AM
Ind close sume post with one click? - Nogold.com This thread Refback 06-30-2007 03:02 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open/close trade on same bar's close? WNW Expert Advisors - Metatrader 4 2 03-29-2007 05:37 AM
close all open trades ea G-Riper General Discussion 2 08-02-2006 09:41 PM
Close all open positions jonjonau Expert Advisors - Metatrader 4 6 07-12-2006 05:01 AM
Close All Open Positions? lonespruce Metatrader 4 9 06-22-2006 07:20 AM


All times are GMT. The time now is 03:03 AM.