Library "NumberOfSharesBuy" Library for the number of shares purchased
SizeCalc(totalAssets, unit, lossPercent, maxLossPerShere) Calculate the number of shares to be purchased from the initial capital and the maximum loss per share Parameters:
totalAssets: Initial capital
unit: A unit of the number of shares to be traded in one trade
lossPercent: What percentage of loss is allowed in one loss cut
maxLossPerShere: Maximum loss per share
Returns: Number of shares purchased ===================================== ライブラリ "株数に関するライブラリ"
SizeCalc(totalAssets, unit, lossPercent, maxLossPerShere) 初期資本と一株当たり最大損失から購入株数を求める 引数一覧: