- Questions
- Strategy Guide
Votes
Answers
Views
Question
0
1
65
asked 2 years ago by Andrew Millson
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
1
167
asked 2 years ago by Marty Francom
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
1
81
asked 2 years ago by Steven Castro
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
1
46
asked 2 years ago by Rey T
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
1
143
asked 2 years ago by Erik Linter
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
1
90
asked 3 years ago by Prakash
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
2
168
asked 3 years ago by Raviraj Hiremath
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
1
90
asked 3 years ago by Ron Reuther
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
1
250
asked 3 years ago by James Foster
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
1
200
asked 3 years ago by Chris Formen
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...