Moderator: admin
(account.UsableMargin / account.Equity) * 100
Konstantin.Usanov wrote:Hi d10gen3!
The strategy was primary designed to produce trading operations due to all divergence occurrences, since is not benefit to lost or miss some of divergence signals for trading.
If you are real looking correct way to limit the produced orders (however, orders always follow divergence detection and this detections are not so much, basically, so and orders will be produced no so much), please use all available facilities:
“Margin care”,
“Profit/Loss care” or
“Risk management” (full functional).
For additional information there is general algorithm of dMACDext strategy:
1. Strategy detects divergence (True or Hide).
2. Depends on trend movement strategy decides to buy or to sell.
3. Trade operation is beginning.
4. It does begin from checks.
5. First check is for Margin. (Margin of account compare with given value in parameters)
6. If margin of account (current value at this moment, moment of trade) less or equal
value from parameters then trade is not process.
7. Second check is P/L care. (GrossPL of account compare with given values in parameters)
8. If GrossPL of account (current value at this moment, moment of trade) more or less then corresponded values from parameters then trade is not process.
9. Otherwise, trade is continuing and True market order opens the position at currently available market rate for buy or sell direction depends on detected trend movement.
10. If risk management is using then Limit or Stop orders will be also opened at this moment.
Thanks.
Users browsing this forum: No registered users and 32 guests