【SetStopPosition】指定策略出场函数
SetStopPosition[table][tr][td]指定策略出场函数[p=30, 2, left]所有仓位合并计算: [url=https://www.multicharts.cn/powerlanguage/03_words/Strategy_Orders/setstoploss.htm]SetStopLoss[/url] , [url=https://www.multicharts.cn/powerlanguage/03_words/Strategy_Orders/setprofittarget.htm]SetProfitTarget[/url] , [url=https://www.multicharts.cn/powerlanguage/03_words/Strategy_Orders/setbreakeven.htm]SetBreakEven[/url] , [url=https://www.multicharts.cn/powerlanguage/03_words/Strategy_Orders/setdollartrailing.htm]SetDollarTrailing[/url] , and [url=https://www.multicharts.cn/powerlanguage/03_words/Strategy_Orders/setpercenttrailing.htm]SetPercentTrailing[/url].[/p][/td][/tr]
[/table]
[table=98%]
[tr][td][b]用法[/b][p=30, 2, left]SetStopPosition[/p][/td][/tr]
[/table]
[table]
[tr][td][b]注意[/b][p=30, 2, left]若 SetStopPositon, SetStopContract, and SetStopShare 未被声明,默认出场函数,是所有仓位合并计算。[/p][p=30, 2, left]若 SetStopPositon, SetStopContract, and SetStopShare 被多次声明,或是在同一个图表上的不同信号分别声明,会以最后一次的声明状态为最后状态。[/p][/td][/tr]
[/table]
[table=98%]
[tr][td][b]范例[/b][p=30, 2, left]指定 SetStopLoss 策略出场函数是所有仓位合并计算,当所有仓位总损失达到100元时,产生出场委托:[/p][p=30, 2, left]SetStopPosition;[/p][p=30, 2, left]SetStopLoss(100);[/p][/td][/tr]
[/table]
页:
[1]