YOUSEFUL / DELPHI / COMPONENTS

TAtlasStudyKind

What a TAtlasFinStudy draws: one of four price styles, volume, or one of five indicators.

Enumeration Unit Atlas.FinChart · Product Atlas Fin

Description

The value of TAtlasFinStudy.Kind and the first argument of TAtlasFinStudies.Add. All indicators work on the closing prices.

Members

MemberKindWhat it does
skCandlesvalueCandlesticks: a body from open to close, 70 % of the bar slot wide, with a wick from low to high; rising bars in UpColor, falling bars in DownColor.
skOhlcvalueOHLC bars: a line from low to high with the open as a tick to the left and the close as a tick to the right.
skCloseLinevalueA line through the closing prices, in the study's colour and LineWidth.
skCloseAreavalueThe close line with the area below it down to the pane floor filled in a lighter shade.
skVolumevalueVolume bars from zero, coloured by the bar's direction; the header shows the volume abbreviated.
skSMAvalueSimple moving average of the closes over Period bars (default 20).
skEMAvalueExponential moving average of the closes, factor 2/(Period+1), seeded with the SMA (default period 20).
skBollingervalueBollinger bands: SMA(Period) and the bands Deviations population standard deviations above and below (default 20, 2).
skRSIvalueWilder's relative strength index over Period bars (default 14), 0..100.
skMACDvalueMACD: EMA(Period) minus EMA(SlowPeriod), its EMA(SignalPeriod) signal line and the difference as a histogram (default 12, 26, 9).

Values

skCandles value

skCandles

Candlesticks: a body from open to close, 70 % of the bar slot wide, with a wick from low to high; rising bars in UpColor, falling bars in DownColor.

skOhlc value

skOhlc

OHLC bars: a line from low to high with the open as a tick to the left and the close as a tick to the right.

skCloseLine value

skCloseLine

A line through the closing prices, in the study's colour and LineWidth.

skCloseArea value

skCloseArea

The close line with the area below it down to the pane floor filled in a lighter shade.

skVolume value

skVolume

Volume bars from zero, coloured by the bar's direction; the header shows the volume abbreviated.

skSMA value

skSMA

Simple moving average of the closes over Period bars (default 20).

skEMA value

skEMA

Exponential moving average of the closes, factor 2/(Period+1), seeded with the SMA (default period 20).

skBollinger value

skBollinger

Bollinger bands: SMA(Period) and the bands Deviations population standard deviations above and below (default 20, 2).

skRSI value

skRSI

Wilder's relative strength index over Period bars (default 14), 0..100. A pane with only RSI studies is fixed at 0..100.

skMACD value

skMACD

MACD: EMA(Period) minus EMA(SlowPeriod), its EMA(SignalPeriod) signal line and the difference as a histogram (default 12, 26, 9). The pane's scale includes zero.

Examples

Indicator studies side by side

Adds every indicator kind to a chart that already has a price pane.

pascal
uses Atlas.FinChart;

procedure AddAllIndicators(Chart: TAtlasFinChart);
begin
  Chart.Panes[0].Studies.Add(skSMA, 20);
  Chart.Panes[0].Studies.Add(skEMA, 50);
  Chart.Panes[0].Studies.Add(skBollinger);
  Chart.Panes.Add('RSI', 80).Studies.Add(skRSI);
  Chart.Panes.Add('MACD', 100).Studies.Add(skMACD);
end;

TAtlasFinStudy · TAtlasIndicators

Also in Atlas Fin

TAtlasFinChart