Forum

How to create a script which will draw a horizontal line when triggered ?

Hello, I'm new to mql5. I'm doing this as a practice project. Is it possible to create a script, when triggered it'll draw 1. A horizontal line at the Y axis value of the crosshair and 2. It draws only on the current time frame

How to hide MA line from chart on button click

Hello, I'm new to mql5. I'm doing this as a practice project. I need help on, how to hide the MA line from chart when I click on the button which I've implemented to my custom indicator. I tried by turning the MA line to the same color as the chart background color . But the line is still showing on