Announcement

Collapse
No announcement yet.

Highest range of last 5 days

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

  • Highest range of last 5 days

    Could someone steer me in the right direction as to how to plot the highest range of the past n days in any current time frame chart. Thanks for any suggestions!

    Steve

  • #2
    Steve
    To do that you would need to first create a separate function within your script to calculate the range eg
    PHP Code:
    function myRange(){
        return 
    high(0)-low(0);

    The in the main function of your script you would call that function using efsInternal() and since that returns a series you can use it as the source for the highest() function [or alternatively the hhv() or upperDonchian() functions] eg
    PHP Code:
    //…
    myHighestRange highest(nefsInternal(“myRange”))
    //… 
    For the complete syntax and examples for these functions see the links to the relative articles in the EFS KnowledgeBase
    Alex


    Originally posted by opstock
    Could someone steer me in the right direction as to how to plot the highest range of the past n days in any current time frame chart. Thanks for any suggestions!

    Steve

    Comment


    • #3
      Great, thanks for the info Alex.


      Steve

      Comment


      • #4
        Steve
        You are welcome
        Alex


        Originally posted by opstock
        Great, thanks for the info Alex.


        Steve

        Comment

        Working...
        X