Get the position from arrows

Back to topics list To post a new topic, please log in or register
avatar
1
RobotTrader 2015.03.27 20: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.



avatar
Moderator
3404
GumRai 2015.03.27 22: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

Back to topics list  

To add comments, please log in or register