Questions:
1) Can I use Negative Indexing? (not [1] or [0] but [-1] or [-i])
2) Can I use Double.NaN for a Double field to not plot a value? (I do not want a "0"...I want a NaN/Null)
All my code was working correctly until I added this section of code below. After adding this I get no Compile errors....but nothing draws/calculates on my indicator any more.
Any Answers to my questions and any Suggestions?
if (HighPoint[0] > 0 && Offset[0] > 1) {
for (int i = 1; i < Offset[0]; i++) {
tH[0] = PriceH[0];
if (!double.IsNaN(tH[0]) && !NewState[-i]) {
if (NewMax[-i] && PriceH[-i] == tH[0]) {
LastH[0] = double.NaN;
} else {
LastH[0] = tH[0];
}
} else {
LastH[0] = double.NaN;
}
}
} else {
LastH[0] = double.NaN;
}

Comment