Here's the Custom Study to try on the color bar chart. It will yield 3 possible values:
0 neutral -1 = Downtrend Demark count at 9 or higher +1 = Uptrend Demark count at 9 or higher
( Bar[Close,D,0] < Bar[Close,D,4] AND Bar[Close,D,1] < Bar[Close,D,5] AND Bar[Close,D,2] < Bar[Close,D,6] AND Bar[Close,D,3] < Bar[Close,D,7] AND Bar[Close,D,4] < Bar[Close,D,8] AND Bar[Close,D,5] < Bar[Close,D,9] AND Bar[Close,D,6] < Bar[Close,D,10] AND Bar[Close,D,7] < Bar[Close,D,11] AND Bar[Close,D,8] < Bar[Close,D,12] ) * -1 + ( Bar[Close,D,0] > Bar[Close,D,4] AND Bar[Close,D,1] > Bar[Close,D,5] AND Bar[Close,D,2] > Bar[Close,D,6] AND Bar[Close,D,3] > Bar[Close,D,7] AND Bar[Close,D,4] > Bar[Close,D,8] AND Bar[Close,D,5] > Bar[Close,D,9] AND Bar[Close,D,6] > Bar[Close,D,10] AND Bar[Close,D,7] > Bar[Close,D,11] AND Bar[Close,D,8] > Bar[Close,D,12] ) * 1
You should be able to paint the bars and add the lower indicator using the above formulas. If you display as a histogram it is easier to count the number of days with the first blue bar being day # 9. Any running count 8 or lower is simply displayed as 0.
I'm tinkering with the Demark perfection criteria by making the indicator also indicate +2 or -2 (beta test on above chart). Looks ok but I'm still working on it...
Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.