Votes
Answers
Views
Question
0
1
58
asked 5 years ago by Shaishav Patel
Category:
Chart Studies
Hi Pete, I am loooking for labels to be added in the code. http://tos.mx/NU4Zarz Label 1- Close Greater Than HL2=YES Label 2- Close Greater Than HL2=NO But I need only one of the labels to be displayed based on the close value in referece...
0
1
73
asked 5 years ago by Ak40 Steven
Category:
Watch Lists
Hello Hahn Tech, I need help creating a watch list column that displays if a stock traded over 10 million volume in a single day within the last. (255 days candles) If the condition is true, the return value will be display the word "Yes" in r...
0
1
101
asked 5 years ago by Louis Tremblay
Category:
Strategy Guide
Hi Pete, The following if then statement contains two conditions and it's not working. It's probably a beginner error :). I want buy order if close is < SMA 150 with SMA 10 rising in the last period. This is what i wrote: def scan = (if close &l...
0
1
98
asked 5 years ago by ForexLennard
Category:
Strategy Guide
I've had some good luck poking around in here but am having trouble adapting my strategy code. Some background of a similar dummy strategy: Entry Conditions (if ANY of the following is valid): Daily 50SMA crossed above 200SMA OR Daily 50SMA > Dail...
0
1
104
asked 5 years ago by Justin Madigan
Category:
Strategy Guide
Hi Pete, Do you know if there is a way to add a date range to a strategy for execution of orders and backtesting? Example: Oil goes up every year sometime between January 1 and February 15th. I would like to have this date range as part of a strategy...
0
1
146
asked 5 years ago by Tuan Pham
Category:
Watch Lists
Hi Pete, This custom column script gives the ORB pct but it doesn't calculate it just for today. It will go back to the previous day's last 30 minutes of options volume if today's initial 30 minutes doesn't have any. Is it possible to tweak it so tha...
0
1
553
asked 5 years ago by Chuck Gordner
Category:
Stock Scanners
Hi Pete, I would like to use your flatbase breakout scanner code to have the breakout be to the short side... The link to the original flatbase breakout scan is here: https://www.hahn-tech.com/ans/flat-base-breakout-scans/ I would like it to have a l...
0
1
667
asked 5 years ago by Andrew Long
Category:
Strategy Guide
Hello all, I've been doing some backtesting on the "MovAvgStrat" that comes with the ToS platform, but I'd like to be able to displace the MA in addition to being able to set the length. I attempted to create my own script with copy and pasting the o...
0
1
794
asked 5 years ago by Corey
Category:
Stock Scanners
Hi Pete. In a previous post you created a watch list code which shows when a Hull Moving Average changes direction. Here is the previous post link : https://www.hahn-tech.com/ans/wl-for-hull-in-tos/ Can you assist me with setting up a scan that looks...
0
1
204
asked 5 years ago by Sr
Category:
Watch Lists
Hello, I am new to think scripts and this site as well. I am glad I found such a valuable site. I was wondering how I could add a custom column to my watchlists with color changes whenever a stock price went below and above a moving average like 20 ...