Super newbie here.
I'm trying to access the value of the current ATR in my Strategy. Here's a simplified/trimmed snippet of my code:
private Bollinger Bollinger1; private ATR ATR1; else if (State == State.DataLoaded) { Bollinger1 = Bollinger(Close, BBStdDev, Convert.ToInt32(BBLength)); ATR1 = ATR(14); Print(ATR1); SetProfitTarget(@"GoLong", CalculationMode.Price, (Close[0] + 40) ); // Set by Strategy Builder SetStopLoss(@"GoLong", CalculationMode.Price, (Close[0] - 10) , false); // Set by Strategy Builder }
But the Print line is producing this in my Output window:
Thank you,
Jamie
Comment