Questions (2372)

Votes
Answers
Views
Question
0
votes
1
answer
212
views
Hello Sir is it possible to convert this pseudo code to general scan? Thank you. Set variable to false on new day, Set it to true when condition "example SMA9 crosses above SMA50" occurs, carry last value forward . Only alert when prior state was fal...
1
vote
2
answers
719
views
asked 4 years ago by
Category: Chart Studies
Hi, Pete: is there a way to change how date labels appear?  here's a bit of code: # Prior date of indicator change def prior_X_Up_Date = if X_Status == 1 AND X_Status[1] == 0 then GetYYYYMMDD() else prior_X_Up_Date[1]; def prior_X_Down_Date = if X_St...
1
vote
1
answer
73
views
asked 4 years ago by
Category: Chart Studies
Hi Pete .Question. I have a script here I wrote that has no errors before applying, and it won't plot the labels onto a chart. It keeps saying" Two different secondary periods cannot be used in a single variable" in the upper left hand corner. I don'...
0
votes
1
answer
193
views
asked 4 years ago by
Category: Chart Studies
Hello please can you help me with the script the assign color value when EMA 9 crossover SMA 9 input lengthOne = 9; input lengthTwo = 9; input maTypeOne = AverageType.EXPONENTIAL; input maTypeTwo = AverageType.SIMPLE; input priceOne = close; input pr...
0
votes
1
answer
103
views
asked 4 years ago by
Category: Chart Studies
Hi Pete, Thank you for the great resources. I have a simple script below where I am trying to plot a horizontal line that extends to the right at every cross over signal. def avg1 = MovingAverage(AverageType.SIMPLE, close, 10); def avg2 = MovingAvera...
0
votes
1
answer
1099
views
asked 4 years ago by
Category: Stock Scanners
First, thanks for all you do.  In TC2000 you can scan for price growth over a period of time, say one month, using the formula c/minL22.  I am trying to configure a similar scan in TOS.  I would like to be able to enter a time period and filter to by...
0
votes
1
answer
158
views
asked 4 years ago by
Category: Stock Scanners
Hi Pete, How might one create a scan for stocks whose earnings announcement is x "calendar" days out?  My strategies use calendar days, not trading days.  For example, scan for stocks whose earnings announcement is 14 days hence, or 7 days ...
0
votes
1
answer
179
views
asked 4 years ago by
Category: Chart Studies
I've tried every search on this platform as well as general Googling. Can't seem to find the answer. Does Thinkorswim have the capabilities to show a Linear Regression Channel or Line on a log scale without curving the study? It seems like it takes t...
0
votes
1
answer
134
views
asked 4 years ago by
Category: Watch Lists
Hi Pete, I created a watchlist scan [Link: https://www.hahn-tech.com/ans/colour-the-watchlist-with-if-then/] but during market hours it won't show the results it keeps calculating as the price keeps changing. Is it possible for it to san once every h...
0
votes
1
answer
286
views
asked 4 years ago by
Category: Stock Scanners
Hi Pete. Thanks for such a quick response on my scanner question from this morning (linked below).  Your advice helped me refine my idea so I'm now looking at a MACD scanner that would alert off consecutive dark red bars after three or more light red...