Hi Pete,
This is my second day with ThinkScript and having syntax problems. I reviewed your wonderful video on “custom scan stochastic macd”.
I am trying to create a watchlist from scan, similar to above video for ORB, which is bullet ‘a’ from above question (I need more time to get started on ‘b’).
15 minute ORB (long or breakup) I mean price broke up above 15 minute high and I want such stocks to show up in my scan. Below is a chart with red horizontal lines on the 15 minute level
Edit: The link has been removed because it no longer works
So, in above case I want the stock to show up in my scan twice because it broke up, pulled back and broke up again (note: it is 5 minute intraday)
I attached some sample code. In TOS -> Scan ->Add Stock Filter -> Custom, I add the code from attached file.
But I get the error “Secondary period not allowed in Day”, as you can see at http://jmp.sh/JXJOiDN
Will you please help me in resolving above error – thank you so much
For item a, please provide a screenshot of this pattern so I understand clearly what it is you are looking to find with the scan. But be sure to check out this post because you may find it does the job: https://www.hahn-tech.com/ans/gap-to-previous-day-close-scan/
For item b, please review this video and see if this provides a solution: https://www.hahn-tech.com/thinkorswim-overnight-range-scan-alert/