check button state does not recognize me when the button is pressed.
-
I want to create a button to draw a fibo, but I can't get the block
check button state recognizes me when the button is pressed.
To check it, this example changes the color of the screen when the button is pressed.
but it doesn't. -
here is the example
-
@cesardefez you must select the object before checking it.
Here's working example of a button
https://fxdreema.com/shared/4LWM6r3Ac -
@roar Hi, it still doesn't work for me. I'll give you the link of the project.
the block mouse clicked on objet, I have copied it from your example, as I cannot find it in fxdreema.
Can you see where it is and failed?
thank you very much
https://fxdreema.com/shared/28aB615Xd -
@cesardefez the mouse click must be in "on Chart" tab
-
I finally got to know how the buttons work. thank you very very much
-
@cesardefez can you show the project please. i am trying to do a similar project
-
Hello tradeandeam , here you have the lin of how to draw a button that draws a fibo.
https://fxdreema.com/shared/WG1GOa55 -
@cesardefez Are you sure block 5 is correct? You are selecting the exact same candles for price 1 and price 2.
-
@ l-andorrà yes,.
what you do in this block is determine the highest and lowest price of the last 50 candles. I do not care what candle this is, if at 1 or 50. 50 is the range of candles where you look for the high and low.
it works for me:

-
@cesardefez AFAIK that is not the way to configure the fibo in fxDreema. That is not my field of expertise but I would bet that is the problem. Did you try to specify candle 1 on top and candle 50 at the bottom only?
-
Hi, I don't understand what you are trying to share. I do not see that the generation of the fibo is creating any problem for me, it already detects the button and it generates the fibo,. I attach 3 different graphics where it is generated.
in fact the problem that I have in my project and I have it in another thread (https://fxdreema.com/forum/topic/10922/ejecutar-codigo-al-deselecionar-objet0/15) is that I cannot detect when the fibo is deselected, then Turn ON blocks.


-
@cesardefez In that case I cannot help, sorry. I have to admit fibos and buttons are not my field of expertise :(. I hope someone can help.