fxDreema

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

    close above or below MA

    Questions & Answers
    2
    3
    327
    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.
    • P
      purelife173 last edited by purelife173

      hello im using a moving average, not the one in the example, in which i compare the last close to the last value of the moving average. i find it weird that the value starts at 0 even when the last close is above or below. i wasnt sure so i put a comment. i also noticed that it would give a -1 when the last close was above the ma even when the comment said that close was in fact higher than the ma.
      0_1599167775449_baseline.png

      https://fxdreema.com/shared/ykcBYxIae

      why would the value start at 0 and why would this be occurring would this have to do with rounding? a jpy pair?
      EAs dont check the bar before starting?

      1 Reply Last reply Reply Quote 0
      • P
        purelife173 last edited by

        https://fxdreema.com/shared/ykcBYxIae

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

          @purelife173 your shared project doesnt match to the picture. If you made changes in the shared, they dont update for other users - you must go back to the builder and create new shared link

          I tested the shared one, and there is nothing wrong: MA is above candle close, and the variable gets -1
          0_1599212700020_ff1cdeca-0382-4e3e-8080-bc6a0c185a77-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
          • 1 / 1
          • First post
            Last post

          Online Users

          T
          M
          E
          D
          E
          K
          T
          E
          K
          A
          K

          26
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors