Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Ind_2 Line+1 - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

Ind_2 Line+1 - indicator for MetaTrader 5

Ind_2 Line+1 - indicator for MetaTrader 5

Ind_2 Line+1 - indicator for MetaTrader 5

The indicator has three lines:

If there is a very strong divergence when the instrument starts to converge, you should sell the upper part and simultaneously buy the lower part. When the instruments cross, it is recommended to close the position.

In addition, the indicator calculates the volume of trades that should be executed in order to balance the instrument's volatility. The calculation result is displayed in the upper right corner of the indicator. To the left of the instrument name, the volume relative to the instrument's price is calculated. For example, VTB24's stock price is about 5 cents, while Sberbank's stock price is about 100 rubles. Obviously, their weights should not be compared on a 1:1 basis. However, this method is not suitable for the Forex market. Therefore, the authors propose a second version of the lot calculation. It appears to the right of the instrument name. These lot sizes are obtained taking into account asset volatility, contract size, minimum price changes and tick calculations.

Ind_2 Line+1 - indicator for MetaTrader 5

money management.mqh:

The indicator uses include, which needs to be placed in the relevant folder...Include\EvgeTrofi\. It is specified for additional properties of the instrument. During my MQL5 learning, I will extend the library, describe its functionality in detail and put it into the code base. But that's for later.

Good luck!


Attachment download

📎 ind_2_linep1.mq5 (19.91 KB)

📎 moneymanagment.mqh (14.32 KB)

Source: MQL5 #1244

Verification code Refresh