Registered User Joined: 1/9/2018 Posts: 9
|
Hi,
Can I know what the PCF are for the pre-built conditions new highs and new lows?
Thanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
There really aren't formulas which correspond to exact way the built in new high and new low conditions work because those conditions can work with fewer bars than the period of the new high and new low.
That said, you could create conditions for the high of the current bar being at its highest value in the most recent 50 bars.
H = MAXH50
A similar formula for the low would be:
L = MINL50
Or a condition for the high of the current bar being higher than the highest high over the previous 49 bars.
H > MAXH49.1
A similar formula for the low would be:
L < MINL49.1
And you could check for the current price being above the highest high in the previous 49 bars.
C > MAXH49.1
A similar formula for the lowest price would be:
C < MINL49.1
And you could even check for the current price being at its highest value of the most recent 50 bars.
C = MAXH50
Or:
STOC50 = 100
With a similar formula for being at the lowest price being:
C = MINL50
Or:
STOC50 = 0
But all of these formulas would require at least 50 bars of data be available, while just clicking on price and selecting New High or New Low with the period set to 50 would still work even if there were less than 50 bars of data.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 1/9/2018 Posts: 9
|
Hi,
I was thinking more of intraday highs or lows. Is that not possible?
Thanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You can do something like:
C = H
Or:
STOC1 = 100
In a daily time frame to check for the current price to be the high of the trading day, but there really isn't a reliable way to write a formula to check for the high of the current intraday bar being the high of the trading day if the close isn't the high of that bar.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|