Announcement

Collapse
No announcement yet.

rom indicator

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

  • rom indicator

    can some1 please guide me--How do i plot the closing price divided by 200

  • #2
    cassim2
    Use close(0)/200 in the return statement (see basic example enclosed below)
    Alex

    PHP Code:
    function main(){
        return 
    close(0)/200;

    Originally posted by cassim2
    can some1 please guide me--How do i plot the closing price divided by 200

    Comment


    • #3
      alexis-thank you so much--i am terribly sorry i am not familiar as to where i do what you recommended below-can you guide me-or is there some where on esignal where i can get that help-
      many thanks once again




      Originally posted by Alexis C. Montenegro
      cassim2
      Use close(0)/200 in the return statement (see basic example enclosed below)
      Alex

      PHP Code:
      function main(){
          return 
      close(0)/200;

      Comment


      • #4
        cassim2
        Copy the code contained inside the PHP box in my previous reply then open the Formula Editor (from the main menu select Tools-> EFS-> Editor...) and Paste the copied contents in it.
        Save the script in any one of the subfolders of the Formula folder and give it a name of your choice. Close the Formula Editor window.
        Then open a new Advanced Chart (or select an existing one) and right click it. From the context menu select Formulas, then navigate to the folder in which you saved the file and click its name. That will apply the formula to the chart.
        Alex

        Comment


        • #5
          alexis

          thank you so much for your assistance.i did it--something doesnt look right thou-doesnt look the same as the one on metastock

          can i restate the exact wording and can you check if thats the formula applicable

          ROM = CLOSING PRICE DIVIDED BY THE 200DAY SIMPLE MOVING AVERAGE.


          can u please check the formula for the above

          sincere thanks




          Originally posted by Alexis C. Montenegro
          cassim2
          Copy the code contained inside the PHP box in my previous reply then open the Formula Editor (from the main menu select Tools-> EFS-> Editor...) and Paste the copied contents in it.
          Save the script in any one of the subfolders of the Formula folder and give it a name of your choice. Close the Formula Editor window.
          Then open a new Advanced Chart (or select an existing one) and right click it. From the context menu select Formulas, then navigate to the folder in which you saved the file and click its name. That will apply the formula to the chart.
          Alex

          Comment


          • #6
            1 last thing if i could add--
            normally we'd interpret it as :
            a ROM closest to 1.5 ---sell zone area
            a ROM closest to 0.85---buy zone area

            the formula i have used from the outset doesnt come up with these figures


            Originally posted by cassim2
            alexis

            thank you so much for your assistance.i did it--something doesnt look right thou-doesnt look the same as the one on metastock

            can i restate the exact wording and can you check if thats the formula applicable

            ROM = CLOSING PRICE DIVIDED BY THE 200DAY SIMPLE MOVING AVERAGE.


            can u please check the formula for the above

            sincere thanks

            Comment


            • #7
              cassim2

              something doesnt look right thou-doesnt look the same as the one on metastock
              That is because the formula I provided just divides the Close by 200 as you requested in your first post in this thread.
              Anyhow following is the revision of the script that will divide the Close by its 200 period moving average.
              PHP Code:
              var Avg null;
               
              function 
              main(){
               
                  if(
              Avg==nullAvg sma(200);
               
                  if(
              Avg.getValue(0)==null) return;
               
                  return (
              close(0)/Avg.getValue(0));

              At this point you may find it to your benefit to learn how to program in efs as that will considerably increase your ability to make full use of eSignal. If you are interested then you may want to start by reviewing the JavaScript for EFS video series. That will provide you with a thorough introduction to programming in JavaScript which is at the foundation of EFS. Then go through the EFS KnowledgeBase and study the Help Guides and Tutorials which will provide you with the specifics of EFS.
              Alex

              Comment

              Working...
              X