10日内最高价或最低价锁定
VARS: Series <Numeric> hstop; // 空单止损 Series <Numeric> lstop; // 多单止损 //多单开仓信号 在 onbaropen 中 if(tmpcon == 0 and MarketPosition != 1 and tmpa == 1 and (tmpc == 1 or tmpc == 2)) { MyEntryPrice1 = open; Buy(lots, MyEntryPrice1, 111); // 多单首单开仓 lstop = Lowest(low,5); // 这里警告,说这里存在序列函数, 错误号 2002 //想把止损放在 OPEN价格棒体的5根棒体最低价下方3跳,锁定价格,不要随着K线波动而改变价格。 // 不知道这个警告,是否有影响程序的进行。 MyExit1 = lstop - stopp * MinPoint; // 首单多头止损 MyProfit1 = MyEntryPrice1 + 50*MinPoint; //首单多头止盈