fxDreema

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

    horizontal line - store price in a variable

    Questions & Answers
    2
    6
    830
    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
      PipTheRipper last edited by

      Im trying to create a horizontal line that can be moved around on the chart. I want to store the price of the line into a variable that gets updated as the line gets moved around manually on the chart. I have made the line, but cant seem to get the right output value for the variable. Can anyone see what I do wrong? Here is a link to the project https://fxdreema.com/shared/5LunwNMgd

      1_1634466200638_line price.png 0_1634466200633_line fx.png

      TipsyWisdom 1 Reply Last reply Reply Quote 0
      • TipsyWisdom
        TipsyWisdom @PipTheRipper last edited by

        @piptheripper

        above your variable mod, first you have to reference that name "line" because for each new "line" that is drawn it is given a number with the way you have it configured.

        So above the variable mod, theres an orange loop for objects section. Id use select by name, and use the name contains block there instead, or select object by type? by color? the way you're using it is about the only wrong way to reference the way that line is drawn. 😄

        P 1 Reply Last reply Reply Quote 0
        • P
          PipTheRipper @TipsyWisdom last edited by

          @tipsywisdom thanks for your answer. I am not sure I understand however. Does this look right? I am not getting any results stored in the variable.. 0_1634485950401_baseline.png

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

            I also tried like this, but im still not having any success.. 0_1634486287159_each object.png

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

              I got it now. Here are the settings in case anyone else needs it. Thanks!0_1634486565401_line working.png

              1 Reply Last reply Reply Quote 1
              • TipsyWisdom
                TipsyWisdom last edited by

                perfect!! nice work. Sorry i called it select object by name, but the most important was "name contains"

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

                Online Users

                A
                J
                D
                E

                24
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors