Each of the following formulas checks for a fixed number of bars ago and should be on its own line (0 through 20 bars ago).
(100 * L1) \ 1 <= (100 * L) \ 1 AND (100 * H) \ 1 <= (100 * H1) \ 1
(100 * L2) \ 1 <= (100 * L1) \ 1 AND (100 * H1) \ 1 <= (100 * H2) \ 1
(100 * L3) \ 1 <= (100 * L2) \ 1 AND (100 * H2) \ 1 <= (100 * H3) \ 1
(100 * L4) \ 1 <= (100 * L3) \ 1 AND (100 * H3) \ 1 <= (100 * H4) \ 1
(100 * L5) \ 1 <= (100 * L4) \ 1 AND (100 * H4) \ 1 <= (100 * H5) \ 1
(100 * L6) \ 1 <= (100 * L5) \ 1 AND (100 * H5) \ 1 <= (100 * H6) \ 1
(100 * L7) \ 1 <= (100 * L6) \ 1 AND (100 * H6) \ 1 <= (100 * H7) \ 1
(100 * L8) \ 1 <= (100 * L7) \ 1 AND (100 * H7) \ 1 <= (100 * H8) \ 1
(100 * L9) \ 1 <= (100 * L8) \ 1 AND (100 * H8) \ 1 <= (100 * H9) \ 1
(100 * L10) \ 1 <= (100 * L9) \ 1 AND (100 * H9) \ 1 <= (100 * H10) \ 1
(100 * L11) \ 1 <= (100 * L10) \ 1 AND (100 * H10) \ 1 <= (100 * H11) \ 1
(100 * L12) \ 1 <= (100 * L11) \ 1 AND (100 * H11) \ 1 <= (100 * H12) \ 1
(100 * L13) \ 1 <= (100 * L12) \ 1 AND (100 * H12) \ 1 <= (100 * H13) \ 1
(100 * L14) \ 1 <= (100 * L13) \ 1 AND (100 * H13) \ 1 <= (100 * H14) \ 1
(100 * L15) \ 1 <= (100 * L14) \ 1 AND (100 * H14) \ 1 <= (100 * H15) \ 1
(100 * L16) \ 1 <= (100 * L15) \ 1 AND (100 * H15) \ 1 <= (100 * H16) \ 1
(100 * L17) \ 1 <= (100 * L16) \ 1 AND (100 * H16) \ 1 <= (100 * H17) \ 1
(100 * L18) \ 1 <= (100 * L17) \ 1 AND (100 * H17) \ 1 <= (100 * H18) \ 1
(100 * L19) \ 1 <= (100 * L18) \ 1 AND (100 * H18) \ 1 <= (100 * H19) \ 1
(100 * L20) \ 1 <= (100 * L19) \ 1 AND (100 * H19) \ 1 <= (100 * H20) \ 1
(100 * L21) \ 1 <= (100 * L20) \ 1 AND (100 * H20) \ 1 <= (100 * H21) \ 1
A count of the number of inside bars between 1 and 20 bars ago can be written as follows.
CountTrue((100 * L2) \ 1 <= (100 * L1) \ 1 AND (100 * H1) \ 1 <= (100 * H2) \ 1, 20)
A count of the number of inside bars in a row between ending 1 bar ago and maxing out at 20 can be written as follows..
TrueInRow((100 * L2) \ 1 <= (100 * L1) \ 1 AND (100 * H1) \ 1 <= (100 * H2) \ 1, 20)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|