一、指標(biāo)公式源碼
N:=13;N1:=102;M:=7;
VAR2:=CLOSE*VOL;
VAR3:=EMA((EXPMA(VAR2,3)/EXPMA(VOL,3)+EXPMA(VAR2,6)/EXPMA(VOL,6)
+EXPMA(VAR2,12)/EXPMA(VOL,12)+EXPMA(VAR2,24)/EXPMA(VOL,24))/4,N);
SUP:1.06*VAR3,COLORLIGREEN;
SDN:VAR3*0.94,COLORLIGREEN;
VAR4:=EXPMA(CLOSE,9);
LUP:EXPMA(VAR4*1.14,5),COLORBLUE;
LDN:EXPMA(VAR4*0.86,5),COLORBLUE;
DRAWBAND(LUP,RGB(15,15,158),LDN,RGB(15,15,158));
DRAWBAND(SUP,RGB(46,99,46),SDN,RGB(46,99,46));
AAX:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:AAX*N1/100,LINETHICK2,COLORYELLOW;
通道2:AAX*(200-N1)/100,LINETHICK2,COLORYELLOW;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道3:(1+M/100)*DD,LINETHICK2,COLORMAGENTA;
通道4:(1-M/100)*DD,LINETHICK2,COLORMAGENTA;
DRAWICON(L<=SDN AND L<=LDN AND L<=通道2 AND L<=通道4 AND O<=C,L*0.97,1);
DRAWICON(H>=SUP AND H>=LUP AND H>=通道1 AND H>=通道3,H*1.03,2);
STICKLINE(C>=O,H,L,0,1),COLOR0000FF;
STICKLINE(C>=O,C,O,2.8,0),COLOR0000BB;
STICKLINE(C>=O,C,O,2,0),COLOR0000DD;
STICKLINE(C>=O,C,O,1.2,0),COLOR0000EE;
STICKLINE(C>=O,C,O,0.4,0),COLOR0000FF;
STICKLINE(C<O,H,L,0,1),COLORFFFF00;
STICKLINE(C<O,C,O,2.8,0),COLOR999900;
STICKLINE(C<O,C,O,2,0),COLORBBBB00;
STICKLINE(C<O,C,O,1.2,0),COLORDDDD00;
STICKLINE(C<O,C,O,0.4,0),COLORFFFF00;
二、薛斯通道組合交易系統(tǒng)公式
{多頭買入(買開)} ENTERLONG:L<="薛斯組合.SDN" AND L<="薛斯組合.LDN" AND L<="薛斯組合.通道2" AND L<="薛斯組合.通道4" AND O<=C ;
{多頭賣出(賣平)} EXITLONG:H>="薛斯組合.SUP" AND H>="薛斯組合.LUP" AND H>="薛斯組合.通道1" AND H>="薛斯組合.通道3";
三、條件選股公式
L<="薛斯組合.SDN" AND L<="薛斯組合.LDN" AND L<="薛斯組合.通道2" AND L<="薛斯組合.通道4" AND O<=C ;
|