Gazilla and William
Thanks for your prompt replies.
And of course, thanks to CMX, Pez and others who worked on these definitions back in 2006.
I had already set up the definitions manually based on the various old posts on the topic; however, I had noticed differences in some of the posts e.g. one had VWAP(0), another had LSMA(25) as hidden, etc so I was interested in what the final definition was for the CCI Paintbars. I have downloaded the Charts and Paintbar in the zipped file in order to check my manually entered definition that I had gleaned from CMX's posts.
Although I am new to QuoteTracker, I do have a background in math and many years in Information Technology. It seems to me that the second rule in the Paintbar (MA Intensity Indicator for the 25 LSMA and 34 EMA) should not have an ELSE condition.
i.e. Instead of
if ema(34)/ema(34)[1] < 1 and lsma(25)/lsma(25)[1] < 1 set color to $80FFFF else set color to Red
it should simply be
"if ema(34)/ema(34)[1] < 1 and lsma(25)/lsma(25)[1] < 1 set color to $80FFFF"
as 'else' condition will cause several 'Yellow' or $80FFFF color conditions to be overridden to 'Red'
For example if both the EMA ratio and the LSMA ratios were
between 1 and 1.00005
then rule #1 would paint Yellow but since both are NOT less than 1, then rule #2's 'Else' condition would be satisfied and force the color to be Red and none of the remaining rules are satisfied.
I am basing the paintbar rules or 'protocol' on what I expect it to be 'programatically' and also on the response in the post at
http://www.forum.qtusers.com/index.php/topic,59.0.html"The rules are executed in descending order...so...each subsequent rule is executed from the top down, in order, and will overide the previous rule if there is a coincedence of factors..."
There are six ranges defined for each of the ratios
i.e. (a) <.99990,
(b) between .99990 and .99995,
(c) between .99995 and 1.0
(d) between 1 and 1.00005
(e) between 1.00005 and 1.00010
and (f) > 1.00010
So in all there are 36 various combinations of ranges.
Two would be dark green i.e. both EMA and LSMA ratios in the extreme ranges of (a) or in (e); i.e. both < .99990 or both > 1.00010
EMA <---LSMA Ratios --->
Ratios a b c d e f
| a DG G Y R R R
| b G G Y R R R
| c Y Y Y R R R
| d R R R (Y) (Y) (Y)
| e R R R (Y) G G
| f R R R (Y) G DG
where DG= dark Green, G=Green, R=Red, Y is Y=Yellow
and (Y) should be yellow but is overridden to red by the Rule 2 else condition.
Notice the symmetry
There should be 10 in the yellow zone; however, 5 of these get overridden to red as in the following cases ...
if EMA ratio is in range (d) and LSMA ratio is either in range d, e or f
or if LSMA ratio is in range (d) and EMA is in range e or f
Since the built-in SW and CZ functions are based on Woodie's proprietary formulas and also have very little help text, it's a bit confusing to understand what the various parameters should logically be. I have seen various suggestions on tick size, trending and normal parms but little explanation... so I guess the only option is use pure 'trial and error'. At least with CMX's indicators, one can try to apply some logic along with the trial and error. Also need to check out some of Woodie's material.
The really important question now is, can I incorporate these indicators effectively to make some real $$$.
lol.
Hope this makes sense and no serious typos.
Ciao