Questions (2349)

Votes
Answers
Views
Question
0
votes
1
answer
166
views
asked 6 years ago by
Category: Stock Scanners
  Hi Pete: I am trying to write code to find all stocks which released earnings [hasEarnings()] over the past n days.  I could not do this because hasEarnings()[n] is not allowed unless n is a constant. I actually found that [n] variable does no...
0
votes
1
answer
2420
views
asked 6 years ago by
Category: Stock Scanners
I noticed there have been a few questions and answers about how to scan for opening range breakouts by a certain time of the day in Think or Swim.  Individuals have asked for 5 minute scans, over night gaps and pre market high/lows.  There was even a...
0
votes
1
answer
436
views
asked 6 years ago by
This is my code.   I find a PriceOsc Oscillator Peak Value   ####Definition of PrcOscPeak or Valley   or High############################ def PO=PriceOsc().PriceOsc;   def OscPeak = if PO >= PO[1] and PO >= PO[2] && PO>= PO...
0
votes
1
answer
1634
views
asked 6 years ago by
Category: Chart Studies
Hi Pete. Sorry for my last post, hopefully this clears everything up.  It would be great if this code can be transferred over to ThinkOrSwim platform.  As you can see from the image on the website below, as an overlay you can assign renko brick size ...
0
votes
1
answer
113
views
asked 6 years ago by
Category: Chart Studies
Hi all. Thinkorswim scan, I'm able to find the highest high of last 10 days. I need help on how to get the close and low of this highest high. thanks.
0
votes
1
answer
1256
views
asked 6 years ago by
Category: Chart Studies
Hello Hahn, Is it possible to create a script that changes the colors of candlesticks based on volume and RSI? For example, when the current candle has more than 1.5 relative volume and an RSI>65 , it will be colored yellow on the chart.
0
votes
1
answer
484
views
asked 6 years ago by
Category: Watch Lists
Hi Pete, Thank you for all the helpful studies, alerts, and watchlists. I did some searching and found the following: https://www.hahn-tech.com/ans/distance-from-high-of-day-watchlist/ I was wondering if you could help provide the thinkscript code fo...
0
votes
1
answer
283
views
asked 6 years ago by
Category: Chart Studies
Hello, I've been writing code in TS EasyLanguage for nearly 25 years, but I'm relatively new to writing thinkScript.  This is probably something pretty easy, but I can't figure it out due to my limited fluency in thinkScript. As far as I can tell, th...
0
votes
2
answers
279
views
asked 6 years ago by
Category: Watch Lists
Hi Pete, First, I want to say thank you. My trading has improved immeasurably since I started adding custom codes to TOS and stumbled upon your site. I am completely new to TOS and coding but your site has advanced me greatly. I am looking for a colu...
0
votes
1
answer
718
views
asked 6 years ago by
Category: Stock Scanners
Hello Pete. What I am looking to do is create a scan that alerts me of recent news on companies I have in my watchlists. Much like the Earnings scan, this would operate the same way. I tried to change the code for the Earnings scanner, but I can't ge...