龙听期货论坛's Archiver
龙听期货论坛
»
编程语言More>>||
»
MC内置策略【Pre-built Signals】
» 【Percent Stop LX】
龙听
发表于 2022-11-3 15:01
【Percent Stop LX】
[code]
inputs: StopLossPct( .05 ) ;
SetStopShare ;
if MarketPosition = 1 then
SetStopLoss( EntryPrice * StopLossPct )
else
Sell ( "PctStopLX-eb" ) next bar at Close * ( 1 - StopLossPct ) stop ;
[/code]
页:
[1]