i see example in forum and in the guide mc.net
Code: Select all
protected override void CalcBar()
{
if (Bars.CurrentBar == 1)
{
ChartPoint top = new ChartPoint(Bars.TimeValue, Bars.HighValue);
ChartPoint bottom = new ChartPoint(Bars.TimeValue, Bars.LowValue);
DrwTrendLine.Create(bottom, top);
DrwArrow.Create(bottom, false);
ITextObject textObj = DrwText.Create(top, "1");
textObj.VStyle = ETextStyleV.Above;
}
}
DateTime datetimelow;
DateTime datetimehigh;
I can not replicate the draw of the trendline...
Here declare 2 variables type DateTime(datetimelow and datetimehigh)
DateTime datetimelow;
DateTime datetimehigh;
if bars.high = 444 (is an example) ====> i want assigned value time and date to variable datetimehigh
if bars.low = 400 (is an example) ====> i want assigned value time and date to variable datetimelow
but i don't understand how can i do it..
someone help me?