Skip to content

IndicatorBarOutput

interface cAlgo.API Since 5.4

DesktopCLICloud

The interface representing an indicator bars output. Provides properties that allow for accessing various information about a bars output.

Definition

public interface IndicatorBarOutput

Namespace: cAlgo.API · Group: Indicators

Examples

using cAlgo.API;

namespace cAlgo.Robots;

public partial class TestExample : Robot
{
   protected override void OnStart()
   {
       foreach (var chartIndicator in ChartIndicators)
       {
            Print($"Name: {chartIndicator.Name} | | Bar Outputs #: {chartIndicator.BarOutputs.Count}");

            foreach (var barOutput in chartIndicator.BarOutputs)
            {
                Print($"Name: {barOutput.Name}");
            }
       }
   }
}
import clr

clr.AddReference("cAlgo.API")

# Import cAlgo API types
from cAlgo.API import *

# Import trading wrapper functions
from robot_wrapper import *

class Test():
    def on_start(self):
        for chartIndicator in api.ChartIndicators:
            print(f"Name: {chartIndicator.Name} | | Bar Outputs #: {chartIndicator.BarOutputs.Count}")
            for barOutput in chartIndicator.BarOutputs:
                print(f"Name: {barOutput.Name}")
{
  "AccessRights": "None"
}

Properties

Name Description
AreaChartFillColorDesktopCLICloudColor Gets or sets the color of the area chart.
BearFillColorDesktopCLICloudColor Gets or sets the color of the bear candle fill.
BearOutlineColorDesktopCLICloudColor Gets or sets the color of the bear candle or bar outline.
BullFillColorDesktopCLICloudColor Gets or sets the color of the bull candle fill.
BullOutlineColorDesktopCLICloudColor Gets or sets the color of the bull candle or bar outline.
ChartTypeDesktopCLICloudChartType Gets or sets the type of the chart - Bar, Candlesticks, Line or Dots chart.
DotChartColorDesktopCLICloudColor Gets or sets the color of the dot chart.
IsVisibleDesktopCLICloudbool Gets or sets the visibility of a line.
NameDesktopCLICloudstring Gets the name of a line.
TickVolumeColorDesktopCLICloudColor Gets or sets the color of the tick volume bars.

See also