fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Modify pending order volume.

    Questions & Answers
    3
    3
    1350
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Juan Manuel Quiñonero last edited by

      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.
      0_1546991173285_8157c3bb-9343-4ba8-b6ea-139c069d05a9-image.png

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        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

        1 Reply Last reply Reply Quote 0
        • C
          casper last edited by

          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.10

          use 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.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post

          Online Users

          C
          E
          M
          F
          T
          M

          19
          Online

          146.6k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors