Why do I get the wrong fibo price value?
-
I'm testing how fibo works in fxDreema and I'm afraid I'm doing something wrong at a very basic level. I want to catch the price at 61.8% and I created this easy project just for testing:
https://fxdreema.com/shared/z68Rg8Wwe
However, I don't know why I only get the 0% level no matter what. Can someone please tell me what am I missing?

-
@l-andorrà No matter what I do I get the price for level 0 and never for level 4 as requested. Any suggestion? May be this a bug?
-
@l-andorrà in my opinion, to position fibonacci in the correct way we have to put the oldest candles as the first parameter and then the new ones,later in a buy market we look for the low of the oldest candle in the first parameter and the high of the younger one in the second,viceversa for a sell market.Said this, the function that should return fibonacci level 4 (61.8) doesn't work (hope only on mt4) because if we replace in the code "retval=(ObjectGetDouble(0,name,OBJPROP_LEVELVALUE,FiboLevelID)*(FiboDiff))+Fibo0;" at line 1523 with "retval=0.618*FiboDiff+Fibo0;" it work fine.I hope I was helpful.
-
Hey mate,
under "Specific Properties" you define the Fib levels ("Levels comma separated").
For your purpose you would need to put in something like 0.618 and 0 to get two price levels.And you have to know that the first level has the name "0" not "1"

-
Thank you to both. I will follow your suggestions.
-
@umbrellamaker said in Why do I get the wrong fibo price value?:
Hey mate,
under "Specific Properties" you define the Fib levels ("Levels comma separated").
For your purpose you would need to put in something like 0.618 and 0 to get two price levels.And you have to know that the first level has the name "0" not "1"

I confirm I managed to define the level under 'specific properties. But what it does is just plotting that level of the retracement. The price by level showed is still wrong. Apparently miki is right. the whole function doesn't work. I will tell it to the admin.
-
@l-andorrà I tried following umbrellamaker's suggestions. By doing so the fibonacci levels are correct but they work well only with the fibonacci sell with the buy no, even if it is correctly placed on the chart. It seems to only work if the price of Fibo100 is higher than Fibo0, but for me it is wrong in a buy market as we want the percentage of a retracement.
https://fxdreema.com/shared/bldJkleQc mt5.
https://fxdreema.com/shared/Tal8RktPb mt4.
I went crazy 2 days but couldn't get it to work. -
@miki Thank you for your time, man.
I will take a look at it. -
@miki I can confirm levels are correctly identified when the fibo object is manually created. The problem is when it is drawn by the block. I shared this to the admin for him to fix it.
-
@l-andorrà hopefully soon. Good luck for your new project

-
Hola @l-andorrà, he probado tu fibo y es correcto, no sale el valor del nivel 4, te lo comento porque yo creé un fibo automático y cuando lo dibuja pasa lo mismo que a ti, pero en cuanto se mueve se actualiza y dá el valor correcto, en el fibo que tenía hecho me funciona correctamente el nivel 4 de Fibo, saludos.

Esto pasa cuando pongo el backtesting a funcionar, el valor se actualiza correctamente, en el fibonacci que has creado, pongo el backtesting a funcionar y no sale el valor nivel 4.

-
@nillav Interesante. El problema es cuando pasa a cuenta demo o rel. Parece ser que sigue sin funcionar. Yo no lo he probado en backtest, sólo en demo. ¿Lo has probado tu en demo? ¿Cómo se puede mover entonces si no es esperando la aparición de otra barra?
-
@l-andorrà Si, lo acabo de probar en mercado real y funciona correctamente
-
@l-andorrà Encontré el problema en tu Fibonacci, !!! si funciona ¡¡¡, lo que pasa es que das el valor del nivel 4 a la variable "value_fibo", pero no das el valor de tu fibonacci "myfibo", para ello hay que modificarlo y darle el nombre de tu fibo.


Se puede ahorrar el bloque de modificar variables y sacar el valor directamente en el comentario
https://fxdreema.com/shared/M8fX56Y1csaludos
-
@nillav Voy a probarlo para comprobar que no sea problema de mi plataforma. Muchas gracias por el consejo y el tiempo dedicados!!!
