Code Block for “Trailing Stop” based on current market price. (Ask / Bid) – EA MetaTrader 5

Code Block for "Trailing Stop" based on current market price. (Ask / Bid) - expert for MetaTrader 5
This code block works if you use either a Stop Loss or Not.  Requirements  You need to include “Trade.mqh ” to get access to the CTrade class which allows you to work with positions and orders. #include <Trade\Trade.mqh> // <<—————————————— Include this “Trade.mqh” to access the CTrade Class You need to set an input parameter … Read more

Close_on_PROFIT_or_LOSS_inAccont_Currency – EA MetaTrader 4

Close_on_PROFIT_or_LOSS_inAccont_Currency - expert for MetaTrader 4
At 0 set EA will do nothing.    Positive_Closure_in_Account_Currency must be higher than the current Equity amount, otherwise, the trades will be executed immediately. Example: Equity is 55000$ and Positive_Closure_in_Account_Currency set to 55500$ to gain 500$ Negative_Closure_in_Account_Currency must be lower than the current Equity amount, otherwise, the trades will be executed immediately. Example: Equity is … Read more

Developing a multi-currency Expert Advisor — source codes from a series of articles – library MetaTrader 5

Developing a multi-currency Expert Advisor — source codes from a series of articles - library for MetaTrader 5
This series of articles is in the process of being written. As we move forward, source codes from new articles will be added to this library. It is recommended to review the code in the order of publication of articles in order to better monitor the development and changes made. At this stage, the general … Read more

Buy Sell Close Manual trading EA for trading newbies – EA MetaTrader 4

Buy Sell Close Manual trading EA for trading newbies - expert for MetaTrader 4
[@Buy_Sell_Close] Manual trading EA for trading newbies, EA can be used in backtesting visual mode, EA can also be used in live trading. You can practice your own trading system in backtesting [@Buy_Sell_Close], manual operation of the EA, pause, or modify the speed of the review backtest, to facilitate the manual trading exercises Introduction: 1 … Read more

Examples from the book “Neural networks for algorithmic trading with MQL5” – EA MetaTrader 5

Examples from the book "Neural networks for algorithmic trading with MQL5" - expert for MetaTrader 5
The book “Neural networks for algorithmic trading with MQL5” is your go-to guide for learning how to use machine learning and neural networks in trading. This book is intended for algorithmic traders who want to learn how to create trading strategies using advanced artificial intelligence techniques. The book has 7 chapters that cover everything you … Read more

HFT Spreader for FORTS – EA MetaTrader 5

HFT Spreader for FORTS
Inputs: position size in lots, spread — number of minimum price steps. For example, the value of 4 set for MIX-9.15 symbol means that the minimum price change step for this symbol (from its contract specification) equals 25, therefore, the EA will start to place orders when the spread is 4*25=100. Operating principle: If all … Read more

Exp_ColorZerolagRSIOSMA – EA MetaTrader 5

Fig.1. Trade examples on the chart
The Exp_ColorZerolagRSIOSMA Expert Advisor is based on the ColorZerolagRSIOSMA histogram change of direction. The signal is formed when a bar is closing if there is a change in the oscillator direction. This Expert Advisor requires the compiled indicator file ColorZerolagRSIOSMA.ex5 in order to run. Place it in <terminal_data_folder>\MQL5\Indicators. Note that the TradeAlgorithms.mqh library file allows … Read more