Announcement

Collapse
No announcement yet.

Range Expressed as a Percentage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Range Expressed as a Percentage

    Hello,

    I wonder if someone can help express a range between high and low as a percentage. In the attached image the BR provides the range as a single number. In the example shown in the image the BR is 0.22, but the percentage range between the high and low would be 0.4%.

    As always, I appreciate your help.

    Cheers

    Carlton
    Attached Files

  • #2
    Carlton
    I believe the percentage would be expressed by (range/price)*100
    Alex

    Comment


    • #3
      Alex,

      Thanks, you're correct - I should have realised that myself.

      Cheers

      Carlton

      Comment


      • #4
        Alex,

        Would it be possible to have the calculation you mentioned below - range/price*100 - shown on the chart?

        Thanks

        Carlton

        Comment


        • #5
          Alex,

          Would it also be possible to have the calculation somehow shown in the 20ma. I have attached the efs and a image.

          Appreciate your help.

          Cheers

          Carlton
          Attached Files

          Comment


          • #6
            Carlton
            Just create a simple non price study efs that contains the following line in main
            var PctRng = ((high()-low())/close())*100;
            and use PctRng for the return
            Alternatively you can add it to the efs you posted (and include PctRng as the last item in the return). In this case you may also have to add a few statements in preMain to define the additional plot.
            Alex




            Comment


            • #7
              Hello,

              I have added an image to further illustrate what I'm trying to achieve.

              As you will see from the image the cross-hairs are located where the 20sma(blue) = 7.9, 20ma(yellow) = 0.33 and the BR=0.35. I would like to somehow have the the 20ma(yellow) expressed as a percentage. Therefore the calculation would be (0.33/7.9)*100.

              Also, the BR expressed as a percentage, therefore it would be (0.35/8.15)*100.

              I hope that helps.

              Thanks again.

              Carlton
              Attached Files

              Comment


              • #8
                Alex,

                I'll give it a go.

                Cheers

                Carlton

                Comment


                • #9
                  Alex,

                  I attempted to create an efs, as mentioned, however I'm not getting any output. I'll try and add it to the efs and see how I get on.

                  Cheers

                  C.

                  Comment


                  • #10
                    Alex,

                    I couldn't get it to work.

                    Carlton

                    Comment


                    • #11
                      Carlton
                      It was not meant to provide a return but only to write the current percent value to the right of the last bar.
                      Anyhow I have since edited the message which now has the instructions for creating an efs or modifying the one you posted
                      Alex

                      Comment


                      • #12
                        Alex,

                        Excellent mate. Thats exactly what I was after.

                        Thanks ever-so-much.

                        Cheers

                        Carlton

                        Comment

                        Working...
                        X