Using markers with indicators
Mark some specific point or set of points on indicator's line
LinesSeries[0].SetMarker(0, Color.Yellow)


Last updated
Was this helpful?
Mark some specific point or set of points on indicator's line
LinesSeries[0].SetMarker(0, Color.Yellow)


Last updated
Was this helpful?
Was this helpful?
LinesSeries[0].SetMarker(0, new IndicatorLineMarker(Color.Yellow, IndicatorLineMarkerIconType.Flag));protected override void OnUpdate(UpdateArgs args){ SetValue(Open()); int amountofBars = 5; if (Count < amountofBars) return; int trendValue = 0; for (int i = 0; i < amountofBars; i++) { if (Close(i) > Open(i)) trendValue += 1; else if (Open(i) > Close(i)) trendValue += -1; } if (trendValue == amountofBars) LinesSeries[0].SetMarker(0, new IndicatorLineMarker(Color.Green, bottomIcon: IndicatorLineMarkerIconType.UpArrow)); else if (trendValue == -amountofBars) LinesSeries[0].SetMarker(0, new IndicatorLineMarker(Color.Red, upperIcon: IndicatorLineMarkerIconType.DownArrow));}