Announcement

Collapse
No announcement yet.

getRenkoBrickSize() ??

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

  • getRenkoBrickSize() ??

    Is there any function in EFS to get the brick size on a Renko Chart?

    I searched the EFS knowledge base but couldn't find anything.

    Thanks,

    Steve

  • #2
    Steve
    There isn't but you can very easily create your own by calculating the range
    Alex

    Comment


    • #3
      What do you mean by brick size?

      Comment


      • #4
        kevinmclark
        Box Size. In Renko charts the bars are commonly referred to as "bricks"
        Alex

        Comment


        • #5
          I just don't understand the question, because the constant brick size is fixed by the user (the default setting is 2, but bricks can be adjusted by right clicking on the renko chart and selecting Edit Studies).

          Comment


          • #6
            kevinmclark
            Steve asked if there is an efs function that returns the Box Size setting [like for example getInterval() returns the chart interval which is equally a user defined setting]
            Alex

            Comment


            • #7
              Alex,

              I was looking for an efs you posted several years ago where you were using the time and sales function i believe to build the anticipatory Renko Bricks.

              Would it be possible to please provide the link as perhaps Steve can gain some insight into an alternative to a function as you were able to determine the box size external to the charts input parameters.

              Thanks...
              Glen Demarco
              [email protected]

              Comment


              • #8
                Is this it?

                Comment


                • #9
                  Glen
                  The script you are referring to does not automatically detect the box size but relies instead on a user defined parameter.
                  If you want to automatically detect the box size in a Renko chart you can create a separate function that simply returns high(0)-low(0) and that is then called from the main function as shown in the enclosed example
                  Alex

                  PHP Code:
                  function main(){

                      if(
                  getCurrentBarCount()==1){
                          
                  debugPrintln(RenkoBoxSize());
                      }
                      
                      return ;
                  }

                  function 
                  RenkoBoxSize(){
                      return 
                  high(0)-low(0);

                  Comment


                  • #10
                    Originally posted by kevinmclark
                    Is this it?

                    http://forum.esignalcentral.com/show...4303#post14303
                    Kevin,

                    That's the one. Good looking out, thanks very much.
                    Glen Demarco
                    [email protected]

                    Comment


                    • #11
                      Originally posted by Alexis C. Montenegro
                      Glen
                      The script you are referring to does not automatically detect the box size but relies instead on a user defined parameter.
                      If you want to automatically detect the box size in a Renko chart you can create a separate function that simply returns high(0)-low(0) and that is then called from the main function as shown in the enclosed example
                      Alex

                      PHP Code:
                      function main(){

                          if(
                      getCurrentBarCount()==1){
                              
                      debugPrintln(RenkoBoxSize());
                          }
                          
                          return ;
                      }

                      function 
                      RenkoBoxSize(){
                          return 
                      high(0)-low(0);

                      Alex,

                      Looks like we have our function.

                      I thought of that when I read the post but being familiar with Steve Meyer's programming ability thought he needed the value before a bar was painted, I guess waiting for one should work.

                      This function would fit well with your Renkobox efs.

                      Thanks very much.

                      Glen
                      Glen Demarco
                      [email protected]

                      Comment


                      • #12
                        Glen
                        You are most welcome
                        Alex

                        Comment

                        Working...
                        X