Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Libraries | NELODI BackProp Chart

MetaTrader Experts, Indicators, Scripts and Libraries

"NLD_BackProp.mqh" contains the implementation of a very simple Artificial Neural Network that has one hidden layer and uses back-propagation for training/learning. The advantage of this implementation is that it is very short, which makes it easy for anyone to get started with ANNs.

"NLD_BPChart.mq5" is a custom price chart, painting price movements as a red/green line and using the Artificial Neural Network (implemented in "NLD_BackProp.mqh") to try predicting where the Close price might be going next, relative to the last Open price. It projects the next X Close prices (default = 10) into the future by using the last Y Open prices (default = 200) from the past, optimizing network weights with every new (completed) candle received.

I wouldn't call the output of the Artificial Neural Network a "prediction", but simply an "opinion", which I would NOT take seriously when trading, so do NOT get too excited about it. But ... if you find Artificial Neural Networks interesting, it might be fun to watch how an Artificial Neural Network tries to optimize its outputs as new data arrives. There are many ways to use Artificial Neural Networks and this is just a very simple example, so have fun experimenting!

Both files are rather simple and do NOT have any external dependencies on other libraries or files.

DISCLAIMER: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


USE AT YOUR OWN RISK!

26928