fxDreema

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

    Help with this Forumla

    Questions & Answers
    3
    6
    889
    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.
    • B
      BlueMoon last edited by

      I want to add the Candle Body Size(pips) for not just last 2 candles like in the screenshot but for "n" number of candle and store that value to a variable. How can this be achieved?

      0_1486689600487_upload-7c35b99e-0147-4ef8-ba64-73b9549194dc

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

        try using custom code block ...

        averageBody and allBody are variables
        x are candles "n"

        0_1486699950696_upload-eb575ab6-a0f8-4182-9f29-cc163017987f

        I have not tested it ...

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

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

          Could you use a counter block - pass n times?
          0_1486701799261_cumulative body size.PNG

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

            probably you can use it, try it carefully, you can place on the chart comments to see whats happening 🙂

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

            1 Reply Last reply Reply Quote 0
            • B
              BlueMoon last edited by

              I sure try to test this and will let you guys know how it goes. Thank you very much for your suggestions.

              1 Reply Last reply Reply Quote 0
              • B
                BlueMoon @JRod78 last edited by

                @JRod78

                I tried the Counter Pass n times block but something is not working right for me I am only seeing the result of last candle. and not "n" number of candles. Seems like the loop is not working as expected or for some reason its not adding the body size correctly to the variable.

                One more thing I noticed which could be the reason:
                In your "Candle Index Counter" Formula block...I noticed you have an extra field called "Cross Width" What is that? I don't have it in my Formula black where I am adding to the Candle number.

                Thanks in Advance.

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

                Online Users

                A
                M
                E

                11
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors