If( MarketPosition==1 && BarsSinceLastEntry>0 && L<L[1]) // 止赢条件表达式
{
Sell(0,min(open,L[1]-1*MinMove*PriceScale));
A_SendOrderEx(Enum_Sell,Enum_Exit,10,min(open,L[1]-1*MinMove*PriceScale),oid);
}
图表信号,我怕出现持仓不一致,后面用个a函数会有问题吗
图表函数和A函数最好不要混用,担心发单不成交,可以借助交易助手的功能: https://www.tbquant.net/helper?navigate=tbquant&cid=674