I know there's a simple answer, and I tried KB but didn't find anything. I'm new . . .
for (i=1;i<=5;i++) {
debugPrintln (arLow[i]);
drawShapeAbsolute (-i, arLow[i], Shape.SQUARE, null, Color.red, Shape.BOTTOM)
}
This script only draws one square for bar -5 at the correct price for this bar. The debug line is in to check the values in the array, and they are all correct and all print in the formula output window. Why am I only getting one sqaure? Thanks.
for (i=1;i<=5;i++) {
debugPrintln (arLow[i]);
drawShapeAbsolute (-i, arLow[i], Shape.SQUARE, null, Color.red, Shape.BOTTOM)
}
This script only draws one square for bar -5 at the correct price for this bar. The debug line is in to check the values in the array, and they are all correct and all print in the formula output window. Why am I only getting one sqaure? Thanks.
Comment