Can someone take a look at this line of code and let me know what's wrong.
I can get the rectangle to draw but when I add parameters to change fill to red and opacity to '2', the code does not compile.
This works:
DrawRectangle("My rectangle" + CurrentBar, 0, EMA(13)[0], -3, EMA(13)[0] + RectangleHeight * TickSize, Color.Red);
But when I add parameters as per DrawRectangle syntax for red areaColor and 2 areaOpacity, it does not compile
DrawRectangle("My rectangle" + CurrentBar, 0, EMA(13)[0], -3, EMA(13)[0] + RectangleHeight * TickSize, Color.Red, Color.Red, 2);
The compile error returned is "No overload for method "DrawRectangle" takes 8 arguments."
Thanks in advance.
Comment