DrawF***

Created at 12 Nov 2013, 22:29
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
jeex's avatar

jeex

Joined 18.10.2013

DrawF***
12 Nov 2013, 22:29


I'm really, really bad at making drawings. As a child, as an adult and even as a programmer. Why, oh why, won't my simple robot draw a simpe line. It just doesn't. It won't draw text either.

private void tekenLijnen(int mc, int bc)
{
    ChartObjects.DrawLine("hoog_" + mc.ToString(), mc, MarketSeries.High[mc], bc, MarketSeries.High[mc], Colors.AliceBlue, 2, LineStyle.Solid);
    ChartObjects.DrawLine("laag_" + mc.ToString(), mc, MarketSeries.Low[mc], bc, MarketSeries.Low[mc], Colors.Coral, 2, LineStyle.Solid);
}


What am i doing wrong? The indices mc and bc are close to the latest bar (MarketSeries.Low.Count-1).

Help...


@jeex
Replies

jeex
12 Nov 2013, 22:33

Robot

By the way: does it matter that i'm making a robot that has to draw lines, and not an indicator?


@jeex

jeex
12 Nov 2013, 22:55

Impossible in backtesting

Found the answer: impossible in backtesting. So i just have to trust that it works.

/forum/cbot-support/585


@jeex