♥ 0 |
Hi there, I implemented a strategy in thinkorswim and backtested it using papermoney. Psrt of the strategy is using the HeikinAshiDiff study (which itself uses ComoundValue). I have read that thinkorswim does not allow the use of recursive or CompundValue in conditional orders, but it doesnt explain why that is, and if there is a workaround.
What I want to get is this: def haclose = (open + high + low + close) / 4; haopen just spits out a value, and I would like to use this value as part of the conditional order. Is that somewhat possible? It does work in strategies and P/L floating.
Marked as spam
|
Of course the value for haopen also depends on the time frame being used
Thanks Pete for the reply, much appreciated. I did search for recursion, but the threads I found did not really go into why TOS doesnt allow to use recursion in study alerts or conditional orders. If I have a certain timeframe open (lets say 10min intraday) and the study (including recursion as outlined above) gives me a tick as output, it seems very easy to transform this into an alarm or conditional order, but still TOS wont allow it. Just trying to understand there reasoning behind this.
Related, are there other brokers which allow this kind of recursion for alerts and conditional orders?
Many thanks.
There is no why. Thinkorswim has not enabled it for Study Alerts or Conditional order. Period. You will need to take this up with them if you want more information.