Arrows as Chart Objects

Created at 01 Feb 2014, 08:01
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!
XM

XMarshall

Joined 01.02.2014

Arrows as Chart Objects
01 Feb 2014, 08:01


Hello,

Does the the cAlgo support Arrows to be drawn as Chart Objects, from inside an Indicator?

I only saw API from ChartObjects implementing lines only.

 


@XMarshall
Replies

Spotware
03 Feb 2014, 11:33

cAlgo doesn't support arrows yet. Please vote for your favorite features: vote.spotware.com


@Spotware

Elogos
09 Feb 2014, 03:18

XMarshall it is already covered with draw text at the moment.

 ChartObjects.DrawText(String.Format("Arrow{0}", index), "▲", index, MarketSeries.Low[index], VerticalAlignment.Center, HorizontalAlignment.Center, Colors.Green);

Open up CharMap and lookup the extended character ranges.

Since cTrader supports these ranges there isn't need for stuff like wingdings.

Some constants for help:

        private const string StraightUp = "↑";
        private const string StraightDown = "↓";
        private const string Sideways = "→";
        private const string DiagonalUP = "↗";
        private const string DiagonalDown = "↘";

 


@Elogos