fxDreema

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

    Adding close condition to my buy and sell conditions

    Questions & Answers
    3
    21
    2415
    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.
    • B
      Bayojoseph42 last edited by

      Hi fxDreema please I have been working on this simple EA and when I got to the concluding part I can't put it together, this is the condition.
      For buy order to happen PSR will be below the candle and CCI valve will be from 120 and above
      For sell order to happen PSR will be above the candle and CCI valve will be from -120 and below
      This I was able to do without stress.
      But when I want to add my close trade condition is when I now have my challenge
      My close conditions are
      For a buy order, if there is a buy order and the CCI valve is equal -100 close trade
      For a sell order, if there is a sell order and the CCI valve is equal 100 close trade
      My close condition will not work when I add it to my buy and sell conditions at the second condition of when CCI is above or below 120 and -120 respectively
      Please help, thank you.

      X 1 Reply Last reply Reply Quote 0
      • X
        Xfire @Bayojoseph42 last edited by

        @bayojoseph42 hi. please share your project.
        i can check your blocks

        IN GOD WE TRUST

        B 1 Reply Last reply Reply Quote 0
        • B
          Bayojoseph42 @Xfire last edited by

          @xfire please help me with how to do the share, thanks

          X 1 Reply Last reply Reply Quote 0
          • X
            Xfire @Bayojoseph42 last edited by

            @bayojoseph42
            in the menu "Project > create a shared copy" and click to link and copy from the address bar

            IN GOD WE TRUST

            B 1 Reply Last reply Reply Quote 0
            • B
              Bayojoseph42 @Xfire last edited by

              @xfire https://fxdreema.com/builder
              That is it thanks

              X 1 Reply Last reply Reply Quote 0
              • X
                Xfire @Bayojoseph42 last edited by

                @bayojoseph42 No. your link is incorrect to the base page.

                you should create by this menu "Project > create a shared copy"

                IN GOD WE TRUST

                B 1 Reply Last reply Reply Quote 0
                • B
                  Bayojoseph42 @Xfire last edited by

                  @xfire https://fxdreema.com/shared/y2PUO8Bld

                  X 1 Reply Last reply Reply Quote 0
                  • X
                    Xfire @Bayojoseph42 last edited by

                    @bayojoseph42 0_1587017428706_Annotation 2020-04-16 161013.png

                    should be working

                    IN GOD WE TRUST

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      Bayojoseph42 @Xfire last edited by

                      @xfire OK thanks but please taking a look at the close condition I hope or better put
                      How will the condition to stop buy order which is if there is a buy order and CCI is equal -100 will happen and vice vasa sell order from the close trade conditions, thanks

                      X 1 Reply Last reply Reply Quote 0
                      • X
                        Xfire @Bayojoseph42 last edited by

                        @bayojoseph42

                        you should put 1 for all candle ID in the conditions blocks
                        and Justin case up " => , <=" for close conditions

                        IN GOD WE TRUST

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          Bayojoseph42 @Xfire last edited by

                          @xfire if I do the following my close trade condition will work just fine, is that right?

                          X 1 Reply Last reply Reply Quote 0
                          • X
                            Xfire @Bayojoseph42 last edited by

                            @bayojoseph42 yes, your logic is correct but when you run EA on the demo account you find more issue take profit and you need to add more blocks for control few styles

                            IN GOD WE TRUST

                            B 2 Replies Last reply Reply Quote 0
                            • B
                              Bayojoseph42 @Xfire last edited by

                              @xfire thank you so much for your assistance, if I may ask what are your suggestions in that regard

                              X 1 Reply Last reply Reply Quote 0
                              • X
                                Xfire @Bayojoseph42 last edited by

                                @bayojoseph42 really before test i don't know what happens for your strategy. just test it and if you need help asking in the forum. your welcome

                                IN GOD WE TRUST

                                B 1 Reply Last reply Reply Quote 0
                                • B
                                  Bayojoseph42 @Xfire last edited by

                                  @xfire also please my money management there is a small issues about it too
                                  I want my lot size to be 1% of my balance thanks

                                  X 1 Reply Last reply Reply Quote 0
                                  • B
                                    Bayojoseph42 @Xfire last edited by

                                    @xfire you made my day I will find out how it works on the strategy test and get back to you, best regards

                                    1 Reply Last reply Reply Quote 0
                                    • X
                                      Xfire @Bayojoseph42 last edited by

                                      @bayojoseph42 No worries man . you are welcome
                                      the example just to buy

                                      0_1587021010446_Annotation 2020-04-16 170911.png

                                      IN GOD WE TRUST

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        Bayojoseph42 @Xfire last edited by

                                        @Xfire
                                        Hi fxDreema is there any block that can refer to a buy order or a sell order in trade of both buy order and sell order.
                                        For example:
                                        I want to refer the buy order in a trade so I need a statement like
                                        If the trade is a buy order and CCI value below or equal to -100 then close trade.
                                        Thank you

                                        X 1 Reply Last reply Reply Quote 0
                                        • X
                                          Xfire @Bayojoseph42 last edited by Xfire

                                          @bayojoseph42 "Filter by type" part in all trade blocks . just open this part

                                          IN GOD WE TRUST

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            Bayojoseph42 @Xfire last edited by Bayojoseph42

                                            @xfire sorry where do I find the filter by type?

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

                                            Online Users

                                            P
                                            M
                                            M
                                            E
                                            Y
                                            L
                                            F
                                            S
                                            F

                                            30
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors