fxDreema

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

    Work with more horizontal lines

    Questions & Answers
    3
    5
    1056
    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.
    • F
      ForX92 last edited by

      Hi fxDreema,

      I need to work with more and more horizontal lines, i need to open a position when a candle closes with:
      Candle low "=>" (or ">=") Red or Lightblue horizontal line.

      http://imgur.com/a/HFKUj

      i tried to use the name, but the lines name are red1, red2, red3, [...] red45 etc...

      now, how i can do? I tried with Condition:
      Candle 1 Low <= Object Attributes (numeric) Object name Red but it doesn't work... 😞

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

        What the hell is that, why so many lines? Something tells that whatever you are doing can be made is much simpler way

        1 Reply Last reply Reply Quote 0
        • M
          miro1360 last edited by

          if you will it make so complicated, think about counters and increment variables, but that is not easiest if you have not doing it before ...

          Between trading and gambling is a very small gap, be careful.

          1 Reply Last reply Reply Quote 0
          • F
            ForX92 last edited by

            I create this because otherwise i need over 90 variables and "Once a day" reset all... Is a true long work, how i can do?

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

              I don't mean using variables instead of horisontal lines, but doing something that does not require so much values to be saved.

              Anyway, if you draw any object with "Draw..." blocks, be careful with the first 2 parameters in each of these blocks. They control how many object can be created by the same block and their names also. Take a look at the names behind the objects on the chart - are they as you expect? If yes, then you can read those objects.

              If you have names like red1, red2 and so on, and you want to read the latest object, this is the way: https://fxdreema.com/demo/mt4-object-in-loop
              But note that objects are sorted by their name, not by date. And I know that the sorting can be wrong sometimes. It would be like this - red1, red10, red2, red3....
              Once I was trying to fix this behaviour, but I think that I failed.

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

              Online Users

              Y
              S
              F
              E
              O
              S
              W
              A
              J
              M

              27
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors