I am hoping you can help me, I'd like to create an automatic stop out level of $100 Equity on all my clients accounts, i.e., when they reach $100 left in tradable equity the position closes - and they have $100 or near enough left in their account.
If you can please help me with this, I think its a code or an algorithm, or a setting which I need to do, but I am unsure of it and I'd really like some help on this.
Hi, maybe this code can help you,
if (AccountInfoDouble(ACCOUNT_EQUITY) <= 100)
// close position