Announcement

Collapse
No announcement yet.

Woodie Pivot Points

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Woodie Pivot Points

    I posted info here http://forum.esignalcentral.com/show...threadid=10395
    on using the Woodie Pivot Points

    woodie

  • #2
    Please change coding

    Hi woodie you could change the coding please for the European users?

    //GLOBAL VARIABLES
    var trendHighP=new Array(0);
    var trendLowP =new Array(0);
    var trendOpenP=new Array(0);
    var DayNum=0;
    var inTime=false;

    //PARAMETERS
    //please delete globale variables with the same name
    sTime
    eTime

    //PIVOT START

    checktime = getHour()*100+getMinute()*1;

    if(getDay(-1) != getDay())
    inTime=false;

    if(checktime>=sTime && checktime <= eTime){
    if(!inTime){
    inTime=true;
    DayNum++;
    trendOpenP[DayNum]=open();
    trendHighP[DayNum]=high();
    trendLowP[DayNum]=low();
    if(DayNum>1) {
    PP=(trendHighP[DayNum-1]+trendLowP [DayNum-1]+2*trendOpenP[DayNum])/4
    R1=PP*2-trendLowP [DayNum-1]*1;
    S1=PP*2-trendHighP[DayNum-1]*1;
    R2=PP+R1-S1;
    S2=PP-R1+S1;
    R3=PP+R2-S2;
    S3=PP-R2+S2;
    debugPrintln("Daym="+(DayNum-0)
    +" Hy="+(trendHighP[DayNum-1]*1).toFixed(decPts)
    +" Ly="+(trendLowP [DayNum-1]*1).toFixed(decPts)
    +" Ot="+(trendOpenP[DayNum+0]*1).toFixed(decPts)
    +" PP="+PP.toFixed(decPts)
    +" R1="+R1.toFixed(decPts)
    +" S1="+S1.toFixed(decPts)
    +" R2="+R2.toFixed(decPts)
    +" S2="+S2.toFixed(decPts)
    +" R3="+R3.toFixed(decPts)
    +" S3="+S3.toFixed(decPts)
    )
    }
    }
    else{
    if(high()>trendHighP[DayNum])
    trendHighP[DayNum]=high();
    if(low()<trendLowP[DayNum])
    trendLowP[DayNum]=low();
    }
    }
    else
    inTime=false;

    //PIVOT END
    Last edited by geme; 10-17-2004, 04:38 AM.

    Comment


    • #3
      pivots

      GEME...i would but i have no clue on what to do for efs code changes..i'm lucky i have others who do a super job and make me look good so sorry..ask in chat room many there that can help you

      woodie

      Comment

      Working...
      X