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

EXP_MAX_LOT - MetaTrader 5 Expert | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

EXP_MAX_LOT - expert for MetaTrader 5

The real author Andrei Mishustin

The Expert Advisor uses all available margin available in the deposit to calculate the maximum lot size that can be used to open a position. Calculated values ​​are displayed in the upper right corner of the chart by default.

This Expert Advisor was first implemented in MQL4 and published in the code base of mql4.com on June 21, 2012.

EA trading input parameters :

 //+------------------------------------------------+
//| EA transaction input parameters |
//+------------------------------------------------+
Input ENUM_POSITION_TYPE Position type = POSITION_TYPE_BUY ; // Position type
//----Indicator display settings
Input StringSymbols_Mr.Name = "MAX_LOT_Label_" ; // Name of the indicator label
Input color IndName_color = clr slate blue ; // indicator color
Input unit font size = 15 ; // indicator font size
Input unit X_= 15 ; // Horizontal offset
Input integer Y_= 15 ; // vertical offset
Input ENUM_BASE_CORNER what corner = CORNER_RIGHT_UPPER ; // Display corner points
//+------------------------------------------------+

EXP_MAX_LOT - expert for MetaTrader 5

Figure 1. EXP_MAX_LOT EA on the chart


Attachment download

📎 exp_max_lot.mq5 (23.08 KB)

Source: MQL5 #18056

Verification code Refresh