Moving from mql4 to mql5 but can't even draw a rectangle,
ObjectCreate(0, "Rectangle", OBJ_RECTANGLE, 0, time, 1, time, 2)
just to get going but nothing is showing.
Here's the full code:
time is not indexed as series by default with mql5.
Add a line before ObjectCreate() :
Also I suppose price between 1 and 2 are visible on your chart.
Finally ObjectCreate() is a function, you should always check the return value.
Thanks, that worked for the rectangle.
Seems the same or buffers too