Description
This plugin can automatically close all positions when either the specified maximum loss or profit target is reached, based on the account's equity when the plugin is enabled. That amount can either be expressed in Cash or in Percent. It is possible to activate both the Equity Stop (Loss) and the Equity Stop (Profit) features, or only one of them.
This plugin also includes a button labelled Reset Equity, through which it is possible to reset the equity used for calculations without disabling and re-enabling the plugin. When this button is pressed, the equity considered for calculations will be updated to the account's current equity rather than the equity from when the plugin was enabled.
Example using Cash: Both the Use Equity Stop (Loss) and the Use Equity Stop (Profit) checkboxes are checked, and both the Equity Stop (Loss) and the Equity Stop (Profit) parameters are set to 100. If the account's equity equals 10,000 when the plugin is enabled, all open positions will be closed when it goes either down to 9,900 or up to 10,100. If the Reset Equity button is pressed when the equity equals 10,050, all open positions will be closed when it goes either down to 9,950 or up to 10,150.
Example using Percent: Both the Use Equity Stop (Loss) and the Use Equity Stop (Profit) checkboxes are checked, and both the Equity Stop (Loss) and the Equity Stop (Profit) parameters are set to 5. If the account's equity equals 10,000 when the plugin is enabled, then 5% of it equals 500, and all open positions will be closed when it goes either down to 9,500 or up to 10,500. If the Reset Equity button is pressed when the equity equals 10,200, all open positions will be closed when it goes either down to 9,690 or up to 10,710, since 5% of 10,200 equals 510.
The author decided to hide the source code.
acronew
Joined on 15.06.2024
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: EquityStop.algo
- Rating: 5
- Installs: 597
- Modified: 24/06/2024 17:37
Hi, this seems very useful! I just installed it!
Would you be kind enough to add one more feature to this. Like set a daily equity stop. Once the equity stop is triggered, no more trading can be executed for the day. Trading will resume tomorrow.