⚙️Models
Learn more about how the models work
1 - Creating a machine learning model
Go to models, click on the "+" button at the top left.
Then, you have to select an algorithm, data and parameters.
Select an algorithm with parameters :
This algorithm stands for "Support Vector Machine".
Here is a famous scientific paper that demonstrates the effectiveness of SVM in predicting the stock market : Cao, L. J., & Tay, F. E. H. (2003). Support vector machine with adaptive parameters in financial time series forecasting. IEEE Transactions on neural networks, 14(6), 1506-1518.
The parameters available are :
Kernel -> Shape of the decision boundary. More info : https://scikit-learn.org/stable/auto_examples/svm/plot_svm_kernels.html
C -> The best C value will be automatically chosen among the one entered. "The C parameter trades off correct classification of training examples against maximization of the decision function’s margin." More info : https://scikit-learn.org/stable/auto_examples/svm/plot_rbf_parameters.html#rbf-svm-parameters
Gamma -> The best Gamma value will be automatically chosen among the one entered. "Intuitively, the gamma parameter defines how far the influence of a single training example reaches, with low values meaning 'far' and high values meaning 'close'." More info : https://scikit-learn.org/stable/auto_examples/svm/plot_rbf_parameters.html#rbf-svm-parameters
Select a data source:
Robinhood
Interactive Brokers
Charles Schwab
Alpaca Markets
TD Ameritrade
IG Markets
Oanda
Degiro
TradeRepublic
Samco
Tradier
Trading Technologies
Zerodha
Then select a granularity and a period. The longer the period, the longer the training but the more interesting the results.
Then click on "save".
2 - Training & backtesting the model
Click on the training icon and click on "Train & backtest", then wait.
Once your model trained (check your chat messages), you get the results.
The graph show the cumulative returns of the asset (BUY and HOLD strategy) in black and that of the model in yellow.
Below are (in order from left to right):
Basic reminder of the paramters of the model
A classification report (More info : https://scikit-learn.org/stable/modules/generated/sklearn.metrics.classification_report.html)
A confusion matrix (More info : https://en.wikipedia.org/wiki/Confusion_matrix)
Last updated