起爆之单线擒牛 主图指标 通达信 贴图 加密
{单线擒牛主图源码}
短趋势线:MA(CLOSE,13),COLORRED,LINETHICK2;
涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),COLORRED,LINETHICK2;
X_1:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL);
跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLORGREEN,LINETHICK2;
X_2:=((CLOSE-REF(MA(CLOSE,20),1))/20+短趋势线)*1.2;
X_3:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
X_4:=HHV(X_3>20,10);
X_5:=5;
X_6:=REF(HIGH,X_5)=HHV(HIGH,2*X_5+1);
X_7:=FILTER(X_6,X_5);
X_8:=BACKSET(X_7,X_5+1);
X_9:=FILTER(X_8,X_5);
X_10:=REF(LOW,X_5)=LLV(LOW,2*X_5+1);
X_11:=FILTER(X_10,X_5);
X_12:=BACKSET(X_11,X_5+1);
X_13:=FILTER(X_12,X_5);
X_14:=(REF(LLV(LOW,2*X_5),1)+REF(HHV(HIGH,2*X_5),1))/2;
X_15:=(HIGH+LOW)/2;
X_16:=X_9 AND NOT(X_13 AND X_14>=X_15) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
X_17:=X_13 AND NOT(X_9 AND X_14<X_15);
X_18:=X_9 AND NOT(X_13 AND X_14>=X_15);
X_19:=REF(BARSLAST(X_16),1)+1;
X_20:=BACKSET(X_16 AND COUNT(X_17,X_19)>0,LLVBARS(IF(X_17,LOW,10000),X_19));
X_21:=X_20>REF(X_20,1);
X_22:=BACKSET(X_21,2);
X_23:=X_22>REF(X_22,1);
X_24:=X_23 OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
X_25:=REF(BARSLAST(X_24),1)+1;
X_26:=BACKSET(X_24 AND COUNT(X_18,X_25)>0,HHVBARS(IF(X_18,HIGH,0),X_25));
X_27:=X_26>REF(X_26,1);
X_28:=BACKSET(X_27,2);
X_29:=X_28>REF(X_28,1);
X_30:=BACKSET(ISLASTBAR,BARSLAST(X_29)+1);
X_31:=X_30>REF(X_30,1);
X_32:=BACKSET(ISLASTBAR,BARSLAST(X_23)+1);
X_33:=X_32>REF(X_32,1);
X_34:=BACKSET(X_31,REF(BARSLAST(X_29),1)+2);
X_35:=X_34>REF(X_34,1);
X_36:=BACKSET(X_33,REF(BARSLAST(X_23),1)+2);
X_37:=X_36>REF(X_36,1);
X_38:=BACKSET(X_37,REF(BARSLAST(X_23),1)+2);
X_39:=X_38>REF(X_38,1);
X_40:=BACKSET(X_39,REF(BARSLAST(X_23),1)+2);
X_41:=X_40>REF(X_40,1);
X_42:=BACKSET(X_35,REF(BARSLAST(X_29),1)+2);
X_43:=X_42>REF(X_42,1);
X_44:=BACKSET(X_43,REF(BARSLAST(X_29),1)+2);
X_45:=X_44>REF(X_44,1);
DRAWICON(X_31,HIGH*1.01,6);
DRAWICON(X_35,HIGH*1.01,6);
DRAWICON(X_43,HIGH*1.01,6);
DRAWICON(X_45,HIGH*1.01,6);
DRAWICON(X_33,LOW*0.99,9);
DRAWICON(X_37,LOW*0.99,9);
DRAWICON(X_39,LOW*0.99,9);
DRAWICON(X_41,LOW*0.99,9);
- 上一篇公式:自用高准确率 副图/选股指标 通达信 贴图
- 下一篇公式:兴国安邦 副图/选股源码 通达信 贴图 好好赚钱吧