Announcement

Collapse
No announcement yet.

Aroon Study that uses Simple MA

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

  • Aroon Study that uses Simple MA

    Hello,

    What I am looking for is an Aroon Study that uses a Simple MA as the input

    Just like a Study on Study

    Thanks
    EK

  • #2
    EK
    The attached study computes the AroonDown using a simple MA of the Low as the input.
    The length of the MA can be modified through Edit Studies (default is 3)
    This is the first of two files required to calculate the Aroon Indicator or Aroon Oscillator.
    Alex
    Attached Files

    Comment


    • #3
      EK
      The attached study computes the AroonUp using a simple MA of the High as the input.
      The length of the MA can be modified through Edit Studies (default is 3)
      This is the second of two files required to calculate the Aroon Indicator or Aroon Oscillator.
      Alex
      Attached Files

      Comment


      • #4
        Wow Thanks

        Hello Alexis,

        Thanks for that efs

        EK

        Comment


        • #5
          EK
          The two enclosed scripts calculate the Aroon Indicator and Aroon Oscillator using the efs(s) posted in the prior messages.
          Copy and save the contents of each script in the same folder that contains those efs(s)
          Alex

          This is the Aroon Indicator

          PHP Code:
          function preMain() {

              
          setCursorLabelName("ArnUp",0);
              
          setCursorLabelName("ArnDn",1);
              
          setDefaultBarFgColor(Color.green,0);
              
          setDefaultBarFgColor(Color.red,1);
          }

          function 
          main(MALength,nInputPeriod) {

              if (
          MALength == null){
                  
          MALength 3;
              }
              if(
          nInputPeriod == null){
                  
          nInputPeriod 14;
              }
              
              
              var 
          ArnUp call("AroonUPMA.efs",MALength,nInputPeriod);
              var 
          ArnDn call("AroonDownMA.efs",MALength,nInputPeriod);
              
              return new Array(
          ArnUp,ArnDn);

          This is the Aroon Oscillator

          PHP Code:
          function preMain() {

              
          setCursorLabelName("ArnOsc",0);
              
          setDefaultBarFgColor(Color.red,0);
              
          }

          function 
          main(MALength,nInputLength){

              if (
          MALength == null){
                  
          MALength 3;
              }
              if (
          nInputLength == null){
                  
          nInputLength 14;
              }
              
              var 
          ArnUP call("AroonUPMA.efs",MALength,nInputLength);
              var 
          ArnDn call("AroonDownMA.efs",MALength,nInputLength);
              
              return (
          ArnUP-ArnDn);

          Comment

          Working...
          X