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


