I am developing an automated strategy in tradestation that trades for a limited period per day. Does anyone know of a code sequence in easy language that would check the account balance before the beginning of the trading session, and use that value for position sizing during the session? I understand that using the 'Netprofit' command for position sizing slows the strategy down as it has to check the account before making a trade, so I thought that having a fixed number in the settings which is updated each day would probably give better entries.
with best regards