Download MetaTrader 5

How to ModifyOrder() pending (buylimit & selllimit) using MQL5 syntax code?

To add comments, please log in or register
Thousands of developers have already published their products in the Market. Join them!
Piotr
1249
Piotr 2016.02.20 14:01 

Hi,


I have to modify three things on pending orders: buylimit and selllimit.

1). OrderOpenPrice(),

2). OrderStopLoss(),

3). OrderTakeProfit().

Above three things are defined as double parameters:

1). double ooprice <- OrderOpenPrice(),

2). double osl <- OrderStopLoss(),

3). double otp <- OrderTakeProfit().


My question is:

What MQL5 syntax code should I use in order to modify above parameters on opened pending orders buy limit & sell limit?


Please for the example using names of my parameters.

I tried https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradeordermodify

but there is no EXAMPLE. My code does not WORK.

Documentation on MQL5: Standard Library / Trade Classes / CTrade / OrderModify
Documentation on MQL5: Standard Library / Trade Classes / CTrade / OrderModify
  • www.mql5.com
Standard Library / Trade Classes / CTrade / OrderModify - Reference on algorithmic/automated trading language for MetaTrader 5
Piotr
1249
Piotr 2016.02.22 12:18  
Has anybody any simple & good working idea how to do it?
To add comments, please log in or register