fxDreema

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

    how can do multi timeframe?

    Questions & Answers
    2
    12
    4377
    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
      camaropeti last edited by

      I made a very simple thing for you to understand my problem.
      I want a multitimeframe expert, but I need a little helping.
      The "on chart" section I made 2 condition. The first see the ADX indicator on M15, and the second is on M5 chart, and if the two block is true write to the chart left up corner a message. This OK, no problem. But how can I do that to be "on tick" section the first block is checking that the "on chart" two blocks are true.
      Please make me pictures, that how available doing this.
      fxd.jpgfxd2.jpg

      ......
      fxd.jpg
      fxd2.jpg

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

        Do you understand "on Chart" event? This event is fired when there is some chart event, and there are many different chart events - you clicked on the chart, you created or deleted new object, you drag an object or just moving your mouse. Any of these events must be filtered - the first thing to do under "on Chart" is to detect the event type, then do something else.

        Now what you have is something that will most probably put the CPU at 100% when you move the mouse over the chart.

        Otherwise I don't think that it's a good idea to run blocks in one event from another event, but there is a block named "Run blocks"... if it appears to you 🙂

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

          Yes, you are right. It's slowing down my metatrader so much. I not see my CPU usage, but sure it worked hardly.

          But how can I solve the multi timeframe problem?
          Maybe Is this a good logic, as you can see in the picture?
          And another problem, how can I do that recognise that what chart on? This is not work well, I think because there is no start trade. It write on every alert that for example: Sell EURUSD when it's on Gold. I solve this like at the second picture. And when I pull the EA onto the chart I write manually in the inputs.
          fxd.jpgfxd2.jpg

          ......
          fxd.jpg
          fxd2.jpg

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

            I don't know what you are trying to do exactly, but here are some things:

            • you can get information from another timeframe in the same EA. For example you can get indicators data or candles data.
            • the Tester in MT4 is limited to Daily, so if you try to get something from Weekly or Monthly, it will not work
            • if you are trying to get information from certain timeframe, make sure that candles exists in this time period
            • if you don't set specific timeframe (in fxDreema), then the current one is used
            • There is a block [Set "Current Timeframe" for next blocks] in case you want to repeat a group of blocks few times, each time with different timeframe
            • Pass is not needed when the next block is already connected to another one

            The (in loop) category is something else, not what you are thinking. To get the current market name, go to "Market Properties -> Symbol (market name"... maybe I should rename that, but anyway. Also, with a pure MQL4 function, the market name can be get with Symbol()

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

              Thanks your answer. It was usefull.
              I think this will solve my problem:
              __- There is a block [Set "Current Timeframe" for next blocks] in case you want to repeat a group of blocks few times, each time with different timeframe[/quote:17k49byt]

              I say an example what I want exactly:
              for example there is the stochastatic oscillator and I make an EA what see only that. The Stoch... is on M15 timeframe going down, M5 timeframe is going down, but M1 timeframe going up.
              In this case If EA see only the 1 minute timeframe (The actual what setting on metatrader), it want buy, but the good strategy is waiting while the M1 timefrmae going down again, and sell.
              I want that see M1, M5, M15 timeframes all together, and start trading when the indicator is same direction on every timeframe.
              And how can I say in the condition, that indicator is going down continous? The current value is lower than the previous candle (shift 1)?
              Or cross below, and I set cross width to 10. Is it mean show the crosses from below anywhere before 10 candle? But the problem is, this not showing if the Stochastatic going up again, only that crossed somewhere in 10 candle period.

              What do you think? Is this will be good for multitimeframe?
              forum.jpg
              __- you can get information from another timeframe in the same EA. For example you can get indicators data or candles data.[/quote:17k49byt]
              Or maybe this is what I need? What is this exactly? How can get datas from another timeframe?

              ......
              forum.jpg

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

                You don't need the block I mentioned, only few "Condition" blocks, or maybe some blocks from "Indicators" category... it depends. Forget about the "AND" block, just connect few blocks one after another.

                Yes, the indicator is obviously going down if the previous point is higher than the current point. You can compare 2 indicator values easily, and for something more check blocks "Indicator fall" and "Indicator rise".

                Maybe you need to check the examples here: https://fxdreema.com/examples

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

                  OK, thank you so much.
                  I saw all example before.
                  And What do you think about the picture? Is will be doingthat what I want?

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

                    I don't like the picture, it looks like something simple transformed into something complex. Again, just connect few blocks one after another. If the one at the top is true, the next one is executed, and if this one is true - the next one... and so on. Specific timeframe can be selected everywhere in blocks. And no, you will not see all indicators on the same chart, you will need to move from one timeframe to another, but they will work anyway.

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

                      So it is impossible making an EA what working like this indicator:
                      http://www.forexfactory.com/attachment.php?attachmentid=1523772&d=1412681427

                      I know, this is an indicator, but it's doing exactly what I want from an EA. Collect datas at same time, from different timeframes and not need changing timeframes manually in metatrader.
                      I want making an EA what works like this indicator, but working automatically. I want set if M1, M5, and M15 timeframes the all trend direction is same, then doing a trade and / or make me an alert.

                      I understand what you say me. The block connecting one after another, and no need making an "AND" connection. Like this, and it's logically same what I do in the previous picture. but as you said, this connection not will working.
                      forum.jpg
                      And I can set timeframe in the more options section in each block, and not need the "set timeframe for next blocks", like this:
                      forum2.jpg
                      I understand What you say me, but then how can I make an EA what works like that indicator? Or it is impossible and the reason is what you said:
                      __you will not see all indicators on the same chart, you will need to move from one timeframe to another[/quote:15qh1r39]

                      ......
                      forum.jpg
                      forum2.jpg

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

                        The last picture counts!

                        An indicator is also a robot, which can do almost the same things as the EA, but can't trade. Indicators exists to make calculations and tell you when to trade, while EAs are supposed to contact with indicators and trade. Why don't you use this indicator? I don't know how optimized it is, but if it works well it probably can be connected with the EA to give you buy and sell signals.

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

                          I tried put that indicator to my custom indicator, but the problem is I owning the original ex4 file and the mq4 is decompiled from the ex4, this not the original mq4, and there are no output buffers, like M1, or anything else, what I can set to parameter in the block, but I attach that, maybe you see and after can help me.
                          INDI STANDAR ALL TF.rar
                          It would be very useful, but I can't set this, and there is no alert option on the original file unfortunately. This is the reason, why I want making my own alternative.
                          How do you mean, that the last picture counts? Is will doing what I want? First see the M15, and after M5, and last the M1, and if everywhere matching, then do a trade? I want exactly that.

                          ......
                          INDI STANDAR ALL TF.rar

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

                            I mean that the last picture shows something that is OK

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

                            Online Users

                            K
                            R
                            N
                            W
                            L
                            E
                            N
                            A
                            H
                            H
                            O
                            R

                            22
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors