If((Close[1]>Value1[1] and Close[2]<Value1[2] && KValue[1] > DValue[1] && ZL[1]>SH[1]) or
(Value1[1]>Value2[1] and Value1[2]<Value2[2] && ZL[1]>SH[1] && Vol[1]> 1.25 * AvgVol5[1] && KValue[1] > DValue[1]) Or
(KValue[1]>DValue[1] and KValue[2]<DValue[2] && Close[1] > Value1[1] && ZL[1]>SH[1]) Or
(RSIValue[1]>70 and RSIValue[2]<70))//条件
{
Buy(Lots,open+MinMove*PriceScale);
}
//SellShort 什么作卖出动作
If((PreLow[1]>Close[1] and PreLow[2]<Close[2] && KValue[1] > DValue[1] && SH>ZL) Or
(DValue[1]>KValue[1] and DValue[2]<KValue[2] && Close[1] < Value1[1] && Value1[1] < Value2[1]) Or
(PreKValue[1]>KValue[1] and PreKValue[2]<KValue[2] && SH[1]>ZL[1]))//条件
{
SellShort(Lots,open-MinMove*PriceScale);
}
// Sell 什么做多平仓动作
If((DValue[1]>KValue[1] and DValue[2]<KValue[2]) or Close[1] < Value1 [1]* 1.001)//条件
{
Sell(Lots,open-MinMove*PriceScale);;
}
//BuyToCover什么做空平仓动作
If((KValue[1]>DValue[1] and KValue[2]<DValue[2]) or Close[1] > Value1[1] * 1.001)//条件
{
BuyToCover(Lots,open+MinMove*PriceScale);
}
End