Announcement

Collapse
No announcement yet.

Need Help with 20-50day Deviation...

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

  • Need Help with 20-50day Deviation...

    I need help w/ a simple formula from metastock . I want to build an indicator that is:

    (Mov(C,20,E)-Mov(C,50,E)) / (Mov(C,50,E)) * 100

    I also need a horizontal line at the 0 value.


    --Please help
    Last edited by mikexny; 03-11-2003, 11:06 AM.

  • #2
    Mike
    I believe this should do what you asked
    Alex
    PS. It seems to me that if you use the Price Oscillator available under Basic Studies you get the same results
    Attached Files
    Last edited by ACM; 03-11-2003, 11:16 AM.

    Comment


    • #3
      Displaced MA's version

      Hi Alex, I've attached another version of your 20-50 oscillator using Joe Dinapoli's Displaced Moving averages 3X3 and 25x5. Ive been tearing my hair out wondering why it won't work and have tried searching through the archives under Moving average, to find a similar efs. Unfortunately even though Ive just swopped out the E20 and E50 and put in the 3x3 and 25x5 it just wont work/graph. I know Im close but I just can't see it. Can you please help??
      I'm basically trying to plot a histogram showing the difference between the 3x3 and 25x5 moving averages. It sounds easy until you try to displace the MA!!
      Your help would be appreciated.
      Many thanks

      Comment


      • #4
        Sorry Alex here's the efs!!

        Sorry, efs attached this time!
        Attached Files

        Comment


        • #5
          hhoper
          You did not have anything in your return() section which is what is needed to create the plot.
          Anyhow open the efs with the Editor and change it to reflect what appears below and you should get the oscillator to plot.
          Alex

          PHP Code:
          //}}EFSWizard_Expressions 9063
              

          //{{EFSWizard_Return
              
          return vSMA3.getValue(MAStudy.MA)-vSMA25.getValue(MAStudy.MA);
          //}}EFSWizard_Return 6563 

          Comment


          • #6
            Many thanks

            Alex, you're a star!
            Thanks for the quick response. Thats a lesson learned my end about the return values!

            Comment

            Working...
            X