fxDreema

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

    After profitable position pass n position

    Questions & Answers
    4
    40
    6252
    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
      cerrase last edited by

      Hello Fxdreema. how can i set ea to after n consecutive profitable positions dont open n time position. for example after 2 consecutive profitable positions dont open next 3 positions. that is my diagram. https://fxdreema.com/shared/wvzEF0bad
      thanks.

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

        alt text

        C 1 Reply Last reply Reply Quote 0
        • C
          cerrase @vish last edited by

          @vish thank you. i going to try

          C 1 Reply Last reply Reply Quote 0
          • C
            cerrase @cerrase last edited by

            where wil i put of diagram that part. after condition or after no trade or after buy-sell now block.

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

              You have "No trade -> Condition" under "on Tick" and until new trade is created and the rules in Condition are true, these blocks will continue to pass over and over again. Then you have the counter, which will run multiple times very quickly and is useless. Not to mention that both of your conditions can be true over and over again multiple times in the same candle.

              Also, you have this buy-sell-buy-sell configuration where the existence of trades controls the whole process. You want to somehow skip trades, which breaks the whole idea.

              I made this - https://fxdreema.com/shared/zcOfXb3Pc

              This has 2 variables. To control the buy-sell-buy-sell process I use one of the variables instead of Buy and Sell trades. The top part of this is almost the same as this example - https://fxdreema.com/demo/mt4-buy-sell-buy-sell-opposite-conditions - but instead of trades I'm working with the value of the variable, so the variable can be either "buy" or "sell".

              For the main conditions I'm using MA, because it's easier for me to see what is going on in the chart. But I use the previous candles, because if I work on the current candles I notice multiple changes between "buy" and "sell" at the same candle. Those Draw arrow blocks draw some arrows, so you can see the final signals - white arrow for buy and red arrow for sell.

              Then over this strategy I have the other strategy that involves counting consecutive profits and making trades. Even I am confused of what I did 🙂 But it seems to work. Here is what I got:

              0_1552239520162_73f08fbd-5a37-4ade-954d-e44cae4b16f2-image.png

              To add this EA in your projects, download it as .mq4 file and then import that file.

              C 1 Reply Last reply Reply Quote 0
              • C
                cerrase @fxDreema last edited by

                @fxdreema thank you very much for your working administrator. i was want to thank you for this site before. it is very helpful for poeople that is not programer like me. i will try ea.

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

                  0_1552293672275_macp.png

                  roar 1 Reply Last reply Reply Quote 0
                  • C
                    cerrase last edited by

                    hello. it is backtest grap. it is opening thosuands position in a bar. how can i fix it. what is my mistake. i copy your blocks for ea.

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

                      0_1552329296743_macp2.png

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

                        maybe my definition of variables is fault.

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

                          is there anybody to help ?

                          roar 1 Reply Last reply Reply Quote 0
                          • roar
                            roar @cerrase last edited by

                            @cerrase I can look into it. Could you please share a copy of the current project, and try to simplify the problem as much as you can.

                            Need small help? Tag me in your post
                            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                            C 2 Replies Last reply Reply Quote 0
                            • C
                              cerrase @roar last edited by

                              @roar hello roar. thanks for your interest . i want set ea when it win 2 consecutive profitable positions dont open next 3 signal . i want to pass 3 signals. because the system that i design losing consecutive 3 position after 2 consecutive profitable position.

                              1 Reply Last reply Reply Quote 0
                              • C
                                cerrase @roar last edited by

                                @roar https://fxdreema.com/shared/wvzEF0bad it is share of project. it is a sample. please explain me how can we do right diagram and why if you can

                                1 Reply Last reply Reply Quote 0
                                • roar
                                  roar @cerrase last edited by roar

                                  @cerrase Ok. Firstly, about opening multiple trades per 1 bar - the code runs on every tick, so we should put a "once per bar" at the top of our logic, if we want max 1 trade per bar.

                                  Need small help? Tag me in your post
                                  Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

                                    Secondly, it seems you just used the wrong counter block 😄
                                    Easy fix.
                                    https://fxdreema.com/shared/8M4ghadOd
                                    Edit: oops a mistake in "no trade (sell)", just connect it like the "no trade (buy)"

                                    Here's the files, in case you have the basic version. I recommend buying the subscription, though, 10 connections usually aren't enough for anything.
                                    0_1552754595140_unnamed.ex4

                                    0_1552754581688_unnamed.mq4

                                    Need small help? Tag me in your post
                                    Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                    C 2 Replies Last reply Reply Quote 0
                                    • C
                                      cerrase @roar last edited by

                                      0_1552755962788_roar.png

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        cerrase @roar last edited by

                                        @roar thank you for your working. there are some mistakes. the first it open position when candle open, i want to open when break to ma. i use breaks strategies not close on ma strategies. and second mistake is it is opening several positions i want 1 position.

                                        roar 1 Reply Last reply Reply Quote 0
                                        • roar
                                          roar @cerrase last edited by roar

                                          @cerrase
                                          The first block was using "candle low", I corrected it to "candle close"
                                          https://fxdreema.com/shared/eKsf60nyb

                                          Need small help? Tag me in your post
                                          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                          C 2 Replies Last reply Reply Quote 0
                                          • roar
                                            roar last edited by

                                            Perhaps you want the whole candle to be above / below the MA, then use this: https://fxdreema.com/shared/o7HGBJbD

                                            Need small help? Tag me in your post
                                            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

                                            Online Users

                                            R
                                            F
                                            S
                                            D
                                            V

                                            18
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors