fxDreema

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

    Martingale on pending orders

    Questions & Answers
    martingale
    3
    4
    3395
    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.
    • O
      osafx last edited by

      I need to implement 2 initial pending orders each 0.1 lots.
      After one executed other close.
      martingale loss in pips for the next order.
      Please find the shared provided by miro1360.
      I need to implement the martingale logic here.
      I failed because I added the input for each buy/ sell pending orders separately from money management area, so one's loss doesn't consider other type of trade.
      0_1488633917308_Untitled.png
      https://fxdreema.com/shared/7AnscAEkd

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        when you tried to create this betting martingale, is not working?

        Between trading and gambling is a very small gap, be careful.

        1 Reply Last reply Reply Quote 1
        • O
          osafx last edited by

          scenario not working;

          1. execute and loss a pending buy order
          2. then execute a pending sell order

          I think if the executed and lost trade is a buy, then EA place martingale only for next pending buy order. not for pending sell order.
          wise versa for sell type.

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

            Yes, Martingale option works in a global way. It looks at the last trade to decide what will be the next lot size, but the type (buy or sell) doesn't matter. What matters is the Group number, so if you want to separate buys from sells, create them with different group numbers.

            And by the way, even I don't know what is the right behavior when Martingale is used for pending orders. A true Martingale is when you create a trade, wait for it to close, then create new one, wait for it to close... and so on. But people decided that Martingale should happen in some way for currently running trades. So I added the ability to check currently running trades first (to get the lot size of the latest running trade instead of the latest closed trade). Then people decided that Martingale should happen in some way for pending orders, which is kinda ridiculous. So I added this MM for pending orders, but to be honest I forgot how Martingale works for them.

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

            Online Users

            F
            M
            L
            F
            F
            M
            E
            K
            M
            T
            A
            P

            22
            Online

            146.6k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors