kuolung 發表於 18-2-9 11:21

看不太懂 amibroker 的說明 SetPositionSize

網站上的說明是

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 ;


fattcs 發表於 18-2-9 17:01

SetPositionSize(1, spsShares);
頁: [1]
查看完整版本: 看不太懂 amibroker 的說明 SetPositionSize