Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I need quite a bit of help. I posted this question before on usethinkscript and I haven't received a response. I was looking at creating a scan in thinkorswim that scans for stocks that have had a significant drop in price (20% or more) during the day. I wanted to also scan for certain times of the day such as 15 minutes after market open. In short, I'm looking to create a scanner that will scan for a large bearish 15 min candle candle. If you have any suggestions, I'm open to all and I would like to learn a little more on this subject. Also, with this scan, could I potentially use it to look for large 30 min or 1 Hour bearish candles?
I created a scan before by using the default price performance scan that think or swim has, however it scans for 1 bar prior and it doesn't fit the price decrease of 20% or more.
Thank you
V/r
I started playing around with this scan, however I don't think this has what I'm looking for
Can you help answer these questions from other members on NexusFi?
This code will actually be really great. I had to actually do the code on paper because my poor coding skills. My next question will be the how to scan specific time? So how do I make the code to scan 11:45 to 12:00 (this should cover a specific bar)?
Do you want to do this in real-time, or for any time after the fact? For example, are you always running it at 12:01? or could be running it at 1:52 for 11:45 to 12:00?
If always running at 12:01, either 1) put it on a daily chart, and then run the first option, or 2) put it on a 15-minute chart and run the second option.
If want to run at 1:52 for 11:45 to 12:00, then have to do more work on the code.
Precisely, I would like to be able to search for the 11:45 to 12:00 bar at any time of the day. For example, I wanted to find any stock that had a large 20% price decrease during 11:45 to 12:00. In theory, if my time was 3:00pm, I would like to find a large bear candle that occurred at 11:45 to 12:00. That’s my other major problem
Do you want to do this in real-time, or for any time after the fact? For example, are you always running it at 12:01? or could be running it at 1:52 for 11:45 to 12:00?
If always running at 12:01, either 1) put it on a daily chart, and then run the first option, or 2) put it on a 15-minute chart and run the second option.
If want to run at 1:52 for 11:45 to 12:00, then have to do more work on the code.
Ok, So I'm thinking something similar to this example code
def Aftr929 = secondsFromTime(1129) > 0;
def Before931 = secondsTillTime(1146) > 0;
def TodaysOpen = Aftr929 and Before931;
plot Test = if TodaysOpen then open else double.nan;
However, I'm not sure how to combine the two codes together to make this work. Or should I write a code that says "get the open price of the bar at 1144 and closing price at 1201 and see if there is a 20% decrease" ? If so, then add to plot scan
Awesome. See I didn’t think about holding a value so this might be something I have to learn. The only coding I know is from general items from arduino.
I think I can make it work quickly if you want to specify the time frame in the scan, but if you want to parameterize the time frame, then would need MTF code, which I am not familiar with, so have to figure it out.
I'd like to learn it, so not a big deal, but might take several days or so to get it done.
I think I can make it work quickly if you want to specify the time frame in the scan, but if you want to parameterize the time frame, then would need MTF code, which I am not familiar with, so have to figure it out.
I'd like to learn it, so not a big deal, but might take several days or so to get it done.
Unless someone reading this can do it faster.
I can specify. Probably 15 min @ 11:45 search time