Questions (2392)

Votes
Answers
Views
Question
1
vote
2
answers
570
views
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
220
views
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
219
views
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
100
views
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
161
views
Thank you!
0
votes
1
answer
247
views
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
201
views
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...
0
votes
1
answer
96
views
Category: Chart Studies
Hello, I wanted to know if you could help me create a study that highlights rows in scanner/watchlist IF: the %change on the day is greater THEN: 30% highlight row to yellow
0
votes
1
answer
117
views
Category: Stock Scanners
How can I setup the following scan A=[Last Price] - [Low of day] B=[high price of day] > A*2 EG Last price [25] -[20]= 5 B= [high price of day] > 5*2=$35 So If stock last price is $25.00 and the low of the day is $20.00 The Scanner  will show m...
0
votes
1
answer
3276
views
Category: Chart Studies
Hello again.   I have made a cool chart study that uses the Assign color Feature and am practicing setting up sound alerts as well as chart bubbles.     Ive assigned color to wicking candles that cross SMA and VWAP.   Thing is theres so many bubbles!...