PureBytes Links
Trading Reference Links
|
Hi everyone.
Here's my story. I wanted to have a look at exit techniques; and I
found Richard Dale's dll for an ATR-based exit - I love it: but
Richard makes the point that the ATR multiplier varies according to
one's outlook - 2.5 for the short-termers, 3.5 to 4 for us slower
types.
That got me thinking: what if one started out as a long-termer, but
saw a good hard trend developing such that it would be prudent to
take the profits off the table earlier. I had a look at perhaps
using the Aroon oscillator as a factor to the ATR multiplier, but
perhaps it's a little too coarse: that's where I joined the 'Q'.
Plagiarising shamelessly from Jose's site, I saw how he normalised
the MACD and came up with this:
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-LLV(Q,p3)/(HHV(Q,p3)-LLV(Q,p3)+.000001)*100);
Qnorm;
It's hopeless! and I have no idea where I went wrong. All I want is
a bounded Q oscillator. (The B is no good for my purposes as I'm
long only.) Puleeease?
Newton said that he merely stood on the shoulders of giants; so I'm
quite prepared to ask for a hand up.
Many thanks in advance
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|