 | |  |  |
[通达信]通达信价值合金钢源码公式
2011-4-14 18:39
//n=10 n1=20 m=10 m1=20
LL:=LLV(LOW,(N + M));
HH:=HHV(HIGH,(N + M));
SR:=(2 * HH - LL);
SS:=(2 * LL - HH);
DD:=(SR - SS);
DM:=(DD / 2);
DKKPX:=(DM + SS);
SDXT:=DKKPX;
LL1:=LLV(LOW,(N1 + M1));
HH1:=HHV(HIGH,(N1 + M1));
SR1:=((2 * HH1) - LL1);
SS1:=((2 * LL1) - HH1);
DD1:=(SR1 - SS1);
DM1:=(DD1 / 2);
SDXT1:=(DM1 + SS1);
AY:=SDXT1;
AA:=SDXT;
YY:=(((HIGH + LOW) + CLOSE) / 3);
A0:=((HIGH + LOW) / 2);
A1:=SMA(A0,13,1);
A2:=HHV(HIGH,24);
A3:=LLV(LOW,24);
STICKLINE(YY < REF(AA,1),OPEN,CLOSE,7 ,0), COLORCYAN;
STICKLINE(YY < REF(AA,1),high,CLOSE,1 ,0), COLORCYAN;
STICKLINE(YY < REF(AA,1),OPEN,low,1 ,0), COLORCYAN;
STICKLINE(YY < REF(AA,1) and A2 = REF(A2,0),OPEN,CLOSE, 7,0), COLORCYAN;
STICKLINE(YY < REF(AA,1) and A2 = REF(A2,0),OPEN,low,1 ,0), COLORCYAN;
STICKLINE(YY < REF(AA,1) and A2 = REF(A2,0),OPEN,low,1 ,0), COLORCYAN;
STICKLINE(YY > REF(AA,1) and A3 > REF(A3,0),OPEN,CLOSE, 7,0), COLORRED;
STICKLINE(YY > REF(AA,1) and A3 > REF(A3,0),OPEN,CLOSE, 1,0), COLORRED;
STICKLINE(YY > REF(AA,1) and A3 > REF(A3,0),OPEN,CLOSE, 1,0), COLORRED;
STICKLINE(YY > REF(AA,1) and A3 = REF(A3,0),OPEN,CLOSE, 7,0), COLORRED;
STICKLINE(YY > REF(AA,1) and A3 = REF(A3,0),high,CLOSE, 1,0), COLORRED;
STICKLINE(YY > REF(AA,1) and A3 = REF(A3,0),OPEN,low, 1,0), COLORRED;
STICKLINE(YY > AA and YY < AY,OPEN,CLOSE,7 ,0), COLORYELLOW;
STICKLINE(YY > AA and YY < AY,high,CLOSE,1 ,0), COLORYELLOW;
STICKLINE(YY > AA and YY < AY,OPEN,low,1 ,0), COLORYELLOW;
STICKLINE(YY < AA and YY > AY,OPEN,CLOSE,7 ,0), COLORYELLOW;
STICKLINE(YY < AA and YY > AY,high,CLOSE,1 ,0), COLORYELLOW;
STICKLINE(YY < AA and YY > AY,OPEN,low,1,0), COLORYELLOW;
红色持股 黄色关注 青色持币 |

| |  | |  |
|