fxDreema

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

    Obtaining 200 MA of OBV indicator

    Questions & Answers
    3
    3
    692
    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.
    • L
      leventecsibi last edited by

      Hi there,

      What options do I have to use the 200 MA of the OBV (or more generally: of any indicator) in fxDreema? Earlier on, I computed the simple moving average of CCI indicator for relatively low periods using the Modify Variables and Formula blocks but I would really want to avoid doing that for 200. There must be a way to achieve this!

      I was thinking perhaps the Custom MQL code block? Although I am a bit uncertain as to what snippet I need to input there exactly.

      Thanks a lot in advance for your help. 🙂

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

        @leventecsibi here:
        https://fxdreema.com/shared/yZovgxaae

        It calculates the average for close prices, you can change the indicator to your liking, just remember to set the candle id and adjust like I did.

        This is not the best solution, though, because on every new bar, the EA must calculate all 200 values again and again. If you want to get more efficient, learn arrays.

        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

          Duno if that is array, but i am using in my current project a block that would do the math for you, which would come after the blocks roar gave you.
          https://fxdreema.com/shared/3OAyHklYb
          Block 1 is mine, block 2 is four you. Just check that the variables names are the same that you have set.

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

          Online Users

          E
          H
          M
          M
          M

          14
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors