fxDreema

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

    Controlling two parts - Buys side and Sells side

    Questions & Answers
    3
    12
    945
    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.
    • AlphaOmega
      AlphaOmega last edited by

      Hello

      Because the modification of the Take Profit calculation get mixed up working with the sells and buys together I want to separate the sides... Buys only and sells only. In other words, When the buy condition is activated then ONLY the buy side will work and when Sell condition is activated ONLY the Sell side will work. The OR, AND and IF function does not work in this case, I already tried.
      https://fxdreema.com/shared/qLh0njCEc

      Regards and Thank you

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @AlphaOmega last edited by

        @alphaomega Put a blue check trades count block above the buy and sell, for buys check sells => 1, for sells check buys => 1.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        AlphaOmega 1 Reply Last reply Reply Quote 0
        • AlphaOmega
          AlphaOmega @jstap last edited by

          @jstap Thx for the reply... I cannot do that because the expert works on averaging.. so if I do the Check Block it will mess-up the count of the pips away from open price. Have you run the expert? Please check how it runs. There is a similar project on another project.. Let me check where it is
          https://fxdreema.com/forum/topic/8947/can-i-set-my-buy-sell-ea-to-only-buy-or-only-sell
          but I cannot use it here..

          jstap 1 Reply Last reply Reply Quote 0
          • jstap
            jstap @AlphaOmega last edited by jstap

            @alphaomega I haven't but you said allow only buys when buys activate, by putting the check block at the top of the tree the whole tree will not work when the opposite trade is running.

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

            AlphaOmega 1 Reply Last reply Reply Quote 0
            • AlphaOmega
              AlphaOmega @jstap last edited by AlphaOmega

              @jstap .. brother, I do not care about how many trades the expert makes because I have that covered. My problem is with the mistakes the algorithm
              0_1647896568184_82ddb576-5b3b-4256-86a9-56d3b214fdc6-image.png
              starts having, if you take sells and buys together. I have gone so far as to create groups as to help the workings not get mixed-up but it does not help, it still mix-up the buys and sells average.
              If I create ONLY buys then the averaging algorithm do not make mistakes and so also with ONLY sells, BUT, when the two works together that's where the algorithm starts making mistakes. So I need a way to keep the Buys and Sells apart. When there is a BUY condition the Sell side must be put off, and visa versa.

              jstap 1 Reply Last reply Reply Quote 0
              • jstap
                jstap @AlphaOmega last edited by

                @alphaomega I am lost because I showed you how to stop the other type of trades from running, meaning your code would work as expected.

                Use bucket of trades or pink for each trade to get the values you want for both buy and sell separately.

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

                AlphaOmega 2 Replies Last reply Reply Quote 1
                • AlphaOmega
                  AlphaOmega @jstap last edited by AlphaOmega

                  @jstap Ok, I understand that you will be lost if you did not run the expert to see everything that I explained above happening. I understand that the advice that you have given is the correct advice in normal circumstances, but it will not work because in this instance the the Buy side and the Sell side use the same MQL block. This is the biggest problem.. would you do me a favor please.. Rewrite the Sell part of the expert using the same blocks but with other variable names and such. I have also done this in Group1 and Group2 but I struggle for the expert not to use the MQL block simultaneously for Buy and Sell,
                  0_1647929636941_99f7094a-2470-43a6-b5dd-fd6bddd9ff6e-image.png

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

                    @Jstap Thank you very much for all your input .. I have this problem solved now.

                    I had to connect both sides of the algorithm to the Check trades block
                    0_1647960927836_a8e39f1e-3a67-428e-9dab-7c6da6420e46-image.png

                    1 Reply Last reply Reply Quote 0
                    • AlphaOmega
                      AlphaOmega @jstap last edited by

                      @jstap
                      0_1647961074448_b32171cf-cf44-4e7d-bc4c-83ff3fffe554-image.png
                      0_1647961102984_f97adc3c-d2c2-4dd7-96e4-ddd6432c4b31-image.png

                      jstap 1 Reply Last reply Reply Quote 1
                      • jstap
                        jstap @AlphaOmega last edited by

                        @alphaomega Looks good:)

                        Learn fxDreema Without the Wait!

                        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                        Don’t miss out

                        Click here➡️ https://mybook.to/fxDreema to get your copy today!

                        Enjoy! 😊

                        AlphaOmega 1 Reply Last reply Reply Quote 1
                        • AlphaOmega
                          AlphaOmega @jstap last edited by

                          @jstap maybe you have a good strategy I can test?... the skeleton works like a bomb now

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            makabasaking @AlphaOmega last edited by

                            @alphaomega you mind sharing bro

                            MakabasaKing

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

                            Online Users

                            D
                            F
                            K
                            C
                            E
                            M
                            F
                            T

                            18
                            Online

                            146.6k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors