Seattle, USA
Experience: Intermediate
Platform: NinjaTrader / ThinkOrSwim
Broker: NinjaTrader / TDAmeritrade
Trading: Futures, Equities
Posts: 35 since Jul 2016
Thanks Given: 16
Thanks Received: 34
|
When a new study uses an existing study as the data input instead of price, how is that coded? Is there a reference guide with code examples for this somewhere in TOS docs?
For example, how does a LinRegCurve use a CCI input instead of price?
From the standard study list, the LinRegCurve code is:
input displace = 0;
input length = 9;
input price = close;
plot LinReg = Inertia(price[-displace], length);
LinReg.setDefaultColor(GetColor(1));
To replace the price data input with a CCI(14), how is the code changed?
Would only the "plot" line need to be modified? For example: plot LinReg = Inertia(CCI(), 14);
Thanks!
|