Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Formula comparing price to a range of previous bars Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
yifense86
Posted : Sunday, September 10, 2017 1:23:25 AM
Registered User
Joined: 10/13/2011
Posts: 38

Hi,

Can anyone help me with a formula that compares todays price to the highest price of a range past price bars, lets say 250 bars ago to 150 bars ago?

The goal is to detect whether price is in a longer term uptrend without pegging the comparison to a specific bar in the past. I want to enhance "C > C200" and make the "C200" more like "High of C150-C250"

Thank you!

Yi

Bruce_L
Posted : Monday, September 11, 2017 9:53:50 AM


Worden Trainer

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

The high of the bars from 150 through 250 bars ago can be written as follows.

MAXH101.150

So if you want to check if the current price is above this range.

C > MAXH101.150



-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.