龙听期货论坛's Archiver
龙听期货论坛
»
编程语言More>>||
»
MC内置策略【Pre-built Signals】
» 【Percent Stop SX】
龙听
发表于 2022-11-3 15:03
【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]