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

Forex Trader
114547
Forex Trader  
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.
Forex Trader
114547
Forex Trader  
Of course. Just do it.
Forex Trader
114547
Forex Trader  
LOL. But I don't know which function could read arrow price.
Forex Trader
114547
Forex Trader  
"MQL4: ObjectGet"

double price=ObjectGet(arrow_name,OBJPROP_PRICE1);



Welcome to MQL4.COMmunity

Forex Trader
114547
Forex Trader  
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.
Forex Trader
114547
Forex Trader  
Haha, let me see if ObjectTotal and ObjectName could help ...