Questions (2386)

Votes
Answers
Views
Question
0
votes
1
answer
182
views
asked 5 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
146
views
asked 5 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
462
views
asked 5 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
181
views
asked 5 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
196
views
asked 5 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
76
views
asked 5 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
151
views
asked 5 years ago by
Thank you!
0
votes
1
answer
217
views
asked 5 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
187
views
asked 5 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...
0
votes
1
answer
68
views
asked 5 years ago by
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