Questions (2374)

Votes
Answers
Views
Question
1
vote
1
answer
99
views
Hello Pete, Thank you for your great service, we really appreciate it. I have a question, which I really hope that you can help me answer. So, let's say we have a scanner x that retrieves the close price of the current bar if the conditions were met....
1
vote
1
answer
86
views
asked 4 years ago by
Category: Chart Studies
Hello, Currently, I am trying to just have moving averages plot all in one tidy study. However, Im running into an issue where the none of the plots work if a stock does not have the proper days for that avg (IPOs not having 50 trading days). I've tr...
0
votes
1
answer
63
views
asked 4 years ago by
Category: Stock Scanners
Can you please provide guidance for thinkorswim platform on how to write a stock scanner... which are within positive or negative 5% of the 20 day median value of the stock in the last 20 days? Thank you. Example.. Median of stock - 100. Stock is osc...
1
vote
1
answer
259
views
asked 4 years ago by
Category: Watch Lists
Hi Pete, how're you? Hope you and your family are all well and sound. I was hopping you can help me out or give me some feedback. I found your bar count function from: https://www.hahn-tech.com/ans/display-bars-since-cross-above-hma/ Tried to adapt t...
0
votes
1
answer
201
views
asked 4 years ago by
Category: Strategy Guide
I am attempting to create a strategy similar to one I saw on youtube (open source). It plots the most recent HH (resets after x bars (say 10) to most recent HH and a possible Entry Price (= L (of the candle w/HH) - 2 * ATR20). I also want to add an U...
0
votes
1
answer
360
views
asked 4 years ago by
Category: Chart Studies
I'm having a hard time trying to get my indicator to show red > 5 % else green, here is my code I hope you can help!     def len = 1; def dayHigh = DailyHighLow(AggregationPeriod.DAY, len, 0, no).DailyHigh; def dayLow = DailyHighLow(Aggr...
0
votes
1
answer
96
views
asked 4 years ago by
Category: Chart Studies
I was interested in overlaying the daily Hull MA and daily Adaptive MA over a lower time frame chart, ideally the 1 minute chart.  Is this possible ?
1
vote
2
answers
387
views
asked 4 years ago by
Category: Watch Lists
Hello Pete, Hope your doing well. Do you know if it's possible to properly sort a watchlist using the AsPercent() function (in a custom column)? I have some code (shown below) that is used to calculate the relative daily volume of an instrument; howe...
0
votes
1
answer
428
views
asked 4 years ago by
Category: Stock Scanners
Hi Pete, I looked in the Q&A section but couldn't find what I'm trying to do.  I'm trying to scan my watchlist of stocks to pull up any stocks when the stock price is 1.5 times their respective ATR or higher.  Just wondering if the below would wo...
0
votes
1
answer
434
views
asked 4 years ago by
Category: Watch Lists
right now, the count returns the number of valid conditions out of the past 10 periods, with the color  changing based on that condition and one other.  i'd prefer how many periods it's been since the last instance of a valid condition, again with th...