fxDreema

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

    Speed candles indicator help

    Questions & Answers
    2
    4
    2201
    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.
    • timmyhanke
      timmyhanke last edited by timmyhanke

      I was trying to make this one work but it dosnt.

      https://fxdreema.com/shared/zpznbJPcc

      I dont know how i am supposed to implement the indicator at all, i used blocks to check the objects value but it only trades either buy all the time or either sell . dosnt close or nothing.

      It's supposed to take buy trades when m1,m5,m15,30,h1 and h4 are above 50% and close and sell when all of them are below -50% .
      Help is needed.

      0_1496346405528_Speed Candles v1.0__1.ex4

      0_1496346432332_speed.jpg

      https://fxdreema.com/shared/zpznbJPcc

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

        I don't think that this would work: http://prntscr.com/feswi3

        On the left side you have a numeric value and you are trying to compare that value with text. "+50%" is basically the same as ""Hello my friend" in this situation. I guess that MQL4 translates this text into 1, but I'm not sure. It's not correct anyway, you should compare numeric data with numeric data.

        If you still want to use that text, you can try to convert it into numeric value. But you need to remove "%" and extract only the first 2 symbols (with StringSubstr()) and convert them into "double" value (with StringToDouble())

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

          @fxDreema

          I tried with numeric value as well but still the same result,

          I have made 13 tries on it now and have to livetest it to see if it works , so its a bit frustrating 🙂

          Tried different conditions for the value approach to , with above , below , above or equal and so on 🙂

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

            this seems to do the trick , but i dont know if it buys and sells when the colour changes or if the colour changes to the value i set .

            i took a version that bought and sold constantly after another and filter it with the colors of the objects .

            https://fxdreema.com/shared/w9oQ6ikRb

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

            Online Users

            J
            T
            J
            B

            17
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors