StockFetcher Forums · Filter Exchange · PRICE ACTION - STATE<< 1 2 >>Post Follow-up
TheRumpledOne
6,525 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,525 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,525 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,525 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

]



nibor100
1,081 posts
msg #161794
Ignore nibor100
4/16/2025 11:14:17 AM

In 2014, Larry Williams presented a talk on Range Daily Structures and here is some of the info he presented along with a link to a 25min Edgerater video on his talk:.
Ed S.

"Breaking down the market into simple structure

Larry suggested the market can be simplified into only 4 possible daily structures:

Down Range: Day’s high is lower than the prior day’s high and day’s low is lower than the prior day’s low.
Up Range: Day’s high is higher than the prior day’s high and day’s low is higher than the prior day’s low.
Inside Range: Day’s high is lower than the prior day’s high and day’s low is higher than the prior day’s low. Occur approx. 12% of the time.
Outside Range: Day’s high is higher than the prior day’s high and day’s low is lower than the prior day’s low. Occur approx. 12% of the time.

Within these 4 patterns each last day could either be an up or a down day and so there are actually 8 possible patterns:


Down Range, Down day
Down Range, Up day
Up Range, Down day
Up Range, Up Day
Inside Range, Down day
Inside Range, Up day
Outside Range, Down day
Outside Range, Up day

Using these 8 patterns you can create some powerful strategies.
Entry and Exit technique

Larry presented backtested statistics associated with trading these patterns using a simple entry and exit technique. He stressed that they were not the best entry or exit techniques but shown because they were easy to understand and program. This strategy is intended only to show where we have a bias or advantage in the marketplace.

Entry: At market close
Stop Loss: Based on $ Stop
Exit: First Profitable Opening

His message was that we could go home and verify using our own software. His results for testing this on the e-mini S&Ps from 2002 forward were as follows:
Range Type % Wins #Trades Net Profit Avg Profit / Trade
Up Range, Up Close 80% 667 -$3,000 -$3
Up Range, Down Close 80% 312 $32,150 $103
Outside, Up Close 81% 201 -$13,000 -$66
Outside, Down Close 83% 255 $38,100 $150
Inside, Up Close 84% 228 $8,700 $22
Inside, Down Close 84% 227 $8,700 $38
Down Range, Up Close 82% 330 $32,300 $95
Down Range, Down Close 83% 560 $70,000 $125

So, the Down Range, Down Close day offers the best potential short term ‘long’ setup based on net profit. This was the take-home message of the presentation.

Larry further dug into the Down Range, Down Close setup to uncover which day of the week offered the best trade:

https://youtu.be/sv9mGsVF6jw







TheRumpledOne
6,525 posts
msg #161795
Ignore TheRumpledOne
modified
4/16/2025 12:53:30 PM

Hey nibor - please send an email to me.





nibor100
1,081 posts
msg #161796
Ignore nibor100
4/17/2025 1:49:01 PM

I don't have your email address.
Ed S.

TheRumpledOne
6,525 posts
msg #161799
Ignore TheRumpledOne
4/17/2025 7:20:02 PM

therumpledone uses gmail.

Check upper right hand corner of my video.





TheRumpledOne
6,525 posts
msg #161800
Ignore TheRumpledOne
modified
4/17/2025 7:27:29 PM



You can use this filter to display the range type



Fetcher[


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{Bull, count(close above open,1)}
Set{Bear, count(close below open,1)}

Set{URUC, Bull * HH }
Set{URDC, Bear* HH }

Set{DRUC, Bull * LL}
Set{DRDC, Bear* LL}

Set{IBUC, Bull * IB}
Set{IBDC, Bear* IB}

Set{OBUC, Bull * OB}
Set{OBDC, Bear* OB}

add column URUC /* Up Range Up Close */
add column URDC /* Up Range Down Close */
add column DRUC /* Down Range Up Close */
add column DRDC /* Down Range Down Close */
add column IBUC /* Inside Bar Up Close */
add column IBDC /* Inside Bar Down Close */
add column OBUC /* Outside Bar Up Close */
add column OBDC /* Outside Bar Down Close */


symlist(dia,spy,qqq)

]



TheRumpledOne
6,525 posts
msg #161801
Ignore TheRumpledOne
modified
4/17/2025 7:34:18 PM

https://academy.edgerater.com/lw_rangetype_testing/

Fetcher[

/* Larry Williams Range Type Display */

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{Bull, count(close above open,1)}
Set{Bear, count(close below open,1)}

Set{URUC, Bull * HH }
Set{URDC, Bear* HH }

Set{DRUC, Bull * LL}
Set{DRDC, Bear* LL}

Set{IBUC, Bull * IB}
Set{IBDC, Bear* IB}

Set{OBUC, Bull * OB}
Set{OBDC, Bear* OB}

add column URUC /* Up Range Up Close */
add column URDC /* Up Range Down Close */
add column DRUC /* Down Range Up Close */
add column DRDC /* Down Range Down Close */
add column IBUC /* Inside Bar Up Close */
add column IBDC /* Inside Bar Down Close */
add column OBUC /* Outside Bar Up Close */
add column OBDC /* Outside Bar Down Close */

OBDC above 0

close above .90
volume above 1000000




]



StockFetcher Forums · Filter Exchange · PRICE ACTION - STATE<< 1 2 >>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.