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 |

Scanning for a high Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
dr_dent
Posted : Sunday, April 9, 2017 3:21:29 AM
Registered User
Joined: 7/16/2011
Posts: 2

What would be the code for a scan to detect the high over the most recent 30 days that occured in the last say 7 days ?

bcochrane
Posted : Sunday, April 9, 2017 1:17:30 PM
Registered User
Joined: 9/17/2010
Posts: 484

General form of High PCF Element is

MAXwx.z -> Maximum Value of Price Component or Volume over a specified span of bars ending on the specified bar (w must be O, H, L, C or V)

So I think you would want 

MaxC30 = MaxC7 or, if you wanted to scan for the condition 1 bar ago

MaxC30.1=MaxC7.1

Bruce_L
Posted : Monday, April 10, 2017 9:54:14 AM


Worden Trainer

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

The formulas for bcochrane are correct if you are looking for the closing high. If you want to check for the highs of the bars, you would change the Cs in the formula to Hs instead. So if you include the current bar.

MAXH30 = MAXH7

And if you you are just going through the previous bar.

MAXH30.1 = MAXH7.1



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