- 金币:
-
- 奖励:
-
- 热心:
-
- 注册时间:
- 2006-3-2
|
|
金融天骄(375811238) 00:31:52
1:期货交易A
input:N(10,1,500);
HH:=HHV(HIGH,N);
LL:=LLV(LOW,N);
HH1:=BARSLAST((HH > REF(HH,1)));
LL1:=BARSLAST((LL < REF(LL,1)));
PARTLINE((HH1 < LL1),LL),LINETHICK2,colorBB0066;
PARTLINE((HH1 > LL1),HH),LINETHICK2,color1B8800;
STICKLINE((HH1 < LL1),CLOSE,OPEN,9,0),colorFF;
STICKLINE((HH1 < LL1),HIGH,LOW,0,0),colorFF;
STICKLINE((HH1 > LL1),CLOSE,OPEN,9,0),colorFF0000;
STICKLINE((HH1 > LL1),HIGH,LOW,0,0),colorFF0000;
DRAWICON(CROSS(HH1,LL1),HH,11);
DRAWICON(CROSS(LL1,HH1),LL,12);
DRAWTEXT(CROSS(HH1,LL1),HH,'开空平多'),colorFF00;
DRAWTEXT(CROSS(LL1,HH1),LL,'开多平空'),colorFF00FF;
DRAWTEXT(FILTER(((HH1 < REF(HH1,1)) AND (HH1 < LL1)),90),LOW,'♂加多'),colorFF00FF;
DRAWTEXT(FILTER(((LL1 < REF(LL1,1)) AND (HH1 > LL1)),90),HIGH,'♀加空'),colorFF00;
2:期货交易C
TYM:=(HHV(HIGH,20) - (0.5 * (HHV(HIGH,20) - LLV(LOW,20))));
PARTLINE(ALL((CLOSE > TYM),3),TYM),LINETHICK2,colorFFFF;
PARTLINE(ALL((CLOSE < TYM),3),TYM),LINETHICK2,colorFFFFFF;
STICKLINE(ALL((CLOSE > TYM),3),OPEN,CLOSE,8,0),colorFF00FF;
STICKLINE(ALL((CLOSE > TYM),3),HIGH,LOW,1,0),colorFF00FF;
STICKLINE(ALL((CLOSE < TYM),3),OPEN,CLOSE,8,0),colorFF00;
STICKLINE(ALL((CLOSE < TYM),3),LOW,HIGH,1,0),colorFF00;
3:期货交易E
input:N(13,0,99);
STICKLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),LOW,HIGH,1,0),colorFF;
STICKLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),OPEN,CLOSE,8,0),colorFF;
STICKLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),LOW,HIGH,1,0),colorFF0000;
STICKLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),OPEN,CLOSE,8,0),colorFF0000;
PARTLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),LLV(CLOSE,N)),LINETHICK2,color9966FF;
PARTLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),HHV(CLOSE,N)),LINETHICK2,colorFFFF00;
DRAWICON(CROSS(EMA(CLOSE,34),EMA(CLOSE,13)),HIGH,11);
DRAWICON(CROSS(EMA(CLOSE,13),EMA(CLOSE,34)),LOW,12);
DRAWTEXT(CROSS(EMA(CLOSE,13),EMA(CLOSE,34)),LOW,'开多平空');
DRAWTEXT(CROSS(EMA(CLOSE,34),EMA(CLOSE,13)),HIGH,'开空平多'); |
|
|