StockFetcher Forums · Filter Exchange · PRICE ACTION - STATE<< >>Post Follow-up
TheRumpledOne
6,515 posts
msg #161788
Ignore TheRumpledOne
4/15/2025 11:25:55 AM

PASC - PRICE ACTION SCORE

Price Action

1) Price will either breakout of the high, low or both of the previous bar
2) Price will not breakout of the previous bar.
3) Price will either close above a level (line) or not.

There are 4 STATES the current bar can be in when compared to the previous bar:

1) HH - Higher High, Higher Low
2) LL - Lower High, Lower LL
3) HL - Higher High, Lower Low (Outside bar)
4) LH -Lower High, Higher Low (Inside bar)

Compare the current price to the previous bar's open, high, midpoint, low and close. Add 1 if close is above.

The highest possible PASC is 5.


Fetcher[

set{ pw1, count(close above open 1 day ago,1) }
set{ pw2, count(close above high 1 day ago,1) }
set{ pw3a, high 1 day ago - low 1 day ago }
set{ pw3b, pw3a * 0.5}
set{ pw3, count(close above pw3b, 1 )}
set{ pw4, count(close above low 1 day ago, 1 )}
set{ pw5, count(close above close 1 day ago,1 )}

set{ pw6, pw1 + pw2 }
set{ pw7, pw6 + pw3 }
set{ pw8, pw7 + pw4 }
set{ PASC, pw8 + pw5 }

add column PASC



/* STATE CALCULATIONS */

set{xHH,count(high is above high 1 day ago,1)}
set{xLL,count(low is below low 1 day ago,1)}
set{xLH,count(high is below high 1 day ago,1)}
set{xHL,count(low is above low 1 day ago,1)}

set{HH, xHH * xHL }
set{LL, xLL * xLH }
set{IB, xLH * xHL }
set{OB, xHH * xLL }

Set{p1, OB * 1}
Set{p2, IB * 10}
Set{p3, LL * 100}
Set{p4, HH * 1000}

Set{pa, p1 + p2}
Set{pb, p3 + p4}
Set{STATE, pa + pb}

add column STATE

close between .90 and 5.00
volume above 1000000


PASC above 0
PASC 1 day ago below 5


]





TheRumpledOne
6,515 posts
msg #161789
Ignore TheRumpledOne
modified
4/15/2025 11:27:53 AM

We can use change of STATE in analysis.

HOW?

When the STATE changes, that indicates buyers and sellers are "battling in a fight" and the tide has changed.

When the STATE doesn't change, there is a clear winner and a loser - price is either going higher or lower.



Fetcher[

/* Stocks where STATE has changed */

set{ pw1, count(close above open 1 day ago,1) }
set{ pw2, count(close above high 1 day ago,1) }
set{ pw3a, high 1 day ago - low 1 day ago }
set{ pw3b, pw3a * 0.5}
set{ pw3, count(close above pw3b, 1 )}
set{ pw4, count(close above low 1 day ago, 1 )}
set{ pw5, count(close above close 1 day ago,1 )}

set{ pw6, pw1 + pw2 }
set{ pw7, pw6 + pw3 }
set{ pw8, pw7 + pw4 }
set{ PASC, pw8 + pw5 }

add column PASC



/* STATE CALCULATIONS */

set{xHH,count(high is above high 1 day ago,1)}
set{xLL,count(low is below low 1 day ago,1)}
set{xLH,count(high is below high 1 day ago,1)}
set{xHL,count(low is above low 1 day ago,1)}

set{HH, xHH * xHL }
set{LL, xLL * xLH }
set{IB, xLH * xHL }
set{OB, xHH * xLL }

Set{p1, OB * 1}
Set{p2, IB * 10}
Set{p3, LL * 100}
Set{p4, HH * 1000}

Set{pa, p1 + p2}
Set{pb, p3 + p4}
Set{STATE, pa + pb}

add column STATE 1 day ago
add column STATE

close between .90 and 5.00
volume above 1000000

set{ST8CHG, count(STATE equal STATE 1 day ago, 1)}
ST8CHG equal 0


]




TheRumpledOne
6,515 posts
msg #161790
Ignore TheRumpledOne
4/15/2025 11:45:05 AM



Fetcher[

/* Stocks where STATE has not changed */

set{ pw1, count(close above open 1 day ago,1) }
set{ pw2, count(close above high 1 day ago,1) }
set{ pw3a, high 1 day ago - low 1 day ago }
set{ pw3b, pw3a * 0.5}
set{ pw3, count(close above pw3b, 1 )}
set{ pw4, count(close above low 1 day ago, 1 )}
set{ pw5, count(close above close 1 day ago,1 )}

set{ pw6, pw1 + pw2 }
set{ pw7, pw6 + pw3 }
set{ pw8, pw7 + pw4 }
set{ PASC, pw8 + pw5 }

add column PASC



/* STATE CALCULATIONS */

set{xHH,count(high is above high 1 day ago,1)}
set{xLL,count(low is below low 1 day ago,1)}
set{xLH,count(high is below high 1 day ago,1)}
set{xHL,count(low is above low 1 day ago,1)}

set{HH, xHH * xHL }
set{LL, xLL * xLH }
set{IB, xLH * xHL }
set{OB, xHH * xLL }

Set{p1, OB * 1}
Set{p2, IB * 10}
Set{p3, LL * 100}
Set{p4, HH * 1000}

Set{pa, p1 + p2}
Set{pb, p3 + p4}
Set{STATE, pa + pb}

add column STATE 1 day ago
add column STATE

close between .90 and 5.00
volume above 1000000

STATE equal STATE 1 day ago

]




TheRumpledOne
6,515 posts
msg #161791
Ignore TheRumpledOne
4/15/2025 11:47:55 AM

Fetcher[

/* Stocks where STATE has changed from LL to HH*/

set{ pw1, count(close above open 1 day ago,1) }
set{ pw2, count(close above high 1 day ago,1) }
set{ pw3a, high 1 day ago - low 1 day ago }
set{ pw3b, pw3a * 0.5}
set{ pw3, count(close above pw3b, 1 )}
set{ pw4, count(close above low 1 day ago, 1 )}
set{ pw5, count(close above close 1 day ago,1 )}

set{ pw6, pw1 + pw2 }
set{ pw7, pw6 + pw3 }
set{ pw8, pw7 + pw4 }
set{ PASC, pw8 + pw5 }

add column PASC



/* STATE CALCULATIONS */

set{xHH,count(high is above high 1 day ago,1)}
set{xLL,count(low is below low 1 day ago,1)}
set{xLH,count(high is below high 1 day ago,1)}
set{xHL,count(low is above low 1 day ago,1)}

set{HH, xHH * xHL }
set{LL, xLL * xLH }
set{IB, xLH * xHL }
set{OB, xHH * xLL }

Set{p1, OB * 1}
Set{p2, IB * 10}
Set{p3, LL * 100}
Set{p4, HH * 1000}

Set{pa, p1 + p2}
Set{pb, p3 + p4}
Set{STATE, pa + pb}

add column STATE 1 day ago
add column STATE

close between .90 and 5.00
volume above 1000000

HH equal 1
LL 1 day ago equal 1

]



StockFetcher Forums · Filter Exchange · PRICE ACTION - STATE<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.