Help with the on and off button that draws the scanner on the mt5 chart
-
Please, I need that when pressing the (Off) button it deletes only the scanner and that it does NOT delete everything else that is on the chart
https://fxdreema.com/shared/6NrcmbRacThis EA uses a project shared in the forum as a reference, by pressing the (On) button it draws the trend scanner on the graph and by pressing the (Off) button it deletes said scanner, the problem is that it is deleting everything that is in it. the graph and I need you to delete only the scanner, I know that the project for some is big, I request effective and practical help, to correct this error to whoever wants to do it and thank you very much in advance.
-
I don't fully understand what the scanner is exactly. I see you copied all blocks in the 'on tick' and the 'on chart' tabs. Why is that?
-
Hello friend, this is a trend scanner, which indicates in a corner of the current graph how the direction of the market is in different times. When trying to make it work with 2 buttons, one of (On) to turn on and another of name (Off) to deleting the scanner from the screen turned out that it did not work correctly until I copied it to On Init, On Tick and On Chart in this way, but now the problem is that I need it to only delete the entire scanner from the chart when I press the Off button because when I do it the EA eliminates all the indicators or buttons that are drawn at that moment. If you think it is necessary to make any correction in the way the project is organized, you are free to do so. I am interested in making sure it works well since my intention is add other buttons to turn on and off trend lines, supports and resistances, fibonacci, and the Hi and Lo points of the ZigZag indicator but it does not work because pressing off to delete the scanner results in other things being deleted that should not be


Another error that I don't understand is that I have to press the ON button several times looking in the corners of the button until it works, it is very uncomfortable, since the off button works with a single click but when I have to press off I have to click several times until I find the sensitive point of the button and it acts

-
I'm afraid there is too much custom code to be any helpful. Definitely you need a programmer instead of me, sorry.
-
@l-andorrà Comprendo, amigo, gracias por intetarlo, pero el problema real no necesita codigo personalizado, es mas cuestion de conocimiento de fxdreema
-
Hello friend @JSTAP I hope you are well, please do you think it is possible that you can help me with this problem of my project?
-
Maybe someone else can help me with a solution to this?
-
@DragonZueloTrends El prpblema es que todo ese código personalizado interfiere de una forma u otra con el de fxDreema. La lógica de bloques puede ser correcta desde el punto de vista de fxDreema, pero los cálculos realizados por esos códigos personalizados chocan con los de los bloques de fxDreema.
-
@DragonZueloTrends @l-andorrà is probably correct, and you have lots to dissect, am I right in saying this code comes from miro? To help with this you need to ascertain what blocks are causing the problem, also onchart is a lot longer to work on problems.
