PrTester
04-30-2007, 04:46 PM
Is there a way to access the High[0] value in a milti time frame strategy.
Ex.
High[0] - 15min ==> ?
High[0] -30min ==>?
NinjaTrader_Dierk
04-30-2007, 04:55 PM
High[0] accesses the high of the current bar on the current series
High[1] accesses the high of 1 bar back on the current series
High[2] accesses the high of 2 bars back on the current series
etc.
Highs[0][0] accesses the high of the current bar on the first series
Highs[0][1] accesses the high of 1 bar back on the first series
Highs[0][2] accesses the high of 2 bars back on the first series
etc.
Highs[1][0] accesses the high of the current bar on the second series
Highs[1][1] accesses the high of 1 bar back on the second series
Highs[1][2] accesses the high of 2 bars back on the second series
etc.
PrTester
05-02-2007, 01:04 AM
Dierk,
Is there a way to access Indicator value in a TimeFrame,
EX
If I want to access theD value of STo in another Time Frame
Stochastic(BarsArray[1], 5, 20, 5)[0].D;
or
Stochastic.D(BarsArray[1], 5, 20, 5)[0];
or
Stochastic(BarsArray[1].D, 5, 20, 5)[0];
Thanks in advance.
NinjaTrader_Ray
05-02-2007, 01:13 AM
It would be this:
Stochastic(BarsArray[1], 5, 20, 5).D[0];
Ray