PINE LIBRARY

NumberOfSharesBuy

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) 初期資本と一株当たり最大損失から購入株数を求める
引数一覧:
  • totalAssets: 初期資本
  • unit: 一回のトレードで行う株数の単位
  • lossPercent: 一回の損切で何%までの損失を許容するか
  • maxLossPerShere: 一株当たり最大損失

戻り値: 購入株数
SIZEtechindicator

Pine脚本库

本着真正的TradingView精神,作者将此Pine代码发布为开源脚本库,以便我们社区的其他Pine程序员可以重复使用它。向作者致敬!您可以私下或在其它开源出版物中使用此脚本库,但在出版物中重复使用此代码受网站规则约束。


更多:

免责声明