close position w trendline
Created at 16 Oct 2021, 19:13
R.
close position w trendline
16 Oct 2021, 19:13
hi, does anyone know how to automatically close a position after it crosses a trendline?
method i use:
Chart.DrawTrendLine("TrendLine 30", x1, y1, x2, y2, Color.Blue);
thanks in advance!
amusleh
18 Oct 2021, 09:04
Hi,
You can use ChartTrendLine CalculateY method, this will give you the price of trend line based on x axis of chart (bar index or time).
Here is an example:
@amusleh