COCO研究院

 找回密碼
 註冊
搜索
查看: 24708|回復: 1

[教學] 看不太懂 amibroker 的說明 SetPositionSize

[複製鏈接]
發表於 18-2-9 11:21 | 顯示全部樓層 |閱讀模式
網站上的說明是

method (ARRAY) defines how 'size' is interpreted
  • spsValue (=1) - dollar value of size (as in previous versions)
  • spsPercentOfEquity (=2) - size expressed as percent of portfolio-level equity (size must be from ..100 (for regular accounts) or .1000 for margin accounts)
  • spsShares (=4) - size expressed in shares/contracts (size must be > 0 )
  • spsPercentOfPosition (=3) - size expressed as percent of currently open position (for SCALING IN and SCALING OUT ONLY)
  • spsNoChange (=0) - don't change previously set size for given bar

如果,我要設定每次都固定下 一 口單,如何設定

是  

SetPositionSize( 1, spsValue) ; 嗎 ??  好像不是,因為是 spsValue 是 dollar value ;


發表於 18-2-9 17:01 | 顯示全部樓層
SetPositionSize(1, spsShares);
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|站長信箱|廣告洽詢|COCO研究院

GMT+8, 24-11-25 11:07

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 |