【Percent Stop SX】
[code]inputs: StopLossPct( .05 ) ;
SetStopShare ;
if MarketPosition = -1 then
SetStopLoss( EntryPrice * StopLossPct )
else
Buy To Cover ( "PctStopSX-eb" ) next bar at Close * ( 1 + StopLossPct ) stop ;
[/code]
页:
[1]
C + + 版 量 化 | 微信: QQ: |