Announcement

Collapse
No announcement yet.

Oscillator Question??

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

  • Oscillator Question??

    How do I incorporate the following oscillator into esignal:



    Many thanks,
    Dylan
    Last edited by dylan; 03-12-2003, 06:39 PM.

  • #2
    see if this gives the right answer - you might want a simple ma, easy to edit.

    var vEMA13 = new MAStudy(13, 0, "Close", MAStudy.EXPONENTIAL);
    var vEMA13_of_Open = new MAStudy(13, 0, "Open", MAStudy.EXPONENTIAL);
    var vEMA13_of_High = new MAStudy(13, 0, "High", MAStudy.EXPONENTIAL);
    var vEMA13_of_Low = new MAStudy(13, 0, "Low", MAStudy.EXPONENTIAL);

    function preMain() {
    setPriceStudy(false);
    setStudyTitle("RainyDayWomen");
    }

    function main() {
    vOpen=vEMA13_of_Open.getValue(MAStudy.MA)
    vClose=vEMA13.getValue(MAStudy.MA)
    vHigh=vEMA13_of_High.getValue(MAStudy.MA)
    vLow=vEMA13_of_Low.getValue(MAStudy.MA)

    //debugPrintln(vEMA13);
    dylan=(-vOpen + vClose + vHigh - vLow)/(2*( vHigh - vLow));
    debugPrintln(dylan);
    return (dylan*100);
    }

    Comment


    • #3
      Re: Reply to post 'Oscillator Question??'

      yeah, a simple moving average please.


      --- [email protected] wrote:
      > Hello dylan,
      >
      > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      >
      Last edited by dylan; 03-12-2003, 05:22 PM.

      Comment


      • #4
        just change EXPONENTIAL to SIMPLE

        Comment


        • #5
          Re: Reply to post 'Oscillator Question??'

          fantastic - what steps do i follow to place it into
          esignal?


          --- [email protected] wrote:
          > Hello dylan,
          >
          > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          >

          Comment


          • #6
            I am probably leaving out a step, but here goes....

            Click on the link for RainyDayWomen below

            Save it to c:\ProgramFiles\Esignal\Formulas

            Open an AdvancedChart

            Right Click, Formulas, then look for and highlight RainyDayWomen

            should place study in the lower pane below the chart.
            Attached Files

            Comment

            Working...
            X