Strategy Guide (193)

Votes
Answers
Views
Question
0
votes
1
answer
289
views
asked 4 years ago by
Category: Strategy Guide
Hello, I would like to autotrade supertrend in thinkorswim. input AtrMult = 1.0; input nATR = 4; input AvgType = AverageType.HULL; input PaintBars = yes; def ATR = MovingAverage(AvgType, TrueRange(high, close, low), nATR); def UP = HL2 + (AtrMult * A...
0
votes
1
answer
606
views
asked 4 years ago by
Category: Strategy Guide
Hi Pete. First I just want to offer a sincere thank you for this great resource, for your generosity, and for all you do for the community. You are to be commended sir. Now on to my question. I'm in the process of learning how to code while at the sa...
0
votes
1
answer
85
views
asked 4 years ago by
Category: Strategy Guide
Hi Pete, Is it possible to write a VWAP strategy on the chart when a 5-minute bar closes above/below it? It would also be nice to show the return % in a lower study on an exit when a bar closes below the previous bar on a bullish cross and vice versa...
0
votes
1
answer
283
views
asked 4 years ago by
Category: Strategy Guide
Is it possible to create an order entry or close to trigger when a bar/candle "closes"above a certain price on that time-frame? Not if it hits a certain price but actually closes above/below the set price....Thanks
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...
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...
0
votes
1
answer
432
views
asked 4 years ago by
Category: Strategy Guide
Hi - I am working on a stategy that buys the3 first green Heikin Ashi candle after X red candles in a row.  Right now the definitions I have scripted are not correctly identifying the candle colors (current  -> want green and prior 1 -&g...
0
votes
1
answer
99
views
asked 4 years ago by
Category: Strategy Guide
Pete, could you show how to enter an intraday conditional buy stop order at high of day when price crosses bollinger high within 2 previous bars after 12 pm est?
0
votes
1
answer
43
views
asked 4 years ago by
Category: Strategy Guide
Hello, Say I have multiple purchases of a stock over the day, at different prices and volumes. Can thinkscript strategies reference my weighted average position, as part of how it makes decisions for future entries/exits? (for example - averaging dow...
0
votes
1
answer
170
views
asked 4 years ago by
Category: Strategy Guide
Sir, I used your code from another post to attempt to create a strategy based on Heiken Ashi.   I would like to buy to open on the second green bar, and sell to close on the first following red bar.  And conversely to sell to open on the second red b...