Margin – Prevent open

Back to modules

3rd of january 2021

Prevent Open modules take any input and, if the set conditions are met, (temporarily) prevents opening any new orders.

The Margin – Prevent open module, will prevent opening orders when a minimum/ maximum amount of margin is reached.


  • MinimalFreeMarginAfterOpen: the amount of free margin you require to remain after opening an order/ position. 0 = no limit.
  • MaximumUsedMarginByThisEA: the amount of margin this EA can use. This setting is useful when running multiple EA’s on a single account. 0 = no limit.