fxDreema

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

    block

    Questions & Answers
    2
    14
    2809
    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.
    • F
      FHTrading last edited by

      "For each trade"
      *newest to oldes
      *not more than"n" trades = 1

      Conected to... (orange output)

      "pips aways from stop-loss"
      *pips away= 100

      conected to..(orange output)

      "close(partialy)"
      *volume size= 0.09

      AND the stop loss is of 300 pips.

      if i do that, the trades wich are running with these characteristics will be close?

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

        You tried that?

        1 Reply Last reply Reply Quote 0
        • F
          FHTrading last edited by

          I tried that but didnt work correctly. Because the trades closes partialy (not with the amount i wanted) and in a moment that is not the moment i said.

          do you know why?

          In these days im paying again the monthly..

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

            Pips away from stop-loos means that the current price should be above SL+Pips (for buys) or below SL-Pips (for sells). So, if you have for example buy with SL=300 pips, then "pips away from stop-loss" with setting at 100 pips will be true from the beginning, because initially the current price is 300 pips away from SL.

            Close partially can close "wrong" lot sizes depending on what is the minimum lot size and lot step from the broker. Partial close actually closes the current and then opens new trade. For example I have minimum lot 0.1 lots, so I can't close 0.09 lots from 0.1 lots. If I try really I get this error "Invalid trade volume (131)", but in fxDreema it uses the minimum lot size that is possible, so instead of error message I have 0.1 lot closed.

            I can suggest "once per trade/order" block if you have situation where the trade is partially closed few times in a row.

            1 Reply Last reply Reply Quote 0
            • F
              FHTrading last edited by

              __Pips away from stop-loos means that the current price should be above SL+Pips (for buys) or below SL-Pips (for sells). So, if you have for example buy with SL=300 pips, then "pips away from stop-loss" with setting at 100 pips will be true from the beginning, because initially the current price is 300 pips away from SL.

              Close partially can close "wrong" lot sizes depending on what is the minimum lot size and lot step from the broker. Partial close actually closes the current and then opens new trade. For example I have minimum lot 0.1 lots, so I can't close 0.09 lots from 0.1 lots. If I try really I get this error "Invalid trade volume (131)", but in fxDreema it uses the minimum lot size that is possible, so instead of error message I have 0.1 lot closed.

              I can suggest "once per trade/order" block if you have situation where the trade is partially closed few times in a row.[/quote:2xw79vrm]

              I make a list:

              1. Now i give up with the block "pips away from stop.loss" i think that this block doesnt work for what i want. And i will try with the block "pips away from open-price" with the mode "Double-side model (absolute distance)", i think this block fits well with what i want.

              2. Here is where o dont understand. Because i dont know where i can change "the minimum lot size". And im sure that my broker allows me to close any lot size between 0.01 to 50.0 lots.

              3. Thats is a good suggestion, i will use "once per trade/order"

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

                The minimum lot size cannot be changed, this comes from the broker. Here is a small test that opens 0.2 lots and then closes 0.11 lots. At the end I have a single trade of 0.09 lots, which is interesting because otherwise I cannot open something smaller than 0.1 lots and I also cannot close lot size smaller than 0.1 lots.

                Yesterday I found small problem with "close (partially)" block, but I think it was only for the web version. Can you try this example? At least for me it works, here is the result: http://prntscr.com/2lgasg

                1 Reply Last reply Reply Quote 0
                • F
                  FHTrading last edited by

                  I tried this with the local version in i have that... finaly it works ok it close (partialy) and 200 pips ways from open-price.. but then it affects the next trade that should be with 5 lots and not 0.5 lots..and i dont know why the ea do that.

                  do you know why? and what can i do?

                  ......
                  for fxdreema.png
                  Ghost EA v.10 sin grupos.mq4

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

                    How do you calculate next trade's lot? It obvously uses the last known lot size (0.01) instead of the initial one (0.1).

                    1 Reply Last reply Reply Quote 0
                    • F
                      FHTrading last edited by

                      your inteligent fx! haha i didnt get that.. was obiously..

                      So i will change something in martingale..

                      instead of: Multipli on loss(coef.) = 50 .. i will put: add fixed lots on loss= 5 and Multipli on loss(coef.) = 1

                      I know that there will be 2 sitiations:

                      1.when the last loseable trade was with 0.1.. so the next will be with 5.1 lots

                      1. When the last loseable trade was with 0.01.. so the enxt will be with 5.01

                      About this difference i dont care, thats not a problem. i have full version again 😄

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

                        So it is martingale, as I suspected. This block checks the last trade, and because partial close produce brand new trade, it just reads it's lot size. And it's not that it can't use the initial lot size (if I change something in the code), but what if someone wants to use it as it is now. Or I should add one more parameter for this block 😕

                        1 Reply Last reply Reply Quote 0
                        • F
                          FHTrading last edited by

                          Fxdreema, im using "Add fixed lots on loss" of Custom martingale, but it doesnt work. Do you know how can i do to apply martingale of 5 lots after a lose of 0.1 lots (0.09 + 0.01)?

                          Thanks

                          ......
                          1608921_10201364491049876_1860374434_n.jpg

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

                            This option "Maximum volume size" often makes me wonder what is going on as well 🙂

                            1 Reply Last reply Reply Quote 0
                            • F
                              FHTrading last edited by

                              okey you make me feel a bit stupid 😞 haha

                              i solve the problem, im goign to do some bt....

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

                                Maybe this option is not very good, or the way the block reacts to it. These blocks are pretty old now, I have idea to get rid of them and move their functionality into "Buy now" and "Sell now" blocks as MM options... but when, if, how... I don't know 🙂

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

                                Online Users

                                A
                                M
                                W
                                E
                                G
                                K
                                E
                                A
                                S
                                O
                                S
                                A
                                N
                                J

                                22
                                Online

                                146.7k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors