准确显示趋势介入点,三种方案同时显示,红买绿卖! 操作线:3*(SMA(((CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100), 9, 1))-2*(SMA((SMA(((CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100), 9, 1)), 3, 1)),colorred,LINETHICK2; 趋势线:EMA((SMA(((CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100), 9, 1)), 12),COLOR00FF00,LINETHICK1; 买卖差:=操作线-趋势线; STICKLINE(买卖差>=0,(操作线-买卖差*0.05),(操作线-买卖差*0.15),3,0) ,COLOR00ffff; STICKLINE(买卖差>=0,(操作线-买卖差*0.2),(操作线-买卖差*0.35),3,0) ,COLOR00ccff; STICKLINE(买卖差>=0,(操作线-买卖差*0.4),(操作线-买卖差*0.55),3,0) ,COLOR0099ff; STICKLINE(买卖差>=0,(操作线-买卖差*0.6),(操作线-买卖差*0.75),3,0) ,COLOR0066ff; STICKLINE(买卖差>=0,(操作线-买卖差*0.8),(操作线-买卖差*0.95),3,0) ,COLOR0000cc; STICKLINE(买卖差<0,(趋势线+买卖差*0.05),(趋势线+买卖差*0.15),3,0) ,COLOR006600; STICKLINE(买卖差<0,(趋势线+买卖差*0.2),(趋势线+买卖差*0.35),3,0) ,COLOR009900; STICKLINE(买卖差<0,(趋势线+买卖差*0.4),(趋势线+买卖差*0.55),3,0) ,COLOR00cc00; STICKLINE(买卖差<0,(趋势线+买卖差*0.6),(趋势线+买卖差*0.75),3,0) ,COLOR00ff00; STICKLINE(买卖差<0,(趋势线+买卖差*0.8),(趋势线+买卖差*0.95),3,0) ,COLOR66ff00; VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3); VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3); VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF (ZIG(3,22),2)<=REF(ZIG(3,22),3); VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF (ZIG(3,22),2)>=REF(ZIG(3,22),3); VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF (ZIG(3,51),2)<=REF(ZIG(3,51),3); VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF (ZIG(3,51),2)>=REF(ZIG(3,51),3); VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF (ZIG(3,72),2)<=REF(ZIG(3,72),3); VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF (ZIG(3,72),2)>=REF(ZIG(3,72),3); VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0); 买入:(VAR11+VAR13+VAR15+VAR17)*10,COLORFF00FF,LINETHICK2; 卖出:(VAR12+VAR14+VAR16+VAR18)*10,COLOR00FF00,LINETHICK2; VC:=(2*C+H+L)/4; VD:=LLV(L,34); VE:=HHV(H,34); VF:=LLV(L,21); V10:=HHV(H,21); V11:=EMA((VC-VF)/(V10-VD)*100,5); V12:=EMA((VC-VD)/(VE-VD)*100,8); V13:=EMA(V12,5); STICKLINE(V12>0 AND (V12-V13)>=0 ,80 ,78 ,6 ,0 ),COLORFF00FF; STICKLINE(V12>0 AND (V12-V13)<0 ,80 ,78 ,6 ,1 ),COLOR00FF00; STICKLINE(V12>0 AND (V12-V13)>=0 ,20 ,18 ,6 ,0 ),COLORFF00FF; STICKLINE(V12>0 AND (V12-V13)<0 ,20 ,18 ,6 ,1 ),COLOR00FF00; 红买绿卖:0,colorFFFF00; 主力加仓:0,colorred; 主力减仓:0,coloryellow; 主力出货:0,colorgreen; 弱势反弹:0,colorwhite; |
