期货指南针加仓系统
MA(CLOSE,均线1);
MA(CLOSE,均线2);
MA(CLOSE,均线3);
MA(CLOSE,均线4);
MA(CLOSE,均线5);
BU:=BARSLAST(CLOSE=HHV(CLOSE,N));
SE:=BARSLAST(CLOSE=LLV(CLOSE,N));
KK1:=SE;
KK2:=BU;
LM1:=SE;
LM2:=BU;
OK:=KK1>KK2 AND LM1>LM2;
OK1:=KK1>KK2 AND LM1<LM2;
NOK:=KK2>KK1 AND LM2>LM1;
NOK1:=KK2>KK1 AND LM2<LM1;
STICKLINE(OK1,CLOSE,OPEN,8,0),colorFF00;
STICKLINE(OK1,HIGH,LOW,0,0),colorFF00;
STICKLINE(OK,CLOSE,OPEN,8,0),colorFF;
STICKLINE(OK,HIGH,LOW,0,0),colorFF;
STICKLINE(NOK,CLOSE,OPEN,8,0),colorFF00;
STICKLINE(NOK,HIGH,LOW,0,0),colorFF00;
STICKLINE(NOK1,CLOSE,OPEN,8,0),colorFF;
STICKLINE(NOK1,HIGH,LOW,0,0),colorFF;
BU1:=BARSLAST(CLOSE=HHV(CLOSE,加仓));
BU2:=BARSLAST(CLOSE=LLV(CLOSE,加仓));
CC1:=BU2;
CC2:=BU1;
DRAWICON(CROSS(CC2,CC1) AND KK1<KK2,OPEN*1.006,11);
DRAWICON(CROSS(CC1,CC2) AND KK2<KK1,OPEN*0.995,10);
DRAWICON(CROSS(KK1,KK2),OPEN*0.997,4);
DRAWICON(CROSS(KK2,KK1),OPEN*1.004,5);
DRAWTEXT(CROSS(KK1,KK2),OPEN*0.996,'开多'),colorFFFFFF;
DRAWTEXT(CROSS(KK2,KK1),OPEN*1.005,'开空'),colorFFFFFF;
- 上一篇公式:重趋势--操盘手一号
- 下一篇公式:自动分析系统