fxDreema

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

    Been wondering about this for a while

    Questions & Answers
    3
    17
    2206
    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.
    • Zackry
      Zackry last edited by

      Let say my ea places the arrow on ema cross over, but is it possible to make it place these arrows on every cross over?
      I mean with expert advisors, the ea will place these arrows only after the point where the ea is attached, it won't place arrows on crossover happened before that point
      Is there a way to make it place these arrows on "n" number of previous bars

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

        @zackry You can loop through n number of candles with this simple logic:
        0_1573746141395_4805b1ee-2848-41a6-9854-1f73c10af121-image.png
        Now you can put the "loop_ID" as the "candle ID" setting in blocks 4 and below

        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 1
        • S
          seb 0 last edited by

          If i get it, what you need is simply this ? https://fxdreema.com/shared/A1PtFGNsc
          With the "1", the number of candles where the arrow is fixed before the cross.
          I didn't understood the logic of your exemple roar, can you put the link of the project ?

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

            @seb-0 here: https://fxdreema.com/shared/tGV3WCMse
            Did you notice that zackry wants to check conditions on multiple different candles (if I undestood)? This is what the loop is for.

            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

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

              @roar
              Humm so this ea would :
              --->Loop around blocks "1" and "4" continuously
              ---> Pass to block "3" then "2" 100 times, every loop until the 100th loop
              ---> then stop
              So as there is no "once per bar" block there will be many execution in a bit of time, it will draw arrows on the 100 last bars, in seconds, until 5ma>20ma ?
              Im trying to reformulate, it interests me.

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

                @seb-0 said in Been wondering about this for a while:

                it will draw arrows on the 100 last bars, in seconds, until 5ma>20ma ?

                Yes, but notice the candle ID on the 5ma>20 condition changes on each loop iteration -> the arrows will be drawn only to those candles that satisfies the condition.
                This is just an example of the core logic, it will need "once per bar" and a reset for the loop id
                0_1573808095045_db44414f-0f2a-4de9-a923-f23fd8705071-image.png

                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 @seb 0 last edited by

                  @seb-0 Here's a bit more complete example, lol:
                  https://fxdreema.com/shared/uXHgzyovb
                  0_1573808742977_bb74cade-2252-4909-9d57-88d8abe5a395-image.png

                  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

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

                    @roar hey roar thanks for the example, but is that the mt5 builder of fxdreema? if yes can you please share an example in mt4 builder version, i dont use mt5 as of yet so its a bit difficult for me wrap my head around it

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

                      @zackry It's mt4. My first example has a mistake, though: block id 1 is smaller than block id 3, so block 4 always passes on to block 1, and block 3 never gets activated. Fixed that in the latter example.

                      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

                      Zackry 1 Reply Last reply Reply Quote 1
                      • Zackry
                        Zackry @roar last edited by Zackry

                        @roar 0_1573771327965_Screenshot_1.png

                        never seen these before 😄
                        is there a block called loop condition?

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

                          @zackry It's a quicker alternative to "modify variables".
                          The box on the right: when orange output is activated -> loop_ID becomes loop_ID + 1. So the "V1" is just a shortcut for first variable.

                          P1 and P2 symbolize the values on the left/right side of the condition, no need to use them at all.

                          I wrote the "loop" in there, it's actually just a standard condition-block

                          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

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

                            @roar 🤦‍♂️🤦‍♂️🤦‍♂️I cant believe that I have never clicked on this manage variable section 🤦‍♂️🤦‍♂️
                            Now it makes sense, because I was wondering why it was showing mql4/ex4 on the top but this variable panel looked like mt5 version of fxdreema😅😅😅

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

                              @zackry hah yeah the variable window is pretty well hidden in the blocks lol

                              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

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

                                @roar thanks bro, gonna ask question after I play around with example you posted, I am a bit slow in the info intake so had to try it a few times to fully understand 😅

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

                                  There is actually a dedicated block for the whole loop system:
                                  0_1573816804496_cc402ffc-14f4-4034-a659-e20f5188f343-image.png

                                  I just like to do it manually, it's a bit more flexible

                                  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

                                  Zackry S 2 Replies Last reply Reply Quote 0
                                  • Zackry
                                    Zackry @roar last edited by

                                    @roar thanks 😁

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

                                      @roar
                                      Yes got it, pretty smart. Im gona consider it, it may be useful to me later!

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

                                      Online Users

                                      E
                                      N
                                      N
                                      F
                                      M
                                      A
                                      L
                                      O
                                      S

                                      31
                                      Online

                                      146.7k
                                      Users

                                      22.4k
                                      Topics

                                      122.6k
                                      Posts

                                      Powered by NodeBB Forums | Contributors