RenatoLueth:
Hallo,
i try to create EA to draw manually trendlines between high and low prices from candles.
The coordinates comes from left mouse click.
How can i find the nearest candle-high or low, to snap the line on the candle?
Thanks for replys
Renato
use:
long time;
double price;
int w;
ChartXYToTimePrice(0, int(lparam), int(dparam), w, time, price);
under the OnChartEvent, then search the nearest appearance of time in your copyrates-table. Result is your candle.

Sie verpassen Handelsmöglichkeiten:
- Freie Handelsapplikationen
- Über 8.000 Signale zum Kopieren
- Wirtschaftsnachrichten für die Lage an den Finanzmärkte
Registrierung
Einloggen
Sie stimmen der Website-Richtlinie und den Nutzungsbedingungen zu.
Wenn Sie kein Benutzerkonto haben, registrieren Sie sich
Hallo,
i try to create EA to draw manually trendlines between high and low prices from candles.
The coordinates comes from left mouse click.
How can i find the nearest candle-high or low, to snap the line on the candle?
Thanks for replys
Renato