Login / Register
Add a review
Log in
Sign UP
[bws_google_captcha]
Exp5 Close Minus by Plus for MT5

0.00

Closing unprofitable positions with a series of profitable positions

Closing unprofitable positions with a series of profitable positions

You can test the Expert Advisor in the strategy tester and trade using our EAPADPRO dashboard in visual mode!

Close Loss by Profit – Full instructions

MT4 version of the Close Minus by Plus program 

You can test the Expert Advisor in the strategy tester and trade using our EAPADPRO dashboard in visual mode!

Close Loss by Profit – Full instructions

MT4 version of the Close Minus by Plus program 

  • TypeOfUnitToClose – Type of profit and loss calculations. In dollars or in points;
  • MinLossInUnit – The minimum loss of the position in units (TypeOfUnitToClose), which is taken into account by the Expert Advisor;
    • An order with a loss in “MinLossPoss_in_unit” units (dollars or points) must be placed in the negative zone.
    • This is the upper bar for finding unprofitable positions.
    • For example: MinLossInUnit = -100, TypeOfUnitToClose = dollars.
    • Then the Expert Advisor is looking for or waiting for a position with a loss greater than or equal to -100 dollars, for example: -100 dollars, -150 dollars, -200 dollars, and so on.
    • A position with a loss of -99 dollars is already ignored;
  • AdditionalProfitInUnit – The number of profit units for the difference in closing a set of positions.
    • A position (one or more) with a total profit exceeding the loss on “AdditionalProfitInUnit” units.
    • For example: AdditionalProfitInUnit= 10, MinLossInUnit= -100, TypeOfUnitToClose = dollars.
    • The Expert Advisor is looking for or waiting for at least 2 positions, one with a loss of -100 dollars, and the second with a profit of 110 dollars. At this point, the Expert Advisor decides to enable its function;
  • MaxPos_in_Class-The “MaxPos_in_Class” parameter should limit the number of positions of the entire” set ” of closing.
    • For example: MaxPos_in_Class = 3, then the EA will look for a set to close from a maximum of 3 positions (1 unprofitable and 2 profitable);
  • FirstSymbolClose-Search for pairs of positions and close only the currency, the minus of which we process.
    • You can disable the FirstSymbolClose parameter, then the Expert Advisor will close any sets of unprofitable and profitable positions on the entire account, regardless of which currency pair is included in the calculation.
    • When the FirstSymbolClose function is enabled, the Expert Advisor counts and closes sets of one currency pair;
  • OrderToClose-Position type: -1 = All Orders, 1 = Sell, 0 = Buy;
  • MagicToClose-Position Magic: -1 = any magic, or you can specify the unique magic number of your positions to be processed;
  • SymbolToClose-Currency pair for monitoring: -1 = All Symbol, 1 = Current Symbol;

[spoiler title=”Read More…”]

  • An order with a loss in “MinLossPoss_in_unit” units (dollars or points) must be placed in the negative zone.
  • This is the upper bar for finding unprofitable positions.
  • For example: MinLossInUnit = -100, TypeOfUnitToClose = dollars.
  • Then the Expert Advisor is looking for or waiting for a position with a loss greater than or equal to -100 dollars, for example: -100 dollars, -150 dollars, -200 dollars, and so on.
  • A position with a loss of -99 dollars is already ignored;
  • A position (one or more) with a total profit exceeding the loss on “AdditionalProfitInUnit” units.
  • For example: AdditionalProfitInUnit= 10, MinLossInUnit= -100, TypeOfUnitToClose = dollars.
  • The Expert Advisor is looking for or waiting for at least 2 positions, one with a loss of -100 dollars, and the second with a profit of 110 dollars. At this point, the Expert Advisor decides to enable its function;
  • For example: MaxPos_in_Class = 3, then the EA will look for a set to close from a maximum of 3 positions (1 unprofitable and 2 profitable);
  • You can disable the FirstSymbolClose parameter, then the Expert Advisor will close any sets of unprofitable and profitable positions on the entire account, regardless of which currency pair is included in the calculation.
  • When the FirstSymbolClose function is enabled, the Expert Advisor counts and closes sets of one currency pair;
      • Dear friends and users of our expert Advisors from Expforex, add your ratings in the sectionReviews
    • Dear friends and users of our expert Advisors from Expforex, add your ratings in the sectionReviews
  • Dear friends and users of our expert Advisors from Expforex, add your ratings in the sectionReviews
  • Dear friends and users of our expert Advisors from Expforex, add your ratings in the sectionReviews

All the work consists in putting the Expert Advisor on a separate chart, setting it up and working further on our terminal. When the programmed condition occurs, the Expert Advisor starts working and starts its calculations.

You can also download my other products:  
DescriptionMetaTrader 4MetaTrader 5
Copy of transactions and positions between terminalsCOPYLOT MT4  COPYLOT MT5
1-click trading panel with chart and keyboardVIRTUALTRADEPAD MT4VIRTUALTRADEPAD MT5
Professional Automatic Scalper, Smart RobotTICKSNIPER MT4TICKSNIPER MT5
Universal Expert Advisor based on custom indicatorsXCUSTOMEA MT4XCUSTOMEA MT5
Universal Expert Advisor on standard indicatorsThe X MT4The X MT5

All my programs on mql5.com

You can also download my other products:  
DescriptionMetaTrader 4MetaTrader 5
Copy of transactions and positions between terminalsCOPYLOT MT4  COPYLOT MT5
1-click trading panel with chart and keyboardVIRTUALTRADEPAD MT4VIRTUALTRADEPAD MT5
Professional Automatic Scalper, Smart RobotTICKSNIPER MT4TICKSNIPER MT5
Universal Expert Advisor based on custom indicatorsXCUSTOMEA MT4XCUSTOMEA MT5
Universal Expert Advisor on standard indicatorsThe X MT4The X MT5

All my programs on mql5.com

You can also download my other products:  
DescriptionMetaTrader 4MetaTrader 5
Copy of transactions and positions between terminalsCOPYLOT MT4  COPYLOT MT5
1-click trading panel with chart and keyboardVIRTUALTRADEPAD MT4VIRTUALTRADEPAD MT5
Professional Automatic Scalper, Smart RobotTICKSNIPER MT4TICKSNIPER MT5
Universal Expert Advisor based on custom indicatorsXCUSTOMEA MT4XCUSTOMEA MT5
Universal Expert Advisor on standard indicatorsThe X MT4The X MT5

All my programs on mql5.com

You can also download my other products:  
DescriptionMetaTrader 4MetaTrader 5
Copy of transactions and positions between terminalsCOPYLOT MT4  COPYLOT MT5
1-click trading panel with chart and keyboardVIRTUALTRADEPAD MT4VIRTUALTRADEPAD MT5
Professional Automatic Scalper, Smart RobotTICKSNIPER MT4TICKSNIPER MT5
Universal Expert Advisor based on custom indicatorsXCUSTOMEA MT4XCUSTOMEA MT5
Universal Expert Advisor on standard indicatorsThe X MT4The X MT5

All my programs on mql5.com

All my programs on mql5.com

[/spoiler]

Add review
Reviews ( 0 ):