Canvas Class

 

Hi,


I make this simple code to display arrow on chart :

canvas.CreateBitmap(0,0, "arrow01", Time[0], High[0], 50, 50, COLOR_FORMAT_ARGB_RAW);

canvas.LoadFromFile("ObjBuy.bmp");

canvas.Update();


The arrow01 object display correctly. For having two arrows on my chart, I use this code :


canvas.CreateBitmap(0,0, "arrow01", Time[0], High[0], 50, 50, COLOR_FORMAT_ARGB_RAW);

canvas.LoadFromFile("ObjBuy.bmp");

canvas.CreateBitmap(0,0, "arrow02", Time[10], High[10], 50, 50, COLOR_FORMAT_ARGB_RAW);

canvas.LoadFromFile("ObjSell.bmp");

canvas.Update();


Only the second arrow appears. Is something wrong in my code ?


Additionnal question : How set anchor points using canvas class ?


Thank you !

Ghen.

Reason: