资源描述:
《杨路BS指标公式.docx》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、杨路BS指标公式DRAWGBK(C>0,RGB(0,0,00),RGB(0,0,0),0,'12',0);生命线:=MA(C,60);牛熊线:=MA(C,120);DRAWBAND(生命线,RGB(200,50,55),牛熊线,RGB(0,100,50));DRAWKLINE(H,O,L,C);股价96:="Y395";增幅96:=XMA(XMA(XMA(股价96,3),3),3)-REF(XMA(XMA(XMA(股价96,3),3),3),1);X396:=XMA(股价96,3);J396:=(XMA(股价96,3)*3+0.5*股价96-0.
2、5*REF(股价96,1)+增幅96)/3;Y396:IFF(CURRBARSCOUNT=1,J396,X396),LINETHICK2,COLORGREEN;IF(Y396>REF(Y396,1),Y396,DRAWNULL),COLORRED,LINETHICK2;高险区1:Y396*1.1,COLORLIRED,COLORFFFF00;高风区2:Y396*1.125,COLORLIRED,COLORFF0000;高风区3:Y396*1.15,COLORLIRED,COLOR00FF00;良机区1:Y396*0.9,COLORLIBLUE,C
3、OLOR00FFFF;良机区2:Y396*0.875,COLORLIBLUE,COLORFF00FF;良机区3:Y396*0.85,COLOR0000FF;WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;WSR2:=CROSS(WSR1,5);WSR3:=CROSS(8,WSR1);WSR4:=CROSS(WSR1,-5);WSR5:=CROSS(WSR1,-8);WSR6:=WSR3;WSR7:=WSR4ORWSR5;WSR8:=WSR7ANDFILTER(WSR7,5);WSR10:DRAWICON(WSR
4、8,L-0.01,1);WSR9:=WSR6ANDFILTER(WSR6,5);WSR11:DRAWICON(WSR9,H+0.01,2);WSR12:=O<良机区3;DRAWICON(WSR12ANDFILTER(WSR12,12),L-0.03,9);W1:=C>REF(C,1)ANDMACD[0ANDV][REF(C,1)ANDMACD<0ANDMACD]5、(3*HIGH+LOW+OPEN+2*CLOSE)/7;VAR3:=SUM(AMOUNT,10)/VAR1/7;VAR4:=DMA(VAR2,VOL/VAR3);VAR5:=(CLOSE-VAR4)/VAR4*100,COLORLIMAGENTA;XG1:=CROSS(VAR5,MA(VAR5,2))ANDVAR5<0ANDC<(HHV(H,5)*0.88)ANDREF(O>C,1)ANDREF(O>C,2);XG3:=XGANDXG1ANDL<良机区1;WSR13:=O>良机区3ANDL<良机区1ORXG3;DRAWICON(WSR13ANDF
6、ILTER(WSR13,10),L-0.03,23);WSR14:=H>高风区3;DRAWICON(WSR14ANDFILTER(WSR14,15),H+0.03,19);WSR15:=H<高风区3ANDH>高风区2;DRAWICON(WSR15ANDFILTER(WSR15,5),H+0.03,15);WSR16:=(INDEXC-MA(INDEXC,3))/MA(INDEXC,3);WSR17:=(INDEXC-MA(INDEXC,8))/MA(INDEXC,8);WSR18:=(INDEXC-MA(INDEXC,18))/MA(INDEXC
7、,18);WSR19:=(WSR16+WSR17+WSR18)/3;WSR20:=(C-MA(C,3))/MA(C,3);WSR21:=(C-MA(C,8))/MA(C,8);WSR22:=(C-MA(C,18))/MA(C,18);WSR23:=(WSR20+WSR21+WSR22)/3;WSR24:=(WSR19>REF(WSR19,1)ANDCROSS(WSR23,WSR19))*50;WSR25:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6);WSR26:=(INDEXC-MA(INDEXC,12))/MA(IND
8、EXC,12);WSR27:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24);WSR28:=(WSR25+WS