ChartStaticText
Summary
Represents the chart static text.
Signature
| public abstract interface ChartStaticText
|
Namespace
cAlgo.API
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 | using cAlgo.API;
using System.Text;
namespace cAlgo
{
// This sample shows how to use Chart.DrawStaticText method to draw static locked text on chart
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class ChartStaticTextSample : Indicator
{
protected override void Initialize()
{
var stringBuilder = new StringBuilder();
stringBuilder.AppendLine("Symbol: " + SymbolName);
stringBuilder.AppendLine("TimeFrame: " + TimeFrame);
stringBuilder.AppendLine("Chart Type: " + Chart.ChartType);
Chart.DrawStaticText("Static_Sample", stringBuilder.ToString(), VerticalAlignment.Bottom, HorizontalAlignment.Left, Color.Red);
}
public override void Calculate(int index)
{
}
}
}
|
Properties
Color
Summary
Gets or sets the chart static text color.
Signature
| public abstract Color Color {get; set;}
|
Return Value
Color
Text
Summary
Gets or sets the chart static text content.
Signature
| public abstract string Text {get; set;}
|
Return Value
string
VerticalAlignment
Summary
Gets or sets the chart static text vertical alignment.
Signature
| public abstract VerticalAlignment VerticalAlignment {get; set;}
|
Return Value
VerticalAlignment
HorizontalAlignment
Summary
Gets or sets the chart static text horizontal alignment.
Signature
| public abstract HorizontalAlignment HorizontalAlignment {get; set;}
|
Return Value
HorizontalAlignment