Announcement

Collapse
No announcement yet.

Driver's Q Oscillator

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

  • Driver's Q Oscillator

    Hi,
    I searched for Driver's Q Oscillator of Jose Silva & David Sepiashvili in the forum with no luck.
    Please, could someone help me with a link ?
    Thanks
    Massimo

  • #2
    In the net I found this code for Tradestation:

    Code:

    Driver's Q Oscillator
    {Plagiarised shamelessly from Jose Silva and David Sepiashvili}

    {Inputs}
    m:=Input("% Scalar trend period",1,25,4);
    n:=Input("% Scalar noise period",1,500,250);
    cf:=Input("% Scalar correction factor",1,250,2);
    p1:=Input("First moving average periods",1,200,7);
    p2:=Input("Second moving average periods",1,200,15);
    p3:=Input("Normalising periods, (1=none)",
    1,2520,252);
    {Q Directional indicator - from Equis}
    rev:=Mov(C,p1,E)-Mov(C,p2,E);
    pds:=If(rev>0,1,-1);
    dc:=ROC(C,1,$);
    cpc:=If(pds<>Ref(pds,-1),0,(dc*pds)+PREV);
    trend:=If(pds<>Ref(pds,-1),0,(cpc*(1/m))+(PREV*(1-(1/m))));
    dt:=cpc-trend;
    noise:=cf*Sqrt(Mov(dt*dt,n,S));
    Q:=trend/noise;
    {Normalising}
    Qnorm:=(Q-Lowest(Q))/Max(Highest(Q)-Lowest(Q),.000001)*100;
    Qnorm

    Alexis, SteveHare, Waynecd or anybody else there is a job for you, if you like and have time of course.
    Many thanks in advance.
    Massimo
    Last edited by maxmax68; 01-30-2011, 05:37 AM.

    Comment

    Working...
    X