fxDreema

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

    how to make Take Profit double Stop Loss

    Questions & Answers
    3
    5
    998
    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.
    • C
      ClauTrade last edited by

      Hi,

      I need the Variable TP = Nยบ X SL

      My Stop loss came from my indi so I need calculate the Pips of SL and moltiplicate it X Constant (EJ: 2 for double) to set TP

      Are there an easier solution?

      I do it:

      1. Formula in INIT to moltiplicate "constant" X 10.000
        http://screencast.com/t/BcFA3gLPm
        http://screencast.com/t/BcFA3gLPm

      2. Two FORMULAS (buy/sell) to calculate nยบ pips stop loss
        http://screencast.com/t/y8vsfl0ei
        http://screencast.com/t/y8vsfl0ei

      3. Two FORMULAS to calculate nยบ pips X (result formula point 1)
        http://screencast.com/t/SAErjSw2Wv
        http://screencast.com/t/SAErjSw2Wv

      4. I use the last result in the set TP (buy/sell)
        http://screencast.com/t/1wYDkgPts0Mc
        http://screencast.com/t/1wYDkgPts0Mc

      It work!!! ...but maybe there are too much formulas and steps! ๐Ÿ˜ฎ

      Can you tell me if there are another way please?

      Many thanks. ๐Ÿ™‚

      Regards

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

        I can see that there are too much Formula and Modify Variables blocks ๐Ÿ™‚ Setting and modifying a variable is something really simple actually, but when it takes a whole block or group of blocks... you can see how bad it looks. But how can we do this with blocks and without writing code? I can suggest to use the "Adjust" fields when possible, also use this side panel "Variables" which you can see in every block's settings window. In both places you can write anything and it will go directly into the code. I can also suggest "Custom MQL4 code" block.

        And connecting these blocks like this in parallel... I don't know why people prefer to do it that way, but this creates problems sometimes. Note that when you have blocks in parallel, which one will run first, do you know? So it's better to connect them one after another, just in case.

        1 Reply Last reply Reply Quote 0
        • U
          uchiha last edited by

          How about this?

          https://fxdreema.com/shared/TiFW3onB

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

            Ok, this is simle. Look at the numbers of blocks - 1, 2 and 3. Blocks 1 and 3 are "first" or "top" or "initial" or however you call it... blocks. They are connected only from their outputs, so they are at top level and they will be executed from the EA for sure - on every tick. Which one will run first? The one with lower number - 1. Which one is next? When 1 runs and passes, the next one is 2. And finally - 3. Here is more about that: https://fxdreema.com/demo/blocks-execution-order

            Otherwise you can try this: http://prntscr.com/4qyvvq If what you want is to make TP 3 times bigger than SL...

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

              Hallo,

              great... perfect! ...more valid solutions!! Thanks! ๐Ÿ˜‰

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

              Online Users

              M
              F

              13
              Online

              146.8k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors