Hello coders. Please help me understand how to draw a line joining the 10th candle close price with the last candle close price in an EA. Thank you in advance.
Your question is not entirely clear. Can you draw your question as a picture?
Your question is not entirely clear. Can you draw your question as a picture?
If the current close is higher than the close ten candles ago, there is no way that the connecting line doesn't have a positive gradient, too. No need to draw a line, just compare the prices. If you insist on drawing a line, simply create an OBJ_TREND object.
If the current close is higher than the close ten candles ago, there is no way that the connecting line doesn't have a positive gradient, too. No need to draw a line, just compare the prices. If you insist on drawing a line, simply create an OBJ_TREND object .
The indicator on graphic objects is very bad. Indicator Drawing Styles: Indicator Styles in Examples

- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use