Perform Statistical transformation and clustering of Market Types on the price data
Perform Statistical transformation and clustering of Market Types on the price data
Function features methods of statistical data transformation and clustering of the price data. Multiple statistical properties are calculated for a defined time interval. Once combined, unsupervised learning (clustering) is performed to assign several classes, see function mt_make_model. Function allows to fully automatize financial periods classification. It is possible to choose two clustering methods either kmeans or hierarchical clustering.
indicator_dataset: Dataframe, multiple column dataset containing price data in each column. Each row is a time index, multiple columns are required but not strictly needed
num_bars: Integer, Number of bars used to perform transformation
timeframe: Integer, Data timeframe in Minutes, only used for naming convention
path_data: String, User path where the dataset could be stored for the future use by other function
mt_classes: Character Vector, with 2 or more Market Type classes
clust_method: Character, option to select which clustering method to choose. Could be either 'kmeans' or 'hclust'. Default value is 'kmeans'
clust_opt: Character, option to select how to perform h clustering "average", "single", "complete", "ward". Default value is 'complete'
rule_opt: Boolean, option to perform rule-based Market Type Assignment, defaults to TRUE
Returns
Dataframe with statistically transformed and classified dataset for classification modeling
Details
User can define several market type classes names however function will randomly assign Market Period labels based on Unsupervised Learning. This is inconvenient however that should be compensated by automated way of doing such data classification