fxDreema

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

    Video Tutorial - Signals Dashboard EA [advanced] - looping Objects, arrays

    Tutorials by Users
    11
    75
    42247
    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.
    • M
      miro1360 last edited by miro1360

      Here I show you how to create own Signals Dashboard using fxDreema with few blocks using loops and arrays.
      How can arrays and loops help you create project with few blocks instead of > 1000 blocks (mostly in multipair projects).

      Video (without voice πŸ˜„ 😞 https://youtu.be/6wYxwRF6slw

      For this tutorial very small programming knowledge is needed.

      .... edit 07/2018: for some reason project is broken, custom code blocks are empty ....

      MT4 original project (MT5 si probably the same logic)
      0_1488659041688_Tutorial_Arrays.mq4

      edit: MT5 project: https://fxdreema.com/shared/ZA1quekHb

      0_1488658717958_upload-7dc87cf5-421c-4a7e-9aa8-22f588aa5b25

      0_1488659369061_upload-10cee1e1-a392-49a4-9db9-b703d6867508

      0_1488659107159_upload-7164f421-31ad-4b98-bd5e-82503a51c676

      0_1488659159713_upload-50129163-493a-4ac1-a6bd-5ebd03ba1ff1

      0_1488659198690_upload-cf3bec1c-8372-4660-9e0e-90b679917c93

      0_1488659295243_upload-0a4ea50b-2e60-475c-bc7b-05b28e5052c7

      have a fun

      Between trading and gambling is a very small gap, be careful.

      FXFun H ajmd97fx 4 Replies Last reply Reply Quote 3
      • FXFun
        FXFun @miro1360 last edited by

        @miro1360
        Thank you for this very well done job & tutorial on using MQL & Arrays! Very valuable. Keep up your good work!
        πŸ˜€

        Would it be a good idea to use a vertical array for rows as well, e.g. if I would add many more indicator rows?

        Sorting of Min & Max data, I believe is very useful and important to create many useful formulas, indicators & for condition/decision making -- which can be done in MQL4 using MathMax & MathMin .

        E.g. your tutorial EA could mark which pair has moved Most & least today.

        But how can these Math functions be utilized in FXDreema? I believe they are missing in this software, and if so they should definitely all be added, what do you think?

        Meanwhile we could perhaps use a "Custom MQL code" block, or what do you think?

        I tried to calculate Min & Max and store the resulting value into a variable, but nothing compiled correctly. Any ideas?

        Ref: [https://docs.mql4.com/math/mathmax](link url)

        Life is FUN - when you have control over it. Take control over FX & Have FUN all the Time! :-)

        1 Reply Last reply Reply Quote 0
        • M
          miro1360 last edited by miro1360

          now pairs are in rows, each row is each pair ... and you are probably asking for columns? you can add as how many columns with indicators as you wish

          and with sorting you mean array sorting and than pairs sorting into pyramid?
          https://docs.mql4.com/array/arraysort
          it can be done, but it takes a lot of time to do πŸ˜„ maybe sometimes ....

          you can use all functions in fxDreema, all functions which are in mql language and you can also create own functions (with fxdreema studio, look somewhere in forum for more details) ...

          I think, these functions MathMin and MathMax are not working with arrays ... for finding min or max value from array use these functions:
          https://docs.mql4.com/array/arraymaximum

          and special for this: "which pair has moved Most & least today"
          you know, it is not as easy as said, because here in forex is something like average daily range specific for each pair, you can find, that EU pair is moving daily about 80 pips, but GJ pair is moving > 160 pips ... for this, you need talk in % of ADR, or something like this:
          https://www.forexfactory.com/showthread.php?t=650418
          and after that (when you have reference point for each pair), you can objective selected which currency moved most

          Between trading and gambling is a very small gap, be careful.

          FXFun 1 Reply Last reply Reply Quote 0
          • FXFun
            FXFun @miro1360 last edited by

            @miro1360
            Yes, I meant Columns. I made a few extra showing different indicator values.

            I got the idea if we add many more columns, if we can make it a more effective code with an array somehow for the columns as well, like you said - the reason for your tutorial was to create 1000+ less blocks. Is it a good idea and how would one add another dimension array in that case?

            About Max & Min sorting... I find the concept very useful, I get new ideas all the time now, where it could be very useful.

            E.g. I have 3-5 MAs on the chart or even more - or some other indicators of course. I would like to know which one is the highest (MAX PRICE) and the lowest (MIN). I could then calculate the distance between them and save that result in a Variable, to know some range.

            I tried the code from [https://docs.mql4.com/math/mathmax](link url) but could not get it to compile correctly. Lost of errors. And how would I store the Max / min value in variables?

            I could of course create a massive amount of formula blocks and calculate all combinations, but with many indicators, this method too would get into the 1000nds of blocks.

            I thought if this could be done as smart, as you have been using arrays, to reduce blocks used, to use MathMax & Min to store the value simply and immediately to a variable, as simple as that, since MQL has the function already built in. Knowing this could be very useful for many applications.

            Does FXDreema not have the Math Functions built in? It should. Even VTS/iExpertAdvisor has that (but in the end, it's a useless software, where even basic functions don't work, like limiting the number of trades etc, that's why I had to dump it & fortunately found FXDreema).

            MQL Math would however be very useful in FXDreema, especially for us who don't code much raw MQL code.

            Do you have any idea how we could sort out the Max & min values, even if it is not in an array, but I suppose it could be?

            I really loved your tutorial. It's useful. I'm going to check out more.

            Interestingly, I made the same conclusion earlier about drawing the average ATR line some time ago.

            I have also been thinking how to solve the problem of self adaptation, so your link was very spot on for that too.

            It seems like we are very synchronized. 🌞

            Big thanks to you my friend!

            Life is FUN - when you have control over it. Take control over FX & Have FUN all the Time! :-)

            1 Reply Last reply Reply Quote 0
            • M
              miro1360 last edited by miro1360

              I just did for you this one example (sorting pairs and its coresponding RSI values, from max to min), where is array sorting working (it should work, I have not tested it because market is closed while posting this, but you can test it when it starts again πŸ˜„ 😞
              https://fxdreema.com/shared/sfv0yDtF

              0_1493420707796_upload-0a8738a5-e368-4102-bfd9-f2f78d6c710b

              note, that here needs be done some temp values which are holding temporaly other values for further use, and some functions to handle with these values and arrays:
              0_1493420806593_upload-98278082-b45e-46c0-a7b0-3a272f8f671d

              see, now it is even more custom code ... but question was if something like this is possible did in fxdreema and it is possible, but need some basics of mql programing ...

              Between trading and gambling is a very small gap, be careful.

              Z N 2 Replies Last reply Reply Quote 0
              • L
                lguarda last edited by

                Hi, this doesnΒ΄t work for MT5. Gets array error. Could you tell me which lines I have to chage it? It seems that MT5 codes are different from MT4.

                1 Reply Last reply Reply Quote 0
                • M
                  miro1360 last edited by

                  not a lot of changes, and not even problem with array ... πŸ™‚
                  https://fxdreema.com/shared/ZA1quekHb

                  Between trading and gambling is a very small gap, be careful.

                  1 Reply Last reply Reply Quote 0
                  • L
                    lguarda last edited by

                    Funny thing. When I did on web builder it worked, but not on desktop version. Thanks anyways!!!

                    1 Reply Last reply Reply Quote 0
                    • M
                      miro1360 last edited by

                      desktop is not supporting arrays ...

                      Between trading and gambling is a very small gap, be careful.

                      1 Reply Last reply Reply Quote 0
                      • L
                        lguarda last edited by

                        Got stuck again 😒 . I did almost everything, and some I had to change on mql5 editor, but the basics are ok. What I would like to do and can´t figured out how is to set a button on objchart to open a new chart with symbol and timeframe that I click on. Here is the full project shared/NNA81CLec

                        1 Reply Last reply Reply Quote 0
                        • M
                          miro1360 last edited by miro1360

                          hope this example helps you:
                          https://fxdreema.com/shared/HeInsuWfe
                          or import this into your projects to see all variables: 0_1500932938973_testMT5_01.mq5

                          it have few custom code blocks but result can be satisfied for you πŸ™‚

                          0_1500933023356_upload-ca338a0d-e855-4933-8876-bb5861cb93b7

                          if you are using a lot of timeframes, it can be even simplified (I mean blocks count reduced) with next loop in loop ...

                          0_1500933179900_upload-13c4829e-8307-4a85-9d51-d024052da9ee

                          0_1500933197234_upload-7f91db8d-263e-49c6-8af7-5fbf8a970463

                          Between trading and gambling is a very small gap, be careful.

                          H Z 2 Replies Last reply Reply Quote 0
                          • M
                            miro1360 last edited by

                            and here is version with reduced blocks and next loop, it is bit complicated but working as well πŸ˜„

                            https://fxdreema.com/shared/WQsSTrfte

                            0_1500934347509_upload-b4b90bfe-8966-48de-949b-c9ef1c26e4b8

                            Between trading and gambling is a very small gap, be careful.

                            1 Reply Last reply Reply Quote 0
                            • L
                              lguarda last edited by

                              Thanks miro, youΒ΄re amazing. I got it all working... There is only one more thing that would be perfect to do. Instead of manually adding pairs, is it possible that if I write the name of the pair ont the chart box that is created it auto reads it?

                              1 Reply Last reply Reply Quote 0
                              • M
                                miro1360 last edited by

                                I think this can be also possible, now try this yourself, practice give you skills and post here what you found :simple_smile: ... the harder you try, the better skills you get ... when you fail, I look into that problem πŸ˜„

                                Between trading and gambling is a very small gap, be careful.

                                1 Reply Last reply Reply Quote 1
                                • H
                                  Hadees @miro1360 last edited by

                                  @miro1360 .Hi - Do you have an example of a button in an array for mq4 please ?.

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    miro1360 last edited by

                                    what exactly do you need?

                                    Between trading and gambling is a very small gap, be careful.

                                    1 Reply Last reply Reply Quote 0
                                    • H
                                      Hadees last edited by

                                      I'm not sure if it is the way to go . i am trying to incorporate Close all Trades and a Take profit button that allows user to input a TP for all trades.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        miro1360 last edited by

                                        I think, you do not need arrays for that ...

                                        https://fxdreema.com/shared/UkGDvOKud

                                        Between trading and gambling is a very small gap, be careful.

                                        H 2 Replies Last reply Reply Quote 0
                                        • H
                                          Hadees @miro1360 last edited by

                                          @miro1360 Thank you.

                                          1 Reply Last reply Reply Quote 0
                                          • H
                                            Hadees last edited by Hadees

                                            [solved]

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

                                            Online Users

                                            M
                                            M

                                            18
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors