//跟踪止盈:盈利超过tracProfis后回撤超过tracLoss平仓---------------------------
If(tracLoss>0 And tracProfis>0)
{
If((maxProfit-curProfit)>=tracLoss And maxProfit>tracProfis) str = "跟踪止盈平仓";
}
//回撤止盈:盈利超过returnProfis后回撤平仓-------------------------------------
If(returnProfis>0 And maxProfit>0.9*returnProfis)
{
If(maxProfit>0.9*returnProfis And maxProfit<=1.1*returnProfis And curProfit<=0.1*maxProfit) str = "盈利回撤止盈平仓1倍90%";
If(maxProfit>1.1*returnProfis And maxProfit<=2*returnProfis And curProfit<=0.5*maxProfit) str = "盈利回撤止盈平仓1-2倍50%";
If(maxProfit>2*returnProfis And maxProfit<=3*returnProfis And curProfit<=0.6*maxProfit) str = "盈利回撤止盈平仓2-3倍40%";
If(maxProfit>3*returnProfis And maxProfit<=4*returnProfis And curProfit<=0.7*maxProfit) str = "盈利回撤止盈平仓3-4倍30%";
If(maxProfit>4*returnProfis And maxProfit<=5*returnProfis And curProfit<=0.8*maxProfit) str = "盈利回撤止盈平仓4-5倍20%";
If(maxProfit>6*returnProfis And curProfit<=0.9*maxProfit) str = "盈利回撤止盈平仓大于6倍10%";