Questions (2347)

Votes
Answers
Views
Question
1
vote
1
answer
65
views
asked 4 years ago by
Category: Stock Scanners
Hello there Mr. Hahn, I have another very simple request for you. I already found the code to scan for inside bars on your site. What I would like next would be to scan for stocks that close in the upper 40% or lower 40% of the previous bars' range a...
0
votes
1
answer
153
views
asked 4 years ago by
Hey Pete, I'm in the process of trying to create the moving average crossover alert and I have some questions about the discrepancies between where the chart says I should receive a signal and the alert values indicates I should receive a signal.  I ...
0
votes
1
answer
137
views
asked 4 years ago by
Category: Strategy Guide
Hi -   Is it possible to code up a conditional order to sell 1/2 the position (1/2 of the Buy_To_Open tradeSize) when price crosses above an EMA then then sell the rest of the position when  another condition is true (MACD Cross)? I've watched y...
1
vote
2
answers
309
views
asked 4 years ago by
Category: Strategy Guide
Is there a way to manually (programatically) call addOrder to create orders. I have a script which creates an order based on few variables. Right now I can use it as part of a strategy but I need to run this script (and create orders) on live chart w...
0
votes
1
answer
138
views
asked 4 years ago by
Category: Watch Lists
Here is what i have so far Some on my WL registered properly, others not Thanks for any assistance   input builtInPeriod = aggregationPeriod.DAY; input periodsBack = 1; Def high = close(period = aggregationPeriod.MONTH)[periodsBack]; def CrossAb...
0
votes
1
answer
164
views
asked 4 years ago by
Category: Chart Studies
Hi Pete! You previously helped me to write some code to track the intraday high until a moving average crosses VWAP. I would like to plot individual horizontal lines of support whenever there is a breakout candle that closes above the previous high t...
1
vote
1
answer
38
views
asked 4 years ago by
Category: Chart Studies
Hi Pete, the within reserved word only functions with an integer or length. Do you think it would be possible to write an expression that would achieve the same results as the within function while using a variable in place of an integer or length? T...
0
votes
1
answer
116
views
asked 4 years ago by
Thank you!
0
votes
1
answer
177
views
asked 4 years ago by
Category: Watch Lists
I'm having an issue where it seems like AssignBackgroundColor isn't checking the current value of a plot. The line above it uses AssignColorValue, and works as expected. The goal is to have the column be colored orange if the criteria of the if state...
0
votes
1
answer
152
views
asked 4 years ago by
Category: Strategy Guide
Hello Pete, I am backtesting a strategy using ThinkorSwim. The strategy is such that when a condition is satisfied at the open of the current bar (period), a buy order is placed at the same time. When the strategy is inspected visually, the graph sho...