The parameter is used to control closing the trades and avoid closing the trades when the current market conditions are not good. Especially when the current spread is greater than MaxSpreadExit.
For example, if you set MaxSpreadExit=5 the EA will close the trades only when the spread is equal to or lower than 5 pips. This could be useful in the periods of high impact news and from 00:00 to 00:59 o'clock when the spreads could be higher than usual.
This parameter has a value of 0 (zero) by default which means it is disabled. If you want to use it, you can set a value greater than 0 (zero).
Forex trading can involve the risk of loss beyond your initial deposit. It is not suitable for all investors and you should make sure you understand the risks involved, seeking independent advice if necessary.
Forex accounts typically offer various degrees of leverage and their elevated profit potential is counterbalanced by an equally high level of risk. You should never risk more than you are prepared to lose and you should carefully take into consideration your trading experience.
Past performance and simulated results are not necessarily indicative of future performance. All the content on this site represents the sole opinion of the author and does not constitute an express recommendation to purchase any of the products described in its pages.