Load dataset

And get interesting features

Data featuring

In theory we are going to use 4 features: The price itself and three extra technical indicators.

MACD (Trend) Stochastics (Momentum) Average True Range (Volume)

Functions

Exponential Moving Average: Is a type of infinite impulse response filter that applies weighting factors which decrease exponentially. The weighting for each older datum decreases exponentially, never reaching zero.

MACD: The Moving Average Convergence/Divergence oscillator (MACD) is one of the simplest and most effective momentum indicators available. The MACD turns two trend-following indicators, moving averages, into a momentum oscillator by subtracting the longer moving average from the shorter moving average.

Stochastics oscillator: The Stochastic Oscillator is a momentum indicator that shows the location of the close relative to the high-low range over a set number of periods.

Average True Range: Is an indicator to measure the volalitility (NOT price direction). The largest of:

MACD

Stochastics Oscillator

Average True Range

Check for normal distribution

Check time relation

Check depenence of trading and price from date in year and time of day

Firstly define function for display frequiency

Frequency of price

Frequence of price change

Frequency of transaction volume

Frequence of transaction volume change

Compare train and test datasets

Training data exploration

Testing data exploration

Normalise data

Will use only training mean and deviation for not give NN access to test dataset

Divide by the max-min deviation

maximum for training to litle, and not will allow correctly predict values in testing dataset, will use manually choosed value for maximum 100 thouthands dollars except of volume