SQX calculates all open trades total possible stop loss value
then opens new trade with RISK % MM from Future Worst Possible Equity = ( CURRENT BALANCE - [all open trades sum total possible stop loss values taken from each strategy SL + commissions + taxes + swaps ])
also SQX recalculates MM and [future worst possible equity] every time new open order occurs (even when taken from pending orders)
Subject changed from add Risk % from Equity to add Risk % from True Full Future Equity
add MM Risk % from True Full Future Equity
each new trade calculates all strategies' open trades and pending orders
swaps+taxes+commissions+ MAX STOP LOSSES
and only then calculates risk from ( balance MINUS swaps+taxes+commissions+ FUTURE MAX STOP LOSSES)
/*
* Copyright (c) 2017-2018, StrategyQuant - All rights reserved.getAccountEquity() is not enough, too simple and not true enough, reality is much worse
vital for portfolios
each new trade calculates/recalculates all strategies' open trades and pending orders that became open market live orders :
all swaps+ all taxes+ all commissions + all MAX defined STOP LOSSES + all Trailing Stops/Profits
and only then calculates risk % from ( CURRENT BALANCE MINUS [all swaps+ all taxes+ all commissions + all MAX defined STOP LOSSES + all Trailing Stops/Profits])