private double[] MyMatrix = new double[5];
private double MyEntry; MyEntry = Open[0];
I am looking to draw 5 rectangles (one rectangle for each value in MyMatrix) to the right of the current bar. See attached pic of what I am looking to do. The x-axis width of each rectangle needs to be equal to the existing bar widths. The height will be equal to the open price of the current bar (MyEntry) + each value in MyMatrix. Below is my code. What am I doing wrong? I am confused by the ninjascript manual on Draw.Rectangle.
for(i = 0; i < 10; i++) { Draw.Rectangle(this, "MyRectangle", false,CurrentBar + i,MyEntry,CurrentBar + i, MyEntry + MyMatrix[i], Brushes.Blue, Brushes.Blue,50); }
Comment