《股票-同花顺枪手瞄准BS均线买卖主图指标公式.docx》由会员分享,可在线阅读,更多相关《股票-同花顺枪手瞄准BS均线买卖主图指标公式.docx(11页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、同花顺枪手瞄准BS均线买卖主图指标公式VAR1:=(100-(90*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21);VAR2:=(100-(90*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21);VAR3:=(100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6),34);DRAWICON(CROSS(VAR2,MA(VAR3,6),(LOW*0.998),8);STICKLINE(VAR2MA(VAR3,6),CLOSE,OPEN,7,1),colo
2、rgreen;STICKLINE(VAR2MA(VAR3,6),LOW,(MIN(OPEN,CLOSE)*1.001),0.6,0),colorgreen;STICKLINE(VAR2MA(VAR3,6),MAX(OPEN,CLOSE),HIGH,0.6,0),colorgreen;STICKLINE(VAR2MA(VAR3,6),OPEN,CLOSE,7,1),color4440FF;STICKLINE(VAR2MA(VAR3,6),HIGH,MAX(CLOSE,OPEN),0.6,0),color4440FF;STICKLINE(VAR2MA(VAR3,6),LOW,(MIN(CLOSE,
3、OPEN)*1.001),0.8,0),color4440FF;STICKLINE(OPENCLOSE)AND(VAR2MA(VAR3,6),(OPEN*0.998),(CLOSE*1.0025),4.5,0),colorgreen;VAR1:=(100-(90*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21);VAR2:=(100-(90*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21);VAR3:=(100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,
4、6),34);DRAWICON(CROSS(VAR2,MA(VAR3,6),(LOW*0.998),8);STICKLINE(VAR2MA(VAR3,6),CLOSE,OPEN,7,1),colorgreen;STICKLINE(VAR2MA(VAR3,6),LOW,(MIN(OPEN,CLOSE)*1.001),0.6,0),colorgreen;STICKLINE(VAR2MA(VAR3,6),MAX(OPEN,CLOSE),HIGH,0.6,0),colorgreen;STICKLINE(VAR2MA(VAR3,6),OPEN,CLOSE,7,1),color4440FF;STICKLI
5、NE(VAR2MA(VAR3,6),HIGH,MAX(CLOSE,OPEN),0.6,0),color4440FF;STICKLINE(VAR2MA(VAR3,6),LOW,(MIN(CLOSE,OPEN)*1.001),0.8,0),color4440FF;STICKLINE(OPENCLOSE)AND(VAR2MA(VAR3,6),(OPEN*0.998),(CLOSE*1.0025),4.5,0),colorgreen;STICKLINE(OPENCLOSE)AND(VAR2MA(VAR3,6),(CLOSE*0.998),(OPEN*1.0025),4.5,0),color4440FF
6、;STICKLINE(OPENCLOSE)AND(VAR2MA(VAR3,6),CLOSE,OPEN,7,0),colorgreen;DRAWTEXT(CROSS(VAR2,MA(VAR3,6),(LOW*0.988),),coloryellow,linethick3;DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH*1.02),),colorgreen,linethick3;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,8);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1);B1:=REF(C,
7、A1+1)CANDREF(DIFF,A1+1)DIFFANDCROSS(DIFF,DEA);DRAWTEXT(IF(B10,1,0),L-0.1,大役),Color00FFFC;RSV:=(CLOSE-LLV(LOW,9)/(HHV(HIGH,9)-LLV(LOW,9)*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);A2:=BARSLAST(REF(CROSS(K,D),1);B2:=REF(C,A2+1)CANDREF(K,A2+1)KANDCROSS(K,D);DRAWTEXT(IF(B20,1,0),L-0.25,瞄准),Color6C8CCF;LC:=REF(CL
8、OSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1);B3:=REF(C,A3+1)CANDREF(RSI1,A3+1)RSI1ANDCROSS(RSI1,RSI2);DRAWTEXT(IF(B30,1,0),L-0.4,瞄准),ColorFF05FF;C1:=BARSLAST(REF(CROSS(DEA,DIFF),1);D1
9、:=REF(C,C1+1)CANDREF(DIFF,C1+1)DIFFANDCROSS(DEA,DIFF);DRAWTEXT(IF(D10,1,0),H+0.1,撤退),ColorB27800;C2:=BARSLAST(REF(CROSS(D,K),1);D2:=REF(C,C2+1)CANDREF(K,C2+1)KANDCROSS(D,K);DRAWTEXT(IF(D20,1,0),H+0.25,撤退),Color0AB000;C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1);D3:=REF(C,C3+1)CANDREF(RSI1,C3+1)RSI1ANDCROSS(
10、RSI2,RSI1);DRAWTEXT(IF(D30,1,0),H+0.4,大撤退),ColorFF0000;MA8:MA(C,8),colorwhite;MA34:MA(C,20.5),coloryellow;MA55:MA(C,41),colorcyan;SQ1:=OMA(C,20.5)ANDCMA(C,20.5);SQ2:=MA(C,8)MA(C,20.5);SQ3:=MA(C,20.5)MA(C,41);SQ4:=MA34=REF(MA34,1);SQ5:=VMA(V,5)*1.01ANDVMA(V,10)*1.01;SQ:=SQ1ANDSQ2ANDSQ3ANDSQ4ANDSQ5;DR
11、AWTEXT(SQ,L,冲锋),colormagenta;进攻:=REF(C,REF(HHVBARS(V,21),0),colorgreen,linethick2;m1:=MA(CLOSE,1),linethick2;a:=V1*REF(V,1)AND(C/REF(C,1)-1)*1009.5ANDm1=进攻,colorred;DRAWICON(CROSS(a,1),L*0.98,3),colorwhite;DRAWTEXT(a,L*0.93,进攻),LINETHICK1,Color6C65FF;STICKLINE(OPENCLOSE)AND(VAR2MA(VAR3,6),(CLOSE*0.9
12、98),(OPEN*1.0025),4.5,0),color4440FF;STICKLINE(OPENCLOSE)AND(VAR2MA(VAR3,6),CLOSE,OPEN,7,0),colorgreen;DRAWTEXT(CROSS(VAR2,MA(VAR3,6),(LOW*0.988),),coloryellow,linethick3;DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH*1.02),),colorgreen,linethick3;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,8);A1:=BARSLA
13、ST(REF(CROSS(DIFF,DEA),1);B1:=REF(C,A1+1)CANDREF(DIFF,A1+1)DIFFANDCROSS(DIFF,DEA);DRAWTEXT(IF(B10,1,0),L-0.1,大役),Color00FFFC;RSV:=(CLOSE-LLV(LOW,9)/(HHV(HIGH,9)-LLV(LOW,9)*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);A2:=BARSLAST(REF(CROSS(K,D),1);B2:=REF(C,A2+1)CANDREF(K,A2+1)KANDCROSS(K,D);DRAWTEXT(IF(B20,1,
14、0),L-0.25,瞄准),Color6C8CCF;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1);B3:=REF(C,A3+1)CANDREF(RSI1,A3+1)RSI1ANDCROSS(RSI1,RSI2);DRAWTEXT(IF(B30,1,0),L-0.4,瞄准),ColorFF05FF;C1
15、:=BARSLAST(REF(CROSS(DEA,DIFF),1);D1:=REF(C,C1+1)CANDREF(DIFF,C1+1)DIFFANDCROSS(DEA,DIFF);DRAWTEXT(IF(D10,1,0),H+0.1,撤退),ColorB27800;C2:=BARSLAST(REF(CROSS(D,K),1);D2:=REF(C,C2+1)CANDREF(K,C2+1)KANDCROSS(D,K);DRAWTEXT(IF(D20,1,0),H+0.25,撤退),Color0AB000;C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1);D3:=REF(C,
16、C3+1)CANDREF(RSI1,C3+1)RSI1ANDCROSS(RSI2,RSI1);DRAWTEXT(IF(D30,1,0),H+0.4,大撤退),ColorFF0000;MA8:MA(C,8),colorwhite;MA34:MA(C,20.5),coloryellow;MA55:MA(C,41),colorcyan;SQ1:=OMA(C,20.5)ANDCMA(C,20.5);SQ2:=MA(C,8)MA(C,20.5);SQ3:=MA(C,20.5)MA(C,41);SQ4:=MA34=REF(MA34,1);SQ5:=VMA(V,5)*1.01ANDVMA(V,10)*1.0
17、1;SQ:=SQ1ANDSQ2ANDSQ3ANDSQ4ANDSQ5;DRAWTEXT(SQ,L,冲锋),colormagenta;进攻:=REF(C,REF(HHVBARS(V,21),0),colorgreen,linethick2;m1:=MA(CLOSE,1),linethick2;a:=V1*REF(V,1)AND(C/REF(C,1)-1)*1009.5ANDm1=进攻,colorred;DRAWICON(CROSS(a,1),L*0.98,3),colorwhite;DRAWTEXT(a,L*0.93,进攻),LINETHICK1,Color6C65FF;同花顺枪手瞄准BS均线买卖主图指标公式实例图解:同花顺枪手瞄准BS均线买卖主图指标公式