通达信绿顶卖红底买公式简单副图源码

绿顶卖,红底买

 

 趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)

-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)

-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);

套利:=14;

阻力:=78.89;

CD:=CROSS(趋势,套利);

TD:=CROSS(阻力,趋势);

买入:FILTER(IF(CD,1,0),3)COLORRED;

卖出:FILTER(IF(TD,1,0),3)COLORGREEN;