Hi,
How do I draw trendlines with my EA?
What is the code to draw a trendline such as from the 20th previous bar to the recent previous bar?
Do I have to rename the trendline for the EA to read? If so, how can I code the EA to rename the trendline after it is drawn?
Also, how can I compare the previous candle close to see if it is above or below the trendline?
How do I draw trendlines with my EA?
What is the code to draw a trendline such as from the 20th previous bar to the recent previous bar?
Do I have to rename the trendline for the EA to read? If so, how can I code the EA to rename the trendline after it is drawn?
Also, how can I compare the previous candle close to see if it is above or below the trendline?