how to detect arrow drawn on chart?
phy:
for(int i = 0; i < ObjectsTotal(); i++){
string name = ObjectName(i);
if(ObjectType(name) == OBJ_ARROW){
if(ObjectGet(name, OBJPROP_COLOR) == Red){
GlobalVariableSet("FoundRedArrow", 1);
}
}
}
does not work.
a red arrow is drawn, but no object appears in object list, hence - no detection.
zevbn:
does not work.
a red arrow is drawn, but no object appears in object list, hence - no detection.
The solution is to search the buffers! (there are only 8 of them, so it is a breath)
i have a ex4 indicator that generates signals.
im wondering if there is a way to scan the curren charts for red or blue arrows drawn by the indicator, and send a 0 and 1 respectively to another EA im writing.