YOUSEFUL / DELPHI / COMPONENTS
TAtlasStudyKind
What a TAtlasFinStudy draws: one of four price styles, volume, or one of five indicators.
Description
The value of TAtlasFinStudy.Kind and the first argument of TAtlasFinStudies.Add. All indicators work on the closing prices.
Members
| Member | Kind | What it does |
|---|---|---|
skCandles | value | 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 | 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 | A line through the closing prices, in the study's colour and LineWidth. |
skCloseArea | value | The close line with the area below it down to the pane floor filled in a lighter shade. |
skVolume | value | Volume bars from zero, coloured by the bar's direction; the header shows the volume abbreviated. |
skSMA | value | Simple moving average of the closes over Period bars (default 20). |
skEMA | value | Exponential moving average of the closes, factor 2/(Period+1), seeded with the SMA (default period 20). |
skBollinger | value | Bollinger bands: SMA(Period) and the bands Deviations population standard deviations above and below (default 20, 2). |
skRSI | value | Wilder's relative strength index over Period bars (default 14), 0..100. |
skMACD | value | MACD: EMA(Period) minus EMA(SlowPeriod), its EMA(SignalPeriod) signal line and the difference as a histogram (default 12, 26, 9). |
Values
skCandles value
skCandlesCandlesticks: 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
skOhlcOHLC 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
skCloseLineA line through the closing prices, in the study's colour and LineWidth.
skCloseArea value
skCloseAreaThe close line with the area below it down to the pane floor filled in a lighter shade.
skVolume value
skVolumeVolume bars from zero, coloured by the bar's direction; the header shows the volume abbreviated.
skSMA value
skSMASimple moving average of the closes over Period bars (default 20).
skEMA value
skEMAExponential moving average of the closes, factor 2/(Period+1), seeded with the SMA (default period 20).
skBollinger value
skBollingerBollinger bands: SMA(Period) and the bands Deviations population standard deviations above and below (default 20, 2).
skRSI value
skRSIWilder's relative strength index over Period bars (default 14), 0..100. A pane with only RSI studies is fixed at 0..100.
skMACD value
skMACDMACD: 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.
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;Related
TAtlasFinStudy · TAtlasIndicators