Skip to content

HorizontalAlignment

Summary

Describes horizontal position related to an anchor point or a parent element

Signature

1
public enum HorizontalAlignment

Namespace

cAlgo.API

Fields

Name Description
Center Center horizontal alignment.
Left Left horizontal alignment.
Right Right horizontal alignment.
Stretch Stretch horizontal alignment.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 using cAlgo.API;
 namespace cAlgo
 {
     // This sample indicator shows how to use Chart.DrawHorizontalLine method to draw an horizontal line
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class HorizontalLineSample : Indicator
     {
         protected override void Initialize()
         {
             Chart.DrawHorizontalLine("horizontalLine", Bars.ClosePrices.LastValue, Color.Red);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

Last update: July 1, 2022

Comments