🟨
Swiss33
🏠 Swiss33
  • ⚡Quickstart
  • ℹ️General
  • ⚙️Models
    • Interactive Brokers
  • 🤖Trading bots
Powered by GitBook
On this page
  • 1 - Creating a machine learning model
  • 2 - Training & backtesting the model

Was this helpful?

Models

Learn more about how the models work

PreviousGeneralNextInteractive Brokers

Last updated 2 years ago

Was this helpful?

1 - Creating a machine learning model

Go to , 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 :

The parameters available are :

  • Kernel -> Shape of the decision boundary. More info :

  • 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 :

  • 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 :

This algorithm stands for "eXtreme Gradient Boosting".

Here is a famous scientific paper that demonstrates the effectiveness of XGBoost (combined with ARIMA) in predicting the stock market :

The parameters available are :

  • Learning rate -> "Step size shrinkage used in update to prevents overfitting." More info :

Select a data source:

  • Robinhood

  • Interactive Brokers

  • Charles Schwab

  • Alpaca Markets

  • TD Ameritrade

  • IG Markets

  • Oanda

  • Degiro

  • TradeRepublic

  • Samco

  • Tradier

  • Trading Technologies

  • Zerodha

  • Binance.com

  • Binance.us

  • Coinbase

  • Kraken

  • KuCoin

  • BitStamp

  • Gate.io

  • OKX

  • BitFinex

  • ByBit

  • Bithumb

  • Gemini

  • Bitget

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 : )

A confusion matrix (More info : )

⚙️
models
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.
https://scikit-learn.org/stable/auto_examples/svm/plot_svm_kernels.html
https://scikit-learn.org/stable/auto_examples/svm/plot_rbf_parameters.html#rbf-svm-parameters
https://scikit-learn.org/stable/auto_examples/svm/plot_rbf_parameters.html#rbf-svm-parameters
WANG, Yan et GUO, Yuankai. Forecasting method of stock market volatility in time series data based on mixed model of ARIMA and XGBoost. China Communications, 2020, vol. 17, no 3, p. 205-221.
https://xgboost.readthedocs.io/en/stable/parameter.html#parameters-for-tree-booster
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.classification_report.html
https://en.wikipedia.org/wiki/Confusion_matrix