"Hardcoded Objects" on stock's important dates

 

Hi All,


I am trying to create "Hardcoded dates" into chart that shows share's important dates etc.

Although, I've managed via the code below manually for one object, I could not managed to move the object automatically to (for example) Low+10 or High+20 points.

(As you see the example below the 5700 number put there manually by me)

If anyone could kindly direct me to right direction, I'll be truly appreciated.


Best Regards

John


ObjectsDeleteAll();

ObjectCreate ("ImportantDate",OBJ_TEXT,0,0,0,0,0,0);

ObjectSetText("ImportantDate",CharToStr(164),10,"Wingdings",Gold);

ObjectMove ("ImportantDate", 0, D'2008.08.15 10:15', 5700 );