read price of a newly drawn Arrow and export to TXT ?

 
Hi,

I'm wondering if in MT4 I could do this:

Use 3 kinds of Arrows, meaning buy,sell,close. Everytime I draw an arrow in the chart, an indictor or script read this arrow's price and arrow type, and then export to a TXT or XLS file adding a new line, including price and arrow type.

Is it possible?

Thanks.
 
Of course. Just do it.
 
LOL. But I don't know which function could read arrow price.
 
"MQL4: ObjectGet"

double price=ObjectGet(arrow_name,OBJPROP_PRICE1);



Welcome to MQL4.COMmunity

 
Thanks for fast response.
The question is: I don't know the arrow name --- I just draw one arrow on the chart, and then another, and more .... the name will be random. So the indicator should find it out as soon as a new arrow is created.
 
Haha, let me see if ObjectTotal and ObjectName could help ...
Reason: