here is another divergence indicator I use. I add it to the same window as the previous divergence indicator, when the two give the same signal, then this is added confirmation...
just change this line of code...
trendMom = RSI(period);
to this...
trendMom = CCI(20)...
My apologies to all who are having problems getting the divergence indicator to work....here is a direct link to Amibrokers web page and you can down load it in its entirety from there...
-Dennis
http://www.amibroker.com/library/detail.php?id=586
Is there a code out there for Amibroker?
I have a similar one but it does not produce the signals explained here...I'll post it and I hope someone can correct it please.
Thank you
Dennis
//SETUP INITIAL VALUES
PIndex = 0; Starttime = 063000;
Daystart = Cross (TimeNum()...
NOTE: THIS IS THE FOURTH OF FOUR...COMBINE THIS CODE WITH THE PREVIOUS THREE...
if (Diag_Trace==1)
{
_TRACE("Bull Reversal #0 - Backtest " + WriteVal(Backtest,1.0));
_TRACE("Bull Reversal #1 - DivCode: " + WriteVal(LDiv_Code,1.0) + " LB DivCode " +...
NOTE: THIS IS THIRD OF THE FOUR...COMBINE WITH HE NEXT THREAD...
//Distances computed relative to selected bar
i=0;
_TRACE("Bull Reversal 00 - start of loop ------ ");
do
{
i++;
LastBar_PriorGroup = Sel_BarIndex-ValueWhen(Cross(Osc_Issue,Middle),BarIndex(),i)...
NOTE: THIS IS SECOND OF FOUR...COMBINE WITH THE NEXT TWO THREADs...
//Put Divergence codes into Array
//Compute results for display
Sel_LastLow = IIf(TradeON==1,LastValue(LastLow),SelectedValue(LastLow));
Sel_CurrTrough =...
NOTE: THIS IS FIRST OF FOUR...COMBINE WITH THE NEXT THREE THREADS....
// DIVERGENCE INDICATOR
/*
FileName: Mod - Osc-Price Divergence31
October 25, 2005
Version 1.0
====================================
Use with MACD or Stochastics
program detects and plots trendlines on...
//Middle Price Panel
// Keltner Channels are constructed similar to Bollinger Bands
// around a moving average +/- volatility.
// The difference is in the measurement of volatility.
// Bollinger uses standard deviation. MA(Close,20) +/- #STDs
// Keltner uses ATR (Average True Range)...
Well Im done tradiing for the morning....I gotta take my son to preschool...
Today's mistake: I took 2 trades with the adx not above 30
Result: I got stopped out on both
The only win I had out of the 3 trades was when all the ducks were lined up (i.e. the adx was above 30)...