fxDreema

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

    Question/Problem with trend-lines and different time-frames. Help appreciated

    Questions & Answers
    2
    3
    470
    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.
    • R
      RN81 last edited by

      Can someone help me figure out the following:

      When i draw a trend-line with weekly candle info (weekly chart) and my actual working chart is a smaller time-frame (H4),I encountered a problem that i'm struggling to solve.
      If you use the condition block with "candle" on one site and "object one chart" on the other side, the "object one chart" is automatically the time-frame of the chart your currently working one while you can choose the time-frame of the "candle".
      So there is no easy way to get the information I want from my trend-line in combination with a weekly candle and the H4 chart opened.

      I tried to loop backwards to match the H4 candle to the weekly candle, first the easy way: 30 H4 candles in one week. But that doesn't compensate for weeks where there are less trading days/hours.
      I then tried placing lines at the weekly candle and loop back to find the candle id on the H4 chart.. This ended in blowing up my EA...

      So my question is, can someone point me in the right direction how to get the candle ID of the weekly chart converted to another time-frame?
      Or, how can i adjust the candle ID from my "Object on chart" to the time-frame of the candle info?

      I've searched the forum for a solution and found out that @roar had some post with somewhat the same problems. Don't know if you have a solution yet, but from what i read, i think where fishing in the same pond.

      Thanks for reading everyone, all input welcome.

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

        @rnonnekes81 Do you draw the weekly trendline manually or does your EA handle it?
        iBarShift converts datetime information into candle ID for any TF, maybe it is a part of a solution here..
        https://docs.mql4.com/series/ibarshift

        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
        • R
          RN81 last edited by

          Everything is done by the EA.
          Thanks for the indicator, never crossed my mind to search in that direction.
          Will be looking in to that this week.

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

          Online Users

          M
          A
          E

          17
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors