If (close >ma5 and close > ma10 and Close > ma20 and close > ma30 and ma5 > ma10 And ma10 >ma20 And ma20 > ma30 And ma5 > ma30 And CurrentTime > 0.090100 And CurrentTime < 0.145500)
{
Buy (0,NextOpen);
}Else
If ( close >ma5 and close > ma10 and Close > ma20 and close > ma30 and ma5 > ma10 And ma10 >ma20 And ma20 > ma30 And ma5 > ma30 And CurrentTime > 0.145500 And CurrentTime < 0.150000 And MarketPosition==0)
{
Buy (0,0);
}
//这是平多语句
If (Close < ma5 And CurrentTime > 0.090100 And CurrentTime < 0.145500)
{
Sell(0,NextOpen);
}Else
If (Close < ma5 And CurrentTime > 0.145500 And CurrentTime < 0.150000 And MarketPosition==1)
{
Sell(0,0);
}
// 这时做空.
If (close < ma5 and close < ma10 and Close < ma20 and close < ma30 and ma5 < ma10 And ma10 < ma20 And ma20 < ma30 And ma5 < ma30 And CurrentTime > 0.090100 And CurrentTime < 0.145500)
{
SellShort(0,NextOpen);
}Else
If (close < ma5 and close < ma10 and Close < ma20 and close < ma30 and ma5 < ma10 And ma10 < ma20 And ma20 < ma30 And ma5 < ma30 And CurrentTime > 0.145500 And CurrentTime < 0.150000 And MarketPosition==0)
{
SellShort(0,0);
}
//这是平空语句
If (Close > ma5 And CurrentTime > 0.090100 And CurrentTime < 0.145500)
{
BuyToCover(0,NextOpen);
}Else
If (Close > ma5 And CurrentTime > 0.145500 And CurrentTime < 0.150000 And MarketPosition==-1)
{
BuyToCover(0,0);
}