Sample pine script stochastic divergence converted to MQL5 – indicator MetaTrader 5

Sample pine script stochastic divergence converted to MQL5 - indicator for MetaTrader 5
The purpose of this code is to convey an idea to people seeking simple and functional approach to converting pine script to MQL5. Here is the pine script code: //@version=5 indicator(title=’sample stochastic divergence’, overlay=true) stoch_len = input.int(title=’stoch_len’, defval=5) f_top_fractal(_src) =>     _src[4] < _src[2] and _src[3] < _src[2] and _src[2] > _src[1] and        _src[2] > … Read more

Error_Break_Script_V1 – This script is a general example of using error brake in any strategy – Break on Code Error Sample Strategy – script MetaTrader 4

Error_Break_Script_V1  - This script is a general example of using error brake in any strategy - Break on Code Error Sample Strategy - script for MetaTrader 4
This script is a general example of using error brake codes in any strategy. Error_Break_Script_V1 – This script is a general example of using error brake in any strategy – Break on Code Error Sample Strategy – script MetaTrader 4

MACD Sample – EA MetaTrader 5

The MACD Sample Expert Advisor
The MACD Sample EA is included in the standard pack of the MetaTrader 5 client terminal and is an example of the EA that trades using the MACD indicator. The file of the MACD Sample.mq5 expert Advisor is located in terminal_data_folder\MQL5\Experts\Examples\MACD\”. This Expert Advisor is an example of object-oriented approach in EA development. Let’s consider … Read more

MACD No Sample – EA MetaTrader 5

MACD No Sample
Idea by Leonid Basis mq5 code author – barabashkakvn The Expert Advisor uses the iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD) indicators. The MA indicator is used as the trend filter.  Lot can be fixed or dynamic (set in the  Money management: Lot OR Risk parameter). Parameter The value for “Money management” sets either lot value or … Read more

MACD Sample Hedging Grid – EA MetaTrader 4

MACD Sample Hedging Grid - expert for MetaTrader 4
Classic “MACD Sample” EA with a little twist, you can use it as  hedging grid EA or a single trade EA. Try it on demo first. Inputs  Use_TP_In_Money- Use Take Profit In Money (values:true/false).  TP_In_Money- Take Profit In Money   (values: 10-100). Use_TP_In_percent- Use Take Profit In Percent (values:true/false). TP_In_Percent- Take Profit In Percent (values: 10-100). ————[Money Trailing Stop For Multiple Trades]———————- Enable_Trailing-Enable_Trailing with money  (values:true/false). Take … Read more