
0
Answered
Draw a DOT under or above a candle _ Delta indicator
Hi,
I want to add a DOT, red o green when de Delta indicator have a Candle Red or Green.
Could you help me to real de Delta indicator by c# source code anda and a Dot in the chart?
I guess I have to create a new instance
readonly Delta _delta = new Delta();
But how I read the values?
Thank you.
Regards,
Natalia
Customer support service by UserEcho
Here is article about receiving data from other indicators https://support.atas.net/en/knowledge-bases/46/articles/24940-building-an-indicator-on-the-basis-of-other-indicators
To draw dot you need to use ValueDataSeries with type=Dots https://support.atas.net/ru/knowledge-bases/46/articles/24944-valuedataseries-chislovyie-dannyie
protected override void OnCalculate(int bar, decimal value)
{
var candle = GetCandle(bar);
if (ctrlSetup.IsUp(candle))
{
OpenPosition(OrderDirections.Buy);
}
else
{
OpenPosition(OrderDirections.Short);
}
}
Regards,