九毛八公式指标
请老师将下面“绝密买点 主图和绝密量能 副图”合改为一个选股公式,要求:同时发出买入信号时选股。谢谢! 绝密买点 主图 {用法:配合"绝密量能 副图"使用,量价同一天发出买入信号} A1:EMA(C,3),COLORWHITE; A2:EMA(C,5),COLORYELLOW; A3:EMA(C,7),COLORMAGENTA; A4:EMA(C,12),COLORGREEN; A5:EMA(C,20),COLORRED; A6:EMA(C,50),COLORBLUE,LINETHICK2; SS:=CROSS(A1,A5) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 ; SSS:=CROSS(A1,A5) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018; DRAWICON(SS ,L-0.00,5); 绝密量能 副图 {用法:配合"绝密买点 主图"使用,量价同一天发出买入信号} VOLUME:=VOL,VOLSTICK; MAVOL1:=MA(VOLUME,M1); MAVOL2:=MA(VOLUME,M2); 绿低量:=13; 蓝低量:=55; 灰低量:=100; N1:=21; SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)); 量能饱和:IF(SAT>1,1,SAT)*100,COLOR00AAFF,NODRAW; 中点:=REFDATE(HHV(V,180)*0.5,DATE); STICKLINE(CURRBARSCOUNT=N1,中点*1.9,中点*1.5,100,1),COLOR00AAFF; STICKLINE(CURRBARSCOUNT=N1,中点*1.88,中点*1.52,量能饱和,0),COLOR0077FF; DRAWTEXT(CURRBARSCOUNT=N1+3,中点*1.8,'饱和度'),COLORYELLOW; {=====================================================} H_L:=0.1*CONST(HHV(VOL,240)); {MAV10:MA(V,10),COLORYELLOW;} 启动5:=MA(V,5),COLORWHITE; 洗盘40:=MA(V,40),COLORBLUE; 异动135:=MA(V,135),COLORMAGENTA; VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量} STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,1,-1),COLOR00C0C0; 量:VOL,VOLSTICK; 换手: VOL*10000/FINANCE(7),NODRAW; {DYNAINFO(37)*100} 换10T:=SUM(换手,10),NODRAW; 倍数:=1.9; 倍量: VOL>=REF(V,1)*倍数 AND (IF(C
公式模块:
CV:=CLOSE;
bbiboll:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4; UPR:=BBIBOLL+6*STD(BBIBOLL,11); DWN:=BBIBOLL-6*STD(BBIBOLL,11); QJJ:=vol/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2))); HSL:=(XVL/3)/1.15; 攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22)); LLJX:=EMA(攻击,3); B1:=IF(SUM(LLJX,1)>REF(MA(SUM(LLJX,1),1),1),SUM(LLJX,1),DRAWNULL); B2:=IF(SUM(LLJX,2)>REF(MA(SUM(LLJX,2),1),1),SUM(LLJX,2),DRAWNULL); B3:=IF(SUM(LLJX,3)>REF(MA(SUM(LLJX,3),1),1),SUM(LLJX,3),DRAWNULL); B4:=IF(SUM(LLJX,4)>REF(MA(SUM(LLJX,4),1),1),SUM(LLJX,4),DRAWNULL); B5:=IF(SUM(LLJX,5)>REF(MA(SUM(LLJX,5),1),1),SUM(LLJX,5),DRAWNULL); B6:=IF(SUM(LLJX,6)>REF(MA(SUM(LLJX,6),1),1),SUM(LLJX,6),DRAWNULL); B7:=IF(SUM(LLJX,7)>REF(MA(SUM(LLJX,7),1),1),SUM(LLJX,7),DRAWNULL); B8:=IF(SUM(LLJX,8)>REF(MA(SUM(LLJX,8),1),1),SUM(LLJX,8),DRAWNULL); B9:=IF(SUM(LLJX,9)>REF(MA(SUM(LLJX,9),1),1),SUM(LLJX,9),DRAWNULL); B10:=IF(SUM(LLJX,10)>REF(MA(SUM(LLJX,10),1),1),SUM(LLJX,10),DRAWNULL); XG1:=B1 AND B2 AND B3 AND B4 AND B5 AND B6 AND B7 AND B8 AND B9 AND B10 AND (CLOSE-OPEN)>=(UPR-BBIBOLL) AND V/REF(V,1)>=1.9; A1:=EMA(C,3),COLORWHITE; A2:=EMA(C,5),COLORYELLOW; A3:=EMA(C,7),COLORMAGENTA; A4:=EMA(C,12),COLORGREEN; A5:=EMA(C,20),COLORRED; A6:=EMA(C,50),COLORBLUE,LINETHICK2; SS:=crOSS(A1,A5) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 ; XG:XG1 AND SS;