거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
라이브러리

LSTM Neural Network - MetaTrader 5용 라이브러리

Shephard Mukachi
게시자:
Shephard Mukachi
조회수:
9741
평가:
(17)
게시됨:
2019.01.17 20:59
업데이트됨:
2019.05.20 21:45
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Attached are the include files for the LSTM. The files included are:

  • Gates - for the 4 gates used in an LSTMs. 
  • TimeStep - which combines the gates, and in practical usage would represent the time series bars.
  • LSTMNetwork - implementing the learning algorithms.

Also included is an example LSTMTest script using the Simple RPC indicator, also attached.

To create a new LSTM network, provide the constructor with number of patterns, number of inputs (predictors per timestep) and the number of timesteps, as shown below;

CLSTMNetwork *net=new LSTMNetwork(patterns,inputs,timesteps);

To teach the network, call the Learn function, providing it with the input array, the targets array, the learning error threshold, and the number of learning epochs as below;

net.Learn(in,tg,mse,500000);

After learning, the final error and epochs taken to converge can be acquired from the network as below;

net.MSE();
net.Epochs();

To check a particular pattern against the network, the Calculate function is called, passing the candidate pattern into the function as a parameter as shown;

net.Calculate(in);

The Calculate function returns the output. This LSTM has a single output neuron.

If anyone finds bugs or has improvements or any suggestions, please be kind enough to share. Good luck.

Trix oscillator with support / resistance lines on chart Trix oscillator with support / resistance lines on chart

Trix oscillator with support / resistance lines on chart

Stochastic with support / resistance levels Stochastic with support / resistance levels

Stochastic with support / resistance levels

Smoothed WPR Smoothed WPR

Smoothed Williams percent range

Smoothed WPR with floating levels Smoothed WPR with floating levels

Smoothed WPR with floating levels