Search code examples
mql5

OBJ_FIBO: ObjectGetValueByTime-alternative?


I would like my MQL5 EA to read the prices of a fibonacci object's retracement levels (assuming the same EA created this very fibo object before). Unfortunately, ObjectGetValueByTime doesn't work for fibonaccis. Is there another way to do it?


Solution

  • simply get the two kep points by ObjectGetDouble() and then compute the levels (0.618, 1.618 etc) yourself - more reliable and it is faster then getting those values from the chart