宝塔线选股公式源码经典

| 淑娟

宝塔线主要是利用条线颜色的变化来判断股票价格的未来涨跌趋势。今天小编整理了宝塔线选股公式源码经典供大家参考,一起来看看吧!

宝塔线选股公式源码经典

宝塔线选股公式源码经典

AA:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)=REF(CLOSE,5)),IF(REF(CLOSE,5)

BB:=CLOSEREF(CLOSE,3) AND IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) OR (REF(CLOSE,2)>REF(CLOSE,4) AND REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));

fh:=AA AND CLOSE>REF(OPEN,2);

fl:=BB AND CLOSE

翻红:IF(fh,50,0),colorred;

翻绿:IF(fl,50,100),COLORGREEN;

宝塔线三平底翻红选股公式和源码

主图公式:

VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);

VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA

OR VARB OR VARC,CLOSE,REF(CLOSE,1),3,1),COLORRED;

VARD:=CLOSE

VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR

VAR17 OR VAR18,CLOSE,REF(CLOSE,1),3,0),COLORFFFF00;

VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR

VAR17 OR VAR18,1) AND VAR1;

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORFFFF00;

VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)

AND VARD;

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,1),COLORRED;

选股公式源码:

VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);

VARD:=CLOSE

VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);

VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

XG:REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;

通达信布林宝塔线主图指标公式

N:=11;M:=6;

CV:=CLOSE;

BBIBOLL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;

UPR:BBIBOLL+M×STD(BBIBOLL,N);

DWN:BBIBOLL-M×STD(BBIBOLL,N);

B1:=REF(C,1);B2:=REF(C,2);

SS:=IF(CREF(C,1) AND REF(C,1)=REF(C,2),1,IF(CREF(C,1) AND REF(C,1)=REF(C,2),-1,IF(CREF(C,2) AND REF(C,2)REF(C,1),2,IF(CREF(C,2) AND REF(C,2)REF(C,1),-2,0))));

SM:=IF(REF(SS,1)0 OR REF(SS,1)0,REF(SS,1),IF(REF(SS,2)0 OR REF(SS,2)0,REF(SS,2),IF(REF(SS,3)0 OR REF(SS,3)0,REF(SS,3),IF(REF(SS,5)0 OR REF(SS,5)0,REF(SS,5),IF(REF(SS,6)0 OR REF(SS,6)0,REF(SS,6),IF(REF(SS,7)0 OR REF(SS,7)0,REF(SS,7),0))))));

TOW1:=IF(CREF(C, 1), C,REF(C, 1)),POINTDOT,COLORWHITE;

TOW2:=IF((SS=-1 OR SS=-2) AND SM0, B2,TOW1),POINTDOT,COLORWHITE;

TOWER:IF(TOW1TOW2, TOW1,TOW2),POINTDOT,COLORWHITE;

STICKLINE(CLOSE=REF(C,1),CLOSE,REF(C,1),3,1),COLORRED;

STICKLINE(CLOSEREF(C,1),CLOSE,REF(C,1),3,0),COLORGREEN;

STICKLINE(REF(C,1)=REF(C,2) AND CLOSEREF(C,1),REF(C,1),MAX(REF(C,2),CLOSE),3,1),COLORRED;

STICKLINE(REF(C,1)REF(C,2) AND CLOSE=REF(C,1),REF(C,1),MIN(REF(C,2),CLOSE),3,0),COLORGREEN;

LC:=REF(C,1),NODRAW;

LC2:=REF(C,2),NODRAW;

平底:=LCLC2&&C=LC,NODRAW;

收阳:=CO,NODRAW;

XG:=平底AND收阳,NODRAW;

DRAWICON(XG,LC×0.98,1);

29910