2023波段建仓买进 趋势三线游走《通达信+指标+公式+副图+源码》
副图公式源码支持 手机/电脑
CAI1:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
CAI2:=SMA(CAI1,9,1);
CAI3:=MAX(DYNAINFO(3),DYNAINFO(5));
CAI4:=MIN(DYNAINFO(3),DYNAINFO(6));
CAI5:=CAI3-CAI4;
CAI6:=CAI4+CAI5*7/8;
CAI7:=CAI4+CAI5*0.5/8;
CAI8:=(CAI7+CAI6)/2;
CAI9:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1);
CAI11:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
趋势:EMA(CAI9,3),COLORLIBLUE,LINETHICK2;
顶部线:89,COLORGREEN;
底部线:11,COLORYELLOW;
中位线:50,POINTDOT,COLORWHITE;
MV1:SMA(CAI11,9,1),COLORGREEN;
MV2:EMA(MV1,3),COLORLIRED;
MV3:EMA(MV2,3),COLORFFCC66;
MV4:EMA(MV3,3),COLORCC9966;
MV5:EMA(MV4,3),COLORCC6666;
CAI12:=REF(趋势,1)<11 AND CROSS(趋势,11) AND CLOSE<CAI8;
CAI13:=REF(趋势,1)>89 AND REF(趋势,1)<94 AND CROSS(89,趋势);
买进:CAI12,COLORRED;
STICKLINE(趋势<11,趋势,11,5,0),COLORYELLOW;
STICKLINE(趋势>89,趋势,89,5,0),COLORGREEN;
DRAWTEXT(买进,趋势+3.5,'买进'),COLORRED;
DRAWTEXT(CAI13,趋势+3.5,'卖出'),COLORLIBLUE;
DRAWICON(买进,趋势+3.5,1);
选股公式源码
{选股公式:买进}
CAI1:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
CAI2:=SMA(CAI1,9,1);
CAI3:=MAX(DYNAINFO(3),DYNAINFO(5));
CAI4:=MIN(DYNAINFO(3),DYNAINFO(6));
CAI5:=CAI3-CAI4;
CAI6:=CAI4+CAI5*7/8;
CAI7:=CAI4+CAI5*0.5/8;
CAI8:=(CAI7+CAI6)/2;
CAI9:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1);
趋势:=EMA(CAI9,3),COLORLIBLUE,LINETHICK2;
CAI12:=REF(趋势,1)<11 AND CROSS(趋势,11) AND CLOSE<CAI8;
买进:CAI12,COLORRED;
{卖出公式:卖出}
CAI1:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
CAI2:=SMA(CAI1,9,1);
CAI3:=MAX(DYNAINFO(3),DYNAINFO(5));
CAI4:=MIN(DYNAINFO(3),DYNAINFO(6));
CAI5:=CAI3-CAI4;
CAI6:=CAI4+CAI5*7/8;
CAI7:=CAI4+CAI5*0.5/8;
CAI8:=(CAI7+CAI6)/2;
CAI9:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1),3,1);
趋势:=EMA(CAI9,3),COLORLIBLUE,LINETHICK2;
CAI13:=REF(趋势,1)>89 AND REF(趋势,1)<94 AND CROSS(89,趋势);
卖出:CAI13;