看不太懂 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 ;
SetPositionSize(1, spsShares);
頁:
[1]