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 |

Lowest price with in X daily bar. Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Jennlongyu
Posted : Monday, July 2, 2018 6:13:11 PM
Registered User
Joined: 2/16/2017
Posts: 1

Hi 

 

I am trying to set up a formule where it give me a X days % change between the highest and the lowest price point. I use MAXH 5.1. for 1 offset and the higest price of 5 previous days.

X days higest price - X days lowest price / current price * 100= X %

But I can not the the com for lowest price in the privous 5 days. I am looking for the lowest price, not the lowest price on a down day. I am wondering which what the formule shall be like. 

 

Furthure more I would also like to compare this X days % with the pass X days Avg moving % as a refrance to find stock that have consolidation price for a X days. WHich can also included a dip low or fake break. 

Like P.M for the pass 20 days. 

(AVGH-AVGL)/C*100<X%<15%.

Something like that. But i need to find the lowest price, not the lowest closing days price. 

I havent really work out the entire set up yet, but at this stage i am stuck in a few line of com. It will be nice if you can also breafly expalin the basic meaning, so I will be able to learn and understand more on the structure and it's set up. 

 

 

Thanks 

Bruce_L
Posted : Thursday, July 5, 2018 12:43:13 PM


Worden Trainer

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

So something like the following for the base value?

100 * (MAXH5.1 - MINL5.1) / C

Or maybe this instead?

100 * (MAXH5.1 / MINL5.1 - 1)

The first is the difference between the high and low of the previous five bars as a percentage of the current price.

The second is the percentage that the high of the previous five bars is above the low of the previous five bars.

And something like the following for the following?

AVG(100 * (MAXH5.1 - MINL5.1) / C, 20)

Or possibly the following for the 20 period moving average?

AVG(100 * (MAXH5.1 / MINL5.1 - 1), 20)

These formulas just put an AVG() function around one of the previous two formulas.



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