I use the following code to get values from the fibo lines with my EA:
How do I differentiate it from the Fibo TimeZones tool?
Inserted Code
for (int object=0; object<ObjectsTotal(); object++) { // for each object on the chart...... string objname = ObjectName(object); // get the name of the object // once you have the name, you can use ObjectGet() to retrieve all of the other properties...... if (ObjectType(objname) == OBJ_FIBO) { datetime fibtime1 = ObjectGet(objname,OBJPROP_TIME1); // swing high date/time datetime fibtime2 = ObjectGet(objname,OBJPROP_TIME2); // swing low date/time double fibprice1 = ObjectGet(objname,OBJPROP_PRICE1); // swing high price double fibprice2 = ObjectGet(objname,OBJPROP_PRICE2); // swing low price } }
How do I differentiate it from the Fibo TimeZones tool?