Jump to content

Recommended Posts

Posted

This Script to close all open position with one click.

 

while open u can just open the trade window and adjust the currency and the amount and the buy or sell gonna be 1 click

but if u found a script which could make it faster feel free to share it

 

http://www.mirrorcreator.com/files/HA1WEVZH/Close_all_possitions.rar_links

 

----------------------------------------------------------------------------------------

to implement your request for entry all it takes is 2 essentially one-line MQL4 scripts and 2 hotkeys.

 

 

//+------------------------------------------------------------------+

//|1-Click Buy Order.mq4 |

//+------------------------------------------------------------------+

int start()

{

OrderSend(Symbol(), OP_BUY, 10, Ask, 3, Ask-15*Point, Ask+12*Point);

return(0);

}

 

 

//+------------------------------------------------------------------+

//|1-Click Sell Order.mq4 |

//+------------------------------------------------------------------+

int start()

{

OrderSend(Symbol(), OP_SELL, 10, Bid, 3, Bid+15*Point, Bid-12*Point);

return(0);

}

 

 

(Spacing isn't rendered properly here on ET, unlike in the attached files.) Here Symbol() refers to the pair on the currently active chart, order size = 10 lots, slippage = 3, SL = 15, TP = 12. Feel free to edit any variables as needed, on the fly. Ctrl-s and F5 to save and compile after any edit, of course.

 

Save these two files in the \Program Files\[MT4 dir]\experts\scripts folder. Open with MetaEditor and compile. In MT4 Navigator - Scripts, right-click on a script - Set hotkey, e.g.:

 

Alt-b for 1-Click Buy Order

Alt-s for 1-Click Sell Order.

 

You're set to go, for entries.

 

For exits, a script could be almost as simple or more involved. It depends on the trader's MO and therefore exactly what actions he needs to be able to execute with 1 click.

 

http://www.mirrorcreator.com/files/ZEVZCAQW/1_click_buy_sell_Order.rar_links

http://www.mirrorcreator.com/files/NTIVROKN/1_click_buy_sell.rar_links

 

I hope someone finds this to be helpful! :-bd

 

Bye,bye.. :shand:

Cazador

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...