I'm new to this forum and I need help with an indicator I am building.
I have attached the .mq4 file and a picture of the chart.
I am new to mql programming and this is my first attempt at a simple indicator.
My question is, how do I get the trend lines to move forward in time?
This simple indicator draws four trendlines on the chart, and should move
forward with each new bar. Right now it only paints when added to the chart. If I delete the indicator and re-apply, it paints correctly. If I leave it on the chart, it won't move forward. What do I need to add to the code so the four trendlines are re-painted with each new bar, and the old ones deleted. (It is acting more like a script that only runs once when applied.)
It should use the two previous bars prior to the current active bar.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi,
I'm new to this forum and I need help with an indicator I am building.
I have attached the .mq4 file and a picture of the chart.
I am new to mql programming and this is my first attempt at a simple indicator.
My question is, how do I get the trend lines to move forward in time?
This simple indicator draws four trendlines on the chart, and should move
forward with each new bar. Right now it only paints when added to the chart. If I delete the indicator and re-apply, it paints correctly. If I leave it on the chart, it won't move forward. What do I need to add to the code so the four trendlines are re-painted with each new bar, and the old ones deleted. (It is acting more like a script that only runs once when applied.)
It should use the two previous bars prior to the current active bar.
Thanks, Brad