KA
Topics
Forum Topics not found
Replies
Kate
11 Jun 2013, 15:03
Hi, as far as I know, native support for color parameters is not implemented. You can check workaround that I've done here: /algos/indicators/show/289
@Kate
Kate
09 Mar 2013, 22:55
RE:
using System; using cAlgo.API; using cAlgo.API.Indicators; namespace cAlgo.Indicators { [Indicator(IsOverlay = true)] public class CandleSize : Indicator { public override void Calculate(int index) { double candleSize = Math.Abs(MarketSeries.Open[index] - MarketSeries.Close[index]); double candleSizePips = Math.Round(candleSize / Symbol.PipSize, 3); ChartObjects.DrawText( index.ToString(), candleSizePips.ToString(), // object name and text index, MarketSeries.High[index], // location VerticalAlignment.Top, HorizontalAlignment.Center); } } }
I think that's it.
@Kate
Kate
13 Jun 2013, 22:59
You can use Print() method:
And then see Log tab in cAlgo (bellow the chart).
@Kate