fxDreema

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

    storing a price level

    Questions & Answers
    4
    11
    3625
    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
      Flip last edited by Flip

      I have been trying the following for hours but without success.

      I want to store the price level of the previous candle (ID:1) body /2. In other words the price level of 50% previous candle body.

      I tried formula block, but it doesn't seem to work yet.
      0_1532423982861_f4dc4716-1da5-4974-a9b2-b2bd92739836-image.png

      Can you please help me out?

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

        You are useing the same variable for two different price levels. You should use different variables.

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

          I don't understand what you mean.

          I have used 2 different variables for previous candle open (candle1OpenM5) and close (candle1CloseM5). Than I used a 3rd variable, which is the difference between (candle1OpenM5) and (candle1CloseM5) divided by 2 and stored in variable (variableprice_M5_short).

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

            I was wrong sorry. I think your structure should work. I don't know why it doesn't, sorry.

            1 Reply Last reply Reply Quote 0
            • J
              Jimmy Chee last edited by

              You should insert a comment block to individual formula block. Read the value. In this way you know where is going wrong.

              F 1 Reply Last reply Reply Quote 0
              • F
                Flip @Jimmy Chee last edited by

                @jimmy-chee

                Thanks I will try to see what happens

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

                  I finally solved the issue. My calculation was not complete I realized. I needed to add another formula block. All good now;)

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

                    Could you please show the final form?

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      Flip @isp00rt last edited by

                      @isp00rt Sure, here it is:

                      0_1532934960995_aea848b7-fc7a-4229-9e73-8ed083d23dd5-image.png

                      1 Reply Last reply Reply Quote 0
                      • J
                        josecortesllobat last edited by

                        Hi @Flip

                        You have this option to reduce some blocks

                        0_1532935791561_29d3c652-a8fe-48ff-aed2-fa63d83042b0-image.png

                        Because blocks #36, #39 seems to look for that.

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          Flip @josecortesllobat last edited by

                          @josecortesllobat Thanks! I was just looking into reducing the blocks. Although I did not get the right results with the candle body size (probably because it is in pips), I was able to reduce the project with one block. I now have this:

                          0_1532937305017_505b32f7-59f3-4a82-8a41-9648ce9d8213-image.png

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

                          Online Users

                          G
                          S
                          M
                          G
                          C
                          F
                          T
                          E

                          17
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors