# Gap From Market Close watchlist by Len20
# Set to 1hr or lower aggregation
# Works afterhours, premarket, and regular hours
def marketClose = 1559;
def c = close;
def today = GetDay() == GetLastDay();
def dayHours = SecondsTillTime(marketClose) >= 0 ;
def PrevClose = if (dayHours[1] and !dayHours) or...
would you mind sharing before market scan? at least how do you determine that a stock is going to be moving throughout the day?Hi, I'm looking for a scanner to show me all the stocks that are moving up after the market close. I couldn't find any and I have a scan for Pre-market and works fine. Any help would be appreciated.
# Gap From Market Close watchlist by Len20
# Set to 1hr or lower aggregation
# Works afterhours, premarket, and regular hours
def marketClose = 1559;
def c = close;
def today = GetDay() == GetLastDay();
def dayHours = SecondsTillTime(marketClose) >= 0 ;
def PrevClose = if (dayHours[1] and !dayHours) or (dayHours[1] and !today[1] and today)
#in case there was no afterhours trading
then c[1]
else PrevClose[1];
def gapChange = round((c - PrevClose) / PrevClose * 100, 1);
plot GapPlot = if today then gapChange else double.NaN;
GapPlot.assignValueColor( if gapChange < 0 then color.RED else color.GREEN);
input marketClose = 1555;
def closeCounter = SecondsTillTime(marketClose);
def regSessEnd = closeCounter == 0;
rec priorDayClose = if regSessEnd then close else priorDayClose[1];
def change = ((close-priorDayClose) / priorDayClose) * 100;
def con1 = change >= 3 or change <= -3;
plot scan = con1;
# in place.
#PERCENT FROM MARKET CLOSE for use with AFTERHOURS
#BY XeoNoX via usethinkscript.com
def middleprice = (ask-bid) / 2 + bid;
plot x = round(100*((middleprice/close)-1),1);
AddLabel(yes,aspercent(x/100),if x > 0 then color.UPTICK else if x == 0.0 then color.white else color.red);
Here you go, it only works as a COLUMN.
It's a little off since it uses the current middle price, but its better than nothing, I'm sure there's a way to grab the price using secondsfromtime to grab the close/last afterhours.. I already had this one that I used... here is the code.
remember to hit the like button if you found my post usefull
PERCENT FROM MARKET CLOSE for use with AFTERHOURS
![]()
Code:# in place. #PERCENT FROM MARKET CLOSE for use with AFTERHOURS #BY XeoNoX via usethinkscript.com def middleprice = (ask-bid) / 2 + bid; plot x = round(100*((middleprice/close)-1),1); AddLabel(yes,aspercent(x/100),if x > 0 then color.UPTICK else if x == 0.0 then color.white else color.red);
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
A | 3-Hours-Scan? | Questions | 2 | |
R | Bollinger Band/Stochastic Momentum Index or RSI scan | Questions | 3 | |
A | Scan for Naked ITM and OTM price on weekly options | Questions | 1 | |
A | Jesse Livermore style accumulation breakout scan | Questions | 2 | |
W | Scan in All of the following vs Any of the following | Questions | 1 |