Strategy Guide (193)

Votes
Answers
Views
Question
0
votes
1
answer
45
views
asked 1 year ago by
Category: Strategy Guide
Hi Pete, in a strategy is there a way to dynamically adjust tradeSize in the AddOrder function to buy as many shares/contracts as possible (or a percentage of the maximum possible) for each new order, based on net liquidity? And then sell the same nu...
0
votes
1
answer
135
views
asked 1 year ago by
Category: Strategy Guide
I have been able to create a ThinkScript Buy-Sell Study . It is used to create Conditional Orders.  Nice thing about this study is that it allows me to view how the Buy Sell routine would have performed on the Historical Chart. The upper Chart shows ...
0
votes
1
answer
53
views
asked 1 year ago by
Category: Strategy Guide
Hello Pete: Had a question on Aggregation period. Below link shows that Tos support Tick aggregation period, but when I place the following condition in the conditional area then I get lots of reds and script isn't valid, also by default on top left ...
0
votes
1
answer
30
views
asked 2 years ago by
Category: Strategy Guide
hello Pete . I don't know how to make a strategy to buy 3 strikes otm calendar in case of a 3 moving average cross over. thanks for help.
0
votes
1
answer
114
views
asked 2 years ago by
Category: Strategy Guide
the strat below exits after RSI2 crosses above 50.  instead, i'd like the strategy to exit after a user-specified number of days, 7, for example.  how would you do that?  thanks! input price = close; input length = 2; input rsiAverageType = AverageTy...
0
votes
1
answer
73
views
asked 2 years ago by
Category: Strategy Guide
Is it possible to determine Intraday volume POC for a given day programmatically? Basically want to input Symbol and Date and get the POC.
1
vote
2
answers
134
views
asked 2 years ago by
Category: Strategy Guide
THanks Pete for your reply, the code for Pop out the box works fine.   Is it possible to Auto trade with conditons( below study) for /ES? this would be on 5 min Timeframe MAXC4.1 / MINC4.1 < 1.01 and C > MAXH4.1 and H > L   enter t...
0
votes
1
answer
67
views
asked 2 years ago by
Category: Strategy Guide
Hi Pete, I have written a simple back testing program for my strategy and I am now stuck. The program works fine, except that if an additional buy condition occurs before my sell condition is triggered, it just ignores the additional sell condition (...
0
votes
1
answer
223
views
asked 2 years ago by
Category: Strategy Guide
Hello Pete, Thank you for everything that you do. I have been reading through your site and have learned a lot. Really appreciate it. A quick question. I am trying to edit a moving average crossover backtesting strategy where the position is sold whe...
0
votes
1
answer
146
views
asked 2 years ago by
Category: Strategy Guide
I have two criteria that are part of the same strategy. They are similar but different enough that I have defined two separate 'def' in my strategy code. One entry is often "better" than the other ('A' is better than 'B'), but in the right circumstan...