I once mentioned on this board that I would like to have a rangebound CCI . I
am not sure who it was that responded, but I think is was Market Monk777.
Market Monk is apparently a mathmatician, and he sent me this one below for CCI.
I like it MUCH BETTER than regular CCI.
I viewed charts comparing Regular CCI to this Rangebound CCI, and I was amazed
that the PLOT LINES produced by the Rangebound CCI are very
unlikely to be so close together that you cannot tell one timeframe from
another. Their separation was more easily visually detectible than it was with
the regular CCI
I should add that my custom indicators involve a lot of timeframes that are
looking for a consensus of the action for the last 200 or so days.
I substituted many different AFLs in this RANGE_LIMITING math equation for CCI,
but I found that CCI worked the best for my purposes.
BTW, this one ranges from zero to 50. Ron D
periods=Param("Periods",14,2,200,1);
scaleCCI=StDev(CCI(periods),3* periods); //scale CCI swing
rbCCI=0.5*(1+tanh(CCI(periods)/scaleCCI));
rbCCI=50*rbCCI; //CCIboundto[0,100]
rbi=rbCCI;
==================================================================
----- Original Message -----
From: dmcleod1981
To: [email protected]
Sent: Monday, November 05, 2007 9:50 PM
Subject: [amibroker] Constructing a Range Bound Indicator
I have an indicator that is built using add to composite that normally
plots between 0 and 1. However, occasionally it will go negative or
over 1. How can I adjust my composite so that as it is being built it
will not go below 0 or above 100. I don't want to limit the individual
negative values but only if the composite goes negative or over 1.
Does that make sense?
Thanks
DM