HorizontalAlignment


Summary

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

Syntax

public sealed enum HorizontalAlignment

Members

NameTypeSummary
Center FieldCenter horizontal alignment.
Left FieldLeft horizontal alignment.
Right FieldRight horizontal alignment.
Stretch FieldStretch horizontal alignment.

Example 1

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)
        {
        }
    }
}
Reference