Skip to content

ChartTemplate

Summary

Represents chart template.

Signature

1
public abstract interface ChartTemplate

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 using cAlgo.API;
 namespace cAlgo.Robots;
 [Robot(AccessRights = AccessRights.None, AddIndicators = true)]
 public class ChartTemplate : Robot
 {
     protected override void OnStart()
     {
         foreach (var chartTemplate in ChartTemplates)
         {
             Print($"Name: {chartTemplate.Name} | Indicators: {chartTemplate.Indicators.Count} | Robots: {chartTemplate.Robots.Count}");
         }
         ChartTemplates.Get("Template Name")?.Apply(Chart);
     }
 }

See Also

Methods

Apply

Summary

Applies current chart template to a chart.

Signature

1
public abstract void Apply(Chart chart)

Parameters

Name Type Description
chart Chart Chart that will be current template applied to.

Return Value

void

Properties

Name

Summary

Gets the chart template name.

Signature

1
public abstract string Name {get;}

Return Value

string

DisplaySettings

Summary

Gets the chart template display settings.

Signature

1
public abstract ChartTemplateDisplaySettings DisplaySettings {get;}

Return Value

ChartTemplateDisplaySettings

ColorSettings

Summary

Gets the chart template color settings.

Signature

1
public abstract ChartTemplateColorSettings ColorSettings {get;}

Return Value

ChartTemplateColorSettings

Indicators

Summary

Gets the indicators of chart template.

Signature

1
public abstract ChartTemplateIndicators Indicators {get;}

Return Value

ChartTemplateIndicators

Related Tutorials

Robots

Summary

Gets the robots of chart template.

Signature

1
public abstract ChartTemplateRobots Robots {get;}

Return Value

ChartTemplateRobots