NexusFi: Find Your Edge


Home Menu

 





Volume scan with alert and time limit


Discussion in ThinkOrSwim

Updated
    1. trending_up 1,591 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 attachments




 
Search this Thread

Volume scan with alert and time limit

  #1 (permalink)
Herring
Montevideo
 
Posts: 1 since Feb 2020
Thanks Given: 0
Thanks Received: 0

I’m a beginner with scripts and I’ve been following what you guys are doing here for a while. It’s amazing, really awesome ideas.

I’m trying to create a very basic scanner for premarket which includes a study and alerts when the condition is met, but I get some errors.

I want to scan for stocks between 1 and 7 making 20k or more volume in the 1-min bars. I want to catch volume spikes of that kind. All the volume alerts I see are related to percentage.

I’m getting hundreds of alerts all day long. It’s driving me crazy! I need the alerts to stop at 9:30, market open time.

So, I want to set:

A time limit for the alert.
A volume value equal or higher than 20K adding that as a stock filter study for that scan.
Later I will select “Alert me when results change” to get the alerts.
So, this is what I have tried:

——————-

def afterStart = SecondsFromTime(700) > 0;
def beforeEnd = SecondsTillTime(930) > 0;
def conditionTrue = volume >= 23000
plot alert = afterStart and beforeEnd and conditionTrue;
UNUSUALVOLUME() is greater than or equal to 23000

——————

Also trying, but apparently I’m not using the Unusual Volume condition in the right way because I get an error of invalid statement.

I also tried, with similar results:

—————-

input ORBegin = 700;
input OREnd = 930;
Def ORActive = if secondstilltime(OREnd)>0 AND secondstillTime(ORBegin)<=0 then 1 else 0;

——————

Thanks so much!

Reply With Quote




Last Updated on February 10, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts