TradingView
capissimo
26 янв 2021 г., 03:34

Machine Learning: LVQ-based Strategy 

Bitcoin / United States DollarCoinbase

Описание

LVQ-based Strategy (FX and Crypto)

Description:

Learning Vector Quantization (LVQ) can be understood as a special case of an artificial neural network, more precisely, it applies a winner-take-all learning-based approach. It is based on prototype supervised learning classification task and trains its weights through a competitive learning algorithm.

Algorithm:

Initialize weights
Train for 1 to N number of epochs
- Select a training example
- Compute the winning vector
- Update the winning vector
Classify test sample

The LVQ algorithm offers a framework to test various indicators easily to see if they have got any *predictive value*. One can easily add cog, wpr and others.
Note: TradingViews's playback feature helps to see this strategy in action. The algo is tested with BTCUSD/1Hour.

Warning: This is a preliminary version! Signals ARE repainting.
***Warning***: Signals LARGELY depend on hyperparams (lrate and epochs).

Style tags: Trend Following, Trend Analysis
Asset class: Equities, Futures, ETFs, Currencies and Commodities
Dataset: FX Minutes/Hours+++/Days

Информация о релизе

Minor fix.

Информация о релизе

Minor edit.

Информация о релизе

Added signal reversal. Some assets and TFs require inverting the signal. Mind this is the work in process.
Комментарии
navyreal7
what's the point in that if there is a repainting? do you think you will be able to overcome it?
GSRosso
@navyreal7, Read tradingviews official article on repainting, a repainting indicator is not bad if used correctly.
Gero_PT
Quick question, the prediction curve only has na values. I only get the "Loss" values.
chanseroo
Is it ok
vladymyrvasiliev
Hello, Can you make a copy of the code that doesn't redraw the signals?
chanseroo
Hi
Ещё