fxDreema

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

    Problem with custom indicator ex5

    Bug Reports
    2
    48
    16435
    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.
    • fxDreema
      fxDreema last edited by

      But I don't have this indicator to check it 🙂

      Ok, here are very simple things to do. It's important to do these when needed.

      1. To know when and where some block passes, use Draw Arrow. Connect this after some block, let's say block X, and you will know when block X passes. There is even a special block I created for this - Logic points tester. It does not draw arrows, it draws some lines.... a line is the time period where block X was passing. But I found myself using Draw arrow anyway.

      2. To know what is the value of something. Use "Comment on chart" for multiple values, or "Indicator tester" for a single value.

      3. Keep an eye on the error logs. If something goes wrong this is the first place to look at.

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

        Okay indicator is already added in the "My indicators" Please find attached the indicator. It's the same one I used for MT5, blz works, but the EA for MT4 does not work. Please find attached the indicator.

        I just tested by arrows, and this only giving sell signal, even if the insides of the block parameters are correct. Does the indicator parameters are wrong?

        ......
        pz-turtle-trading.ex4

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

          Buffer 0 is the uptrend line, buffer 1 is for downtrend. Swap those buffers 🙂 2 and 3 are ok.

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

            Ok Thanks fxDreema.

            I'll be running tests with the fix.

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

              It worked! Thanks fxDreema!

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

                Hello fxDreema. I thought it had worked, but now carefully analyzing, saw that this still malfunctioning.

                See my project, "Strategy 2".

                I used your example you did.

                The martigale sometimes happens in this sequence: buy 0.01, sell 0.03, buy 0.03, sell 0.09, buy 0.09, where instead of:
                buy 0.01, sell 0.03, buy 0.09, sell 0.27 etc., that is how I need. Even in profit, it does not reset the lot.

                Any strategy 1 and 2 are wrong functioning.

                https://fxdreema.com/shared/IBf63frze

                Strategy 1 Martigale with Risk% of balance.

                Strategy 2 Martigale with Ryan Jones

                ......
                pz-turtle-trading-mt5.ex5
                log expert.txt

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

                  If you want it 1-3-9-27, then this is Martingale with factor x3.

                  You have Strategy 1 and Strategy 2. Now because of the settings in "No position is running", especially in 115 and 125, you got two positions at a time, one from Strategy 1 and right after that second one out of Strategy 2. This depends on the numbers of blocks 108 and 117, in the case 108 runs first so Strategy 1 runs first.

                  If you fix blocks 115 and 125, then Strategy 2 does not work at all, because now it mirrors Strategy 1 in the upper part (from the first condition to "No position is running").

                  So I don't know, it works in the way it is build, I don't see bugs or something.

                  With so many different Buy and Sell blocks, better use their Comment section, and you will see the problems easier, like in this picrute: http://prntscr.com/4dyfgc

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

                    Regarding strategies, maybe if I put in group mode for each strategy, as the first separate the two, because it does not use both strategies at the same time can fix this problem? I'll try that.

                    The blocks 108 and 117 do not exist. Which blocks mean? I have the blocks 115 and 124.

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

                      108 and 117 are at the top.

                      At the same time... if you use different Group number, this is like having different EAs, so in this case you can control 2 strategies at the same time in the same EA. This is the idea of the Group number.

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

                      Online Users

                      A
                      C
                      A
                      X
                      J

                      31
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors