MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading and Strategy Testing Forum

IncCCIOnArray Library
IncCCIOnArray
Author: Integer
CloseAllPositionCloseAllPosition Try product
CloseAllPosition
Author: Konstantin83
Screenshot
#WIG20M3, H1
Real
A Library for Constructing a Chart via Google Chart API A Library for Constructing a Chart via Google Chart API Subscribe to signal
Lenka
37.43%, 205.15 USD

// buy and sell one another cancel each other

To add comments, please log in or register
brunoneveslt
30
brunoneveslt 2012.03.07 15:15
Good afternoon,

When I open two different ways in order, for example a buy and sell one another cancel each other. How can I do to avoid cancellation?

My goal is to open a buy order while a sell order, is this possible?How?
How to Order a Trading Robot in MQL5 and MQL4
With the launch of the "Jobs" service, the MQL5.community became an ideal place for placing orders and providing programming services. Thousands of traders and developers visit this resource on a daily basis, and can easily help each other. For a trader, the "Jobs" service is the opportunity to easily obtain his own Expert Advisor. For an MQL5-developer, it is an opportunity to easily find a client. In this article we will consider the capabilities of this service.
Tjipke de Vries
1433
deVries 2012.03.07 18:50
brunoneveslt:
Good afternoon,

When I open two different ways in order, for example a buy and sell one another cancel each other. How can I do to avoid cancellation?

My goal is to open a buy order while a sell order, is this possible?How?

In mql5 you can't  no hedging

Stay with mql4 if you wanna do this... 

brunoneveslt
30
brunoneveslt 2012.06.19 23:27
deVries:

In mql5 you can't  no hedging

Stay with mql4 if you wanna do this... 

thank you very much ;) 

Atsushi Yamanaka
2232
alohafx 2012.06.20 01:54

At least one broker I know provides this function on MT5.

The company has all the symbols double, like EURUSD and EURUSDL, USDJPY and USDJPYL for all the symbols. So if you wanna hedge, sell one and buy one with "L".


One other way is, when you have EURUSD buy  position and somehow you wanna sell same one, sell EURJPY and buy USDJPY same amount, that's gonna be the "synthesized" EURUSD.

The tool SymbolSynthesizer.mq5 for make it easy will be coming soon on CodeBase.


onewithzachy
954
onewithzachy 2012.06.20 04:02
alohafx:

At least one broker I know provides this function on MT5.

The company has all the symbols double, like EURUSD and EURUSDL, USDJPY and USDJPYL for all the symbols. So if you wanna hedge, sell one and buy one with "L".

One other way is, when you have EURUSD buy  position and somehow you wanna sell same one, sell EURJPY and buy USDJPY same amount, that's gonna be the "synthesized" EURUSD.

The tool SymbolSynthesizer.mq5 for make it easy will be coming soon on CodeBase.


Dear alohafx, 

Would you please mention the name of the broker ?

Thank you 

Atsushi Yamanaka
2232
alohafx 2012.06.20 07:12
onewithzachy:

Dear alohafx, 

Would you please mention the name of the broker ?

Thank you 

i'm shay enuf to put a link....

so you can gglks


all 4 eurusd bros

onewithzachy
954
onewithzachy 2012.06.20 07:57
alohafx:

i'm shay enuf to put a link....

so you can gglks

Right, thank you for that, I will Google, and I will ask second opinion to Yahoo!, Bing and Ask.com.

:D.

khai hoan nguyen
147
hoan 2013.01.29 10:54

in mt5, you can not hedge. So you can not open order sell order buy on a pair . To hedge, you can open 2 acc. 1acc sell , 1acc buy.
/
To add comments, please log in or register