同花顺公式 趋势价拐点 主图 趋势公式 YC_AA:=(O+C+H+L)/4; 短线:DMA(YC_AA,VOL/SUM(VOL,3)),colorbrown,DOTLINE ; 趋势线:DMA(YC_AA,VOL/SUM(VOL,5)),colorgreen ;// 强势线:DMA(YC_AA,VOL/SUM(VOL,10)),colorgreen; 强牛线:DMA(YC_AA,VOL/SUM(VOL,20)),colorgreen ; 季:DMA(YC_AA,VOL/SUM(VOL,90)),colorgreen ; 生命线:DMA(YC_AA,VOL/SUM(VOL,60)),colorgreen; 半年:DMA(YC_AA,VOL/SUM(VOL,120)),colorgreen ; 年:DMA(YC_AA,VOL/SUM(VOL,240)),colorblue; 二年:DMA(YC_AA,VOL/SUM(VOL,480)),colorlimagenta, LINETHICK1; DRAWBAND(趋势线,120,二年,RGB(39,139,39)); DRAWTEXT(ISLASTBAR,趋势线,'←趋势线'),LINETHICK3, coloryellow; 角度:=ATAN((趋势线/REF(趋势线,1)-1)*100)*180/3.1416,NODRAW; IF(角度>0,趋势线,DRAWNULL),colorred; 角度2:=ATAN((强势线/REF(强势线,1)-1)*100)*180/3.1416,NODRAW; ........ |
