Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

20 More Inside Bars Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
traderlady
Posted : Tuesday, November 14, 2017 11:05:19 AM
Registered User
Joined: 10/7/2004
Posts: 1,178

Here's the formula you provided for "Inside Bar Now"

(100 * L1) \ 1 <= (100 * L) \ 1 AND (100 * H) \ 1 <= (100 * H1) \ 1

Bruce, please modify this formula 20 times for "Inside Bar 1-Ago", through "Inside Bar 20-Ago".

Thanks so much.

 

Bruce_L
Posted : Tuesday, November 14, 2017 11:12:02 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

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
StockGuy
Posted : Tuesday, November 14, 2017 11:12:05 AM

Administration

Joined: 9/30/2004
Posts: 9,187

So you do you want 20 inside bars in a row?  How many in the last 20 bars were inside bars?  Or how long since the last inside bar looking back 20 bars?  Not quite sure what you want.

traderlady
Posted : Tuesday, November 14, 2017 11:19:31 AM
Registered User
Joined: 10/7/2004
Posts: 1,178

I am not looking for 20 bars in a row.  I can set up Easy Scans for two or three bars in a row using the above formulas.

Bruce_L
Posted : Tuesday, November 14, 2017 11:25:52 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.