Modify pending order volume.
-
2 pending orders are created (Buy stop, Sell stop) if the price touches sell stop, how can I modify the volume of the BUY stop order?
Thank you.

-
There is a function with these parameters in MQL4:
bool OrderModify( int ticket, // ticket double price, // price double stoploss, // stop loss double takeprofit, // take profit datetime expiration, // expiration color arrow_color // color );You can see what can be modified, but the volume is not there
-
Hi Juan,
İt's simple. You must create double variables for buy stop order and sell stop order. Like this:
varbuystopvol=0.10
varSellstopvol=0.10use this variables into pending order bloks. After then ;
Go to OnTrade Mod. and use Trade Created blok and set to filter "Sell" . and connect to "Modify Variable" blok and modify to varbuystopvol=0.05 (or what are you want?) (Also you can use Adjus parameter into this blok.)
Have a nice day.