PureBytes Links
Trading Reference Links
|
Hi gang,
I am trying to put together a two part macd-like oscillator...one part based
on price, 2nd based on an intraday AD line, but on the same subgraph and
sharing the same 0 line. Idea is to easily see divergences between price and
AD. Below is what I have done to date. The part I don't like is that it
requires a manual adjustment to get the scaling for the two to fit properly
on the same scale, and this # varies over time. The problem has to do with
the AD concept...the # depends on when the chart begins. So making it %
change doesn't help -- the denom of adv decl is not constant. I tried
converting to %K stochastics, but I really don't want it to be bounded.
Anyone have any ideas on how to transform this concept so it could work
automatically, while keeping basic relationships intact?
BTW, if anyone has not ever explored intraday adv decl lines ( or uvol dvol
lines) I highly recommend them.
Thanks,
Chris
Input: adv(c data2),decl(C data3), ma1(5), ma2(20), AdjFactor(200) ;
IF CURRENTBAR>1 THEN VALUE1 = VALUE1+iff(d<>d[1],
adv-decl,(adv-decl)-(adv[1]-decl[1] ))
else value1 = adv-decl;
Plot1(xaverage( VALUE1 , ma1) - xaverage( VALUE1 , ma2),"MAOad");
plot2(AdjFactor*(xaverage( c data1, ma1) - xaverage( c data1,
ma2)),"MAOp");
Plot3(0,"0")
|