PDA

View Full Version : Protection Level


goldfly
06-08-2007, 04:04 PM
When I compile.....

This works:
double upperBoll = BollingerMine(2, 25).Upper[0];


This doesn't:
double LSMA = LinReg(25).y[0];

It says the indicator LinReg.y is inaccessible due to its protection level.

But it looks the same as the bollinger

Help????

NinjaTrader_Ray
06-08-2007, 04:20 PM
The syntax is incorrect. It should be:

double LSMA = LinReg(25)[0];

goldfly
06-09-2007, 11:30 AM
I see. Got it. Thanks.