fxDreema

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

    Adding to Buy Trade not working

    Questions & Answers
    2
    7
    1244
    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.
    • T
      timbeaux75 last edited by

      I have tried for hours to get this correct without success, and it should not be difficult to do. I have a routine to add to either a buy or sell position if the close of the next bar is X pips further in profit than it was at the last trade. The project works on the sell side, but the exact same structure does not work on the buy side. https://fxdreema.com/shared/FEErW3o4e

      1 Reply Last reply Reply Quote 0
      • T
        timbeaux75 last edited by

        The default settings I have been testing against GBPJPY on 4H

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

          I don't have your indicator. And I really prefer to test this on a project that contains only the most important blocks. This contains trailing stop, custom indicators...

          But when something works on one side and doesn't work on the other, the first reason that pops in my mind is values in Condition block. If you have X < Y and you expect both values to be for example between 20 and 100, then everything will work fine if they are really between 20 and 100. But if X is an indicator, which could give you value of 0, then guess what... when X is 0 and Y is whatever number that is bigger than 0, then the Condition is right.

          I don't like block 3. It passes when there is at least 1 Buy trade. But what is in the yellow output? It doesn't mean that it would pass only if there is at least 1 Sell trade. The yellow output is the opposite of the orange output. In this case, the orange output would pass if there is no Buy trade, but it doesn't matter how many Sell trades there are. So, i will suggest to use 2 blocks from these, one for Buy and one for Sell, if needed.

          T 1 Reply Last reply Reply Quote 0
          • T
            timbeaux75 @fxDreema last edited by

            @fxDreema Thank you very much, I will look into this much deeper. I agree, I think it is in the condition block but I can't seem to understand why it doesn't pass. It is almost certainly user error! 🙂

            T 1 Reply Last reply Reply Quote 0
            • T
              timbeaux75 @timbeaux75 last edited by

              @fxDreema I can get block 3 to pass, I know this because buy trades will close under the correct conditions. The problem area I have been focused on is Block 16, which is the one which would add an additional trade if price was moving in the direction of the trend. It does not seem to pass even if price is above the past price. I have been wondering if it is something to do with the variable, but everything I try hasn't worked.

              The custom indicator is an oscillator, similar to MACD but faster response. Output 1 is the indicator line and Output 0 is the signal line.

              1 Reply Last reply Reply Quote 0
              • T
                timbeaux75 last edited by

                I think that perhaps I can use the "Buy Grid" and "Sell Grid" blocks, but they aren't an exact fit for what I was trying to do. I was hoping to place the order once per bar at the close, so that a long wick wouldn't have me in many trades all of a sudden.

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

                  If you think that block 16 is the problem, then try to write the name of that constant that is used in "Adjust" manually. Because this filed is a little bit specific and I'm not sure that the way you use the Constant there works as expected.

                  Anyway, you can always check when blocks pass - just place some "Draw Arrow" block after the block in question.
                  And also you can always check some value (of variable, indicator or anything else) - just use "Comment" or "Trace" block

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

                  Online Users

                  E
                  N
                  S
                  K
                  M
                  L
                  E

                  13
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors