Questions (2351)

Votes
Answers
Views
Question
0
votes
1
answer
89
views
asked 4 years ago by
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
92
views
asked 4 years ago by
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
84
views
asked 4 years ago by
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
70
views
asked 4 years ago by
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
votes
1
answer
44
views
asked 4 years ago by
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
votes
1
answer
242
views
asked 4 years ago by
Category: Watch Lists
Hi Pete, I have a customized column that counts the number of green 30-minute bars for the day. Is there a way to rewrite the code so that it automatically takes only today into effect instead of using the lookback? Thanks again! input lookback = 13;...
0
votes
1
answer
153
views
asked 4 years ago by
Category: Strategy Guide
I use a simple strategy where in an uptrend if an inside bar appears I buy the break of the top of that bar on the next candle.  I then put my stop loss at the bottom of the inside bar and create a price target equal to the size of the inside bar abo...
0
votes
1
answer
318
views
asked 4 years ago by
Category: Watch Lists
Hi Pete, I can't add more Custom Quote Formula in my Watch List because it's full.  How can I add more Custom Quote Formula?
0
votes
1
answer
58
views
asked 4 years ago by
Category: Watch Lists
Hi Pete, Is there a universal way to use the same verbiage looking only for the current day with any script? If not, could you please help me again so that I don't have to use the lookback? Thanks again! input lookback = 13; def pctGain = ((close - c...
0
votes
1
answer
647
views
asked 4 years ago by
Hi! Im trying to reduce the number of buy and sell signals triggering from this custom indicator i've created from CCI Average indicator in TOS. Im wanting to have only the initial signal and no more duplicates before a new signal is created. Here is...