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 Thread Tools Display Modes
  #1 (permalink)  
Old 06-06-2006, 08:42 AM
elihayun's Avatar
elihayun elihayun is offline
Senior Member
 
Join Date: Jan 2006
Posts: 350
elihayun is on a distinguished road
Close and Reverse orders

Sometimes there is a need to reverse the trade that u open. The attached script will close all open orders that already running and will open a new orders with equal lots size. The scrip will close and reverse only the orders that the symbol() is equal to the one that the script is attached to.
Attached Files
File Type: mq4 Close and Reverse.mq4 (2.2 KB, 211 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-07-2006, 09:13 AM
balista4's Avatar
balista4 balista4 is offline
Senior Member
 
Join Date: May 2006
Posts: 132
balista4 is on a distinguished road
Thanks. I Will test the script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-07-2006, 10:30 AM
krall krall is offline
Member
 
Join Date: Jan 2006
Posts: 62
krall is on a distinguished road
It works fine, thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-07-2006, 11:02 AM
elihayun's Avatar
elihayun elihayun is offline
Senior Member
 
Join Date: Jan 2006
Posts: 350
elihayun is on a distinguished road
Quote:
Originally Posted by krall
It works fine, thank you
You welcome. I attached it to hotkey (Alt-R in my case) and everytime i want to reverse, I just Press Alt-R to reverse. I work only on one pair, so it is not a problem. If make sure click on the chart first.

Last edited by elihayun : 06-07-2006 at 11:05 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-26-2006, 02:44 PM
hellkas hellkas is offline
Senior Member
 
Join Date: Oct 2005
Location: Porto/Portugal
Posts: 250
hellkas is on a distinguished road
Quote:
Originally Posted by elihayun
Sometimes there is a need to reverse the trade that u open. The attached script will close all open orders that already running and will open a new orders with equal lots size. The scrip will close and reverse only the orders that the symbol() is equal to the one that the script is attached to.
Hi Elihayun...

Thank you very much for this little tool...

Your tool dont work with me and i dont know why...

I put it in the script folder, when i double ckick it appear a message that says: trade is not allowed

Can you help me???

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-26-2006, 03:25 PM
elihayun's Avatar
elihayun elihayun is offline
Senior Member
 
Join Date: Jan 2006
Posts: 350
elihayun is on a distinguished road
I don't know why, but I assume it is because the server was bussy. Try again, it shuld work. I am working with it all the time.

If u like this utility try the all group

After compile them u can set Hotkey to every one of them
I use the following

[alt-R] close and reverse
[alt-S] Sell
[alt-B] Buy
[alt-C] Close open orders
[alt-z] Make proffit to Zero (After u have some proffit and u want to set the S/L at the same price of the order)

Don't forget to set the S/L and T/P in the Buy/Sell script

Eli
Attached Files
File Type: mq4 Close and Reverse.mq4 (2.2 KB, 168 views)
File Type: mq4 CloseAll2.mq4 (1.7 KB, 189 views)
File Type: mq4 Set Zero SL.mq4 (1.6 KB, 174 views)
File Type: mq4 Sell Order.mq4 (1,014 Bytes, 187 views)
File Type: mq4 Buy Order.mq4 (1,016 Bytes, 188 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-26-2006, 05:04 PM
hada hada is offline
Member
 
Join Date: Dec 2005
Location: Merah Putih
Posts: 41
hada is on a distinguished road
elihayun thank's for sharing
can anyone helping me translate this?

fully thanks
Attached Files
File Type: mq4 Send_Pending_Order.mq4 (19.7 KB, 61 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-26-2006, 05:05 PM
hellkas hellkas is offline
Senior Member
 
Join Date: Oct 2005
Location: Porto/Portugal
Posts: 250
hellkas is on a distinguished road
hi Eli...

I put all scripts in the folder but none of them functions...

Where folder you have them? Its in the script folder, right?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-26-2006, 05:18 PM
elihayun's Avatar
elihayun elihayun is offline
Senior Member
 
Join Date: Jan 2006
Posts: 350
elihayun is on a distinguished road
Quote:
Originally Posted by hellkas
hi Eli...

I put all scripts in the folder but none of them functions...

Where folder you have them? Its in the script folder, right?

Thanks
Yes, in the script folder, but don't foget to compile them.
To set the hotkey, right click on the script and then select the menu option "Set hotkey"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 07-18-2006, 12:24 AM
ariefwahyudi ariefwahyudi is offline
Junior Member
 
Join Date: Apr 2006
Location: ranjang empuk
Posts: 18
ariefwahyudi is on a distinguished road
How used file above?
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
modify orders and close pending orders bkgridley Questions 8 05-23-2007 09:49 PM
Script to close open orders... babarmughal Expert Advisors - Metatrader 4 1 12-13-2006 04:50 PM
SHI Silvertrend close orders EA?? fxbrandon Expert Advisors - Metatrader 4 1 11-29-2006 08:17 PM
Script close all orders paulosilva555 Metatrader 4 1 02-17-2006 04:19 PM
close all orders mas Metatrader 4 2 02-15-2006 08:14 AM


All times are GMT. The time now is 09:51 AM.