Forum: NinjaTrader
June 28th, 2022, 10:50 AM
|
Replies: 10
Views: 2,439
Moved the s out of the loop.
double s =...
Moved the s out of the loop.
double s = 0;
for (int idx=0;idx<Length;idx++)//14
{
// _data[idx] = _c[0] > _o[idx] ? 1 : _c[0] < _o[idx] ? -1 : 0;
// _data[idx] = _c[0]...
|
Forum: NinjaTrader
June 28th, 2022, 09:55 AM
|
Replies: 10
Views: 2,439
EliteCamper,
Thanks for your input, I agree...
EliteCamper,
Thanks for your input, I agree since I'm thinking Open and Close are already a series. In any case,
I played around with it some more. See code snippet and screenshot.
...
|
Forum: NinjaTrader
June 28th, 2022, 08:56 AM
|
Replies: 10
Views: 2,439
Thanks elitecamper,
I made the o and c as...
Thanks elitecamper,
I made the o and c as DataSeries in the front end but still getting the same plot results.
I guess I still need to figure out how TOS "fold" gets translated to NT
...
|
Forum: NinjaTrader
June 27th, 2022, 10:43 AM
|
Replies: 10
Views: 2,439
Hello,
I'm trying to make sense of the fold...
Hello,
I'm trying to make sense of the fold loop in TOS thinkscript and convert to Ninjascript.
Here's a snippet of the TOS code (Mobius' TMO code):
# TMO ((T)rue (M)omentum (O)scilator)...
|