Votes
Answers
Views
Question
0
votes
1
answer
107
views
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
votes
1
answer
114
views
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
votes
1
answer
109
views
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
votes
1
answer
153
views
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
votes
1
answer
567
views
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
votes
1
answer
692
views
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
votes
1
answer
830
views
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
votes
1
answer
210
views
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 ...
0
votes
1
answer
97
views
asked 5 years ago by D Man
Category:
Strategy Guide
A prior post asked about generating alerts indicating time and price for a specific, individual underlying based on trade signals generated by a strategy. I have a strategy from which I would like to create real orders. Could this be done by converti...
0
votes
1
answer
191
views
asked 5 years ago by Pierre Lacharite
Category:
Chart Studies
Hello Mr Hahn. To your knowledge, is it possible to plot a linear regression channel between to specific dates on a chart ? I know the TTM_LRC allows to specify a start date & start time from where the line will start. The «problem» is that if p...