Scan for Stocks Above/Below Pre-Market in ThinkorSwim

alerts and scanners are two different things, you have to figure out which one of the two, or maybe even both, arent working. you should first make sure the scanner works right, and then worry about the alerts later. You usually cant get to step #3 if step #1 is missing.
 
alerts and scanners are two different things, you have to figure out which one of the two, or maybe even both, arent working. you should first make sure the scanner works right, and then worry about the alerts later. You usually cant get to step #3 if step #1 is missing.

my scanner is linked to the watchlist so I set the watchlist, add alert for new ones being added but the scan results stay on the screen so how can a new result show up since they're already all on the screen.

as for the indicator. I have the script that lines up the premarket high and low and I set alert for it to go off when it breaks premarket high and that also does not go off so I have no way of finding out what's breaking and what's not other than keep checking no the charts. it's very frustrating. I have 7 monitors I'm working with and it's a lot to keep track of. I need this damn alert to work. I would be willing to compensate you for your time if you can please write a script for me for scanner that alerts me on break of premarket highs from a designated watchlist that I update every morning. let me know if you can help sir. Trust me I'm not dumb I know how to use this crap and I majored in computer science back in my day. don't let the muscles fool you lol... I just can't get this damn TOS script to work for me.
 
@Big Ed Scanner Alerts can lag significantly due to the fact that scans only update every 3 - 7 minutes like Watchlist Custom Columns do... Is it a lag problem or simply no alerts at all...??? Chart Alerts, on the other hand, are almost instantaneous...
 
so your just trying to find out when it breaks pre-market high?
can you post the script you are using?
 
@rad14733 no alerts at all brother.. nada
my chart alerts are not going off either

@XeoNoX here's the code:

Code:
#pm_high_low


input alertPeriodStart = 930;
input alertPeriodEnd = 1130;
input alertOnBreak = no;
input alertOnPullBack = no;
input numberOfDays = 2;
input numberOfYears = 0;


def okToPlot = GetLastDay() - numberOfDays <= GetDay() and GetLastYear() - numberOfYears <= GetYear() ;

def startCounter =  SecondsFromTime(alertPeriodStart);
def endCounter = SecondsTillTime(alertPeriodEnd);

def alertPeriod = if startCounter >= 0 and endCounter >= 0 then 1 else 0;

def regularSessionHours = RegularTradingStart(GetYYYYMMDD()) <= GetTime();
def extendedSessionHours = RegularTradingStart(GetYYYYMMDD()) >= GetTime();

def extendedSessionStart = regularSessionHours[1] and extendedSessionHours;
def regularSessionStart = extendedSessionHours[1] and regularSessionHours;

def extendedSessionHigh = CompoundValue(1, if extendedSessionStart then high else if extendedSessionHours then Max(high, extendedSessionHigh[1]) else extendedSessionHigh[1], high);

def extendedSessionLow = CompoundValue(1, if extendedSessionStart then low else if extendedSessionHours then Min(low, extendedSessionLow[1]) else extendedSessionLow[1],low);

def regularSessionHigh = CompoundValue(1, if regularSessionStart then high else if regularSessionHours then Max(high, regularSessionHigh[1]) else regularSessionHigh[1], 0);

def regularSessionLow = CompoundValue(1, if regularSessionStart then low else if regularSessionHours then Min(low, regularSessionLow[1]) else regularSessionLow[1], 0);


plot overnightHigh = close > extendedSessionHigh;

#plot overnightLow = close < extendedSessionLow;
 
so the alerts all of a sudden started working today but like you said they are delayed so it just defeats the whole purpose of breaking the pre market high for me to get in for momentum play. that delay is not gonna cut it. I just have to fix the alert for the chart indicator I guess and just put 18-20 stocks on the charts and go from there. Now I have to figure out why the alerts on the charts are not working
 
correct, its why i would recommend for you to scan for when price is within XYZ% of the premarket high
that way you can see the tickers that are getting close to the premarket high live from the watchlist.
 
Custom Scanner to find High of premarket

Hello. Should i disclose i'm a newby or is that a given :)
There is a default script, HighAndLowLineOfPreMarket. I have been playing with a scanning script that will tell me when the high of premarket has been hit during regular trading hours. I can't figure this out. I tried pasting this whole script in the scanner script editor and that didn't work. I also tried to reference "OverNightLow" from the script and that didn't work either.

Can someone please help me with the scanner script to tell me when a stock has hit the high of premarket?

Thanks for moving my question and directing me to this thread. I'll give the script above a shot.
 
Last edited:
This is working for me. One issue is, I am getting results that have very little or no volume premarket. I found a thread discussing volume but those scripts are more complex than what i need. I need something "Premarket Volume Greater than 5,000 shares." Should be simple. There is the default volume scan but i cannot set it to premarket only. Is there something out there i am missing? or can someone help me write this?
Thanks!
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
278 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top