quotek::
ta
¶ta namespace contains a set of functions meant to facilitate automated technical analysis.
Functions
moving_average_convergeance_divergeance
(quotek::data::records &recs, int periods_short_ema, int periods_long_ema, int periods_signal_line)¶MACD is an early trend indicator. It is composed of 2 graph lines. The first line, MACD, is a difference between an EMA small period and an EMA long period. the second line, the signal line, is usually a 9 periods EMA. When the MACD line is going away from 0, then it susually means the current momentum is gaining strength. On the other side when it’s nearing 0, then the momentum is losing strength. Also When the MACD crosses the signal line from above, it’s a good insight for a sell signal. When the MACD crosses the signal line from below, it’s a good insight for a buy signal. Note: the standard values for MACD periods is 12,26,9 and this is what we suggest to use.
recs
- dataset to draw MACD for.
periods_short_ema
- perdiod of the short moving average.
periods_long_ema
- period of the long moving average.
periods_signal_line
- period of the signal line EMA.
trix
(quotek::data::records &recs, int periods)¶trix is an oscilator created to detect oversold or overbought markets. values returned by the trix indicator oscilate around a zero-line: If the value crosses above the zero-line it is a buy signal, if the value crosses below it is a sell signal.
periods
- number of periods to compute trix for.
fibo_retrace
(quotek::data::records &recs)¶fibo_retrace takes a time-series and computes the different fibonacci retracement levels and puts it in a quotek::quant::fibo_ret structure.
recs
- dataset to compute fibonacci levels for.
fibo_extension
(quotek::data::records &recs)¶fibo_extension takes a time-series, computes the different fibonacci extension levels and puts it in a quotek::quant::fibo_ext structure.
recs
- dataset to compute fibonacci levels for.
pivots
(float high, float low, float close)¶same as previous, but takes (high,low,close) values instead of full data history for computing.
pivots
(quotek::data::records &recs)¶pivots computes the pivot point as well as the four supports/resistances for a given history.
recs
- dataset to compute pivot points for.