I am trying to implement the following from within the variables section and it is throwing an error.
private double[] test = SMA(fast)[0];
private double testCurrentBar = test[1];
Then in my code I want to do something like:
if (testCurrentBar > 0)
---Note---
I am not really interested in SMA, rather any indicator and getting the value of the indicator for the current bar, last bar, bars back, etc.
I'm just tired and it's not clicking, if anyone could lend a hand it would be appreciated.
Comment