Drawtext at bottom of screen
Created at 13 Apr 2020, 11:09
NG
Drawtext at bottom of screen
13 Apr 2020, 11:09
hi Pangiotis,
i want to make a text to bottom of screen, can you help me? my code is below:
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo
{
[Indicator("test", IsOverlay = true, AccessRights = AccessRights.None)]
public class test : Indicator
{
protected override void Initialize()
{
}
public override void Calculate(int index)
{
Chart.DrawVerticalLine("line 9", index - 8, Color.Gray, 1, LineStyle.LinesDots);
Chart.DrawVerticalLine("line 17", index - 16, Color.Gray, 1, LineStyle.LinesDots);
Chart.DrawText("9", "9", index - 8, MarketSeries.High[index], Color.White);
Chart.DrawText("17", "17", index - 16, MarketSeries.High[index], Color.White);
}
}
}
PanagiotisCharalampous
13 Apr 2020, 11:44
Hi there,
Check the example below
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous