请高手编写一个通达信布林带收口条件选股公式,希望(现在上轨-下轨)⼀前期(上轨-下轨)=0.1至0.3

前期指60日内较大值或最大值
2024-11-27 23:19:46
推荐回答(2个)
回答1:

{上轨}UB:=BOLL+2*STD(CLOSE,20);
{中轨}BOLL:=MA(CLOSE,20);
{下轨}LB:=BOLL-2*STD(CLOSE,20);

XG:(UB-LB)/REF((UB-LB),1)>1.01 AND (UB-LB)/REF((UB-LB),1)<1.03;

回答2:

{上轨}UB:=BOLL+2*STD(CLOSE,20);
{中轨}BOLL:=MA(CLOSE,20);
{下轨}LB:=BOLL-2*STD(CLOSE,20);
BOLL高:=UB-LB;
BOLL大口:=HHV(BOLL高,72);
XG:BOLL高/BOLL大口>0.01 AND BOLL高/BOLL大口<0.05;