Download MetaTrader 5
To add comments, please log in or register
Do you need private account monitoring? The Signals will provide you one!
WorstCase
9
WorstCase 2015.03.27 19:43 

Hello,

I want to insert a few arrows "Stop Sign" in the Chart and afterwards I want to get the X-Position from the arrows back with the command

ObjectGetValueByShift("arrow_Name",i)

while i is the arrow (Shift) Position in the Chart.

But that doesn't work...the value is always zero....

can you help me?

The idea is: I want to mark some candles for further calculation in an EA.

Keith Watford
Moderator
7990
Keith Watford 2015.03.27 21:13  

To get the price value

ObjectGetDouble(0,"arrow_Name",OBJPROP_PRICE)

To get the Time value

ObjectGetInteger(0,"arrow_Name",OBJPROP_TIME)

 You can use iBarShift with the Time to find the bar that the arrow is on

/
To add comments, please log in or register