多方:EMA(100-3*SMA((LLV(LOW,75)-CLOSE)/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1)+2*SMA(SMA((LLV(LOW,75)-CLOSE)/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1),15,1)-100,3),LINETHICK2,COLORCC00CC;MA(多方,3);空方:EMA(100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1),15,1),3),LINETHICK2,COLOR00CC00;V1:=(C*2+H+L)/4*10; V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主力撤:=IF(V4<=0,V4,0);主力進:=IF(V4>=0,V4,0);V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5); V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4; V9:=EMA(V8,13)-EMA(V8,34); VA:=EMA(V9,3); VB:=(V9-VA)/2;大盤資金進場:=IF(VB>=0,VB,0);大盤資金撤走:=IF(VB<=0,VB,0);V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趨勢線:=EMA(V11,3); V12:=(趨勢線-REF(趨勢線,1))/REF(趨勢線,1)*100; 準備現金:STICKLINE(趨勢線<=13,0,20,5,0),COLORCC9900;AA:=(趨勢線<=13) AND FILTER((趨勢線<=13),15); DRAWTEXT (AA,30,""),COLORCC9900; 買入股票:STICKLINE(趨勢線<=13 AND V12>13,0,50,5,0),COLOR0099FF;BB:= (趨勢線<=13 AND V12>13) AND FILTER((趨勢線<=13 AND V12>13),10) ; DRAWTEXT (BB,60,"買入"),COLOR0099FF;賣臨界:STICKLINE(趨勢線>90 AND 趨勢線>REF(趨勢線,1),100,95,15,1),COLORFFFF00;見頂清倉:=FILTER(趨勢線>90 AND 趨勢線<REF(趨勢線,1) AND 主力進<REF(主力進,1),8); DRAWTEXT( 見頂清倉,90,"逃頂"),COLORYELLOW;CC:=(趨勢線>=90 AND V12) AND FILTER((趨勢線>=90 AND V12),10);STICKLINE(大盤資金進場 AND 趨勢線<13,0,30,10,0),COLORRED;STICKLINE(大盤資金撤走 AND 趨勢線>90,0,30,10,0),COLORGREEN;STICKLINE(主力進 AND 趨勢線<13,0,40,10,0),COLORFF00FF;STICKLINE(主力撤 AND 趨勢線>90,0,40,10,0),COLORBLUE;P:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),3);風警值:P+100,COLORYELLOW,LINETHICK2;頂:95,COLORRED,LINETHICK2;底:5,COLORGREEN,LINETHICK2;(已修改並測試)
多方:EMA(100-3*SMA((LLV(LOW,75)-CLOSE)/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1)+2*SMA(SMA((LLV(LOW,75)-CLOSE)/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1),15,1)-100,3),LINETHICK2,COLORCC00CC;MA(多方,3);空方:EMA(100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1),15,1),3),LINETHICK2,COLOR00CC00;V1:=(C*2+H+L)/4*10; V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主力撤:=IF(V4<=0,V4,0);主力進:=IF(V4>=0,V4,0);V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5); V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4; V9:=EMA(V8,13)-EMA(V8,34); VA:=EMA(V9,3); VB:=(V9-VA)/2;大盤資金進場:=IF(VB>=0,VB,0);大盤資金撤走:=IF(VB<=0,VB,0);V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趨勢線:=EMA(V11,3); V12:=(趨勢線-REF(趨勢線,1))/REF(趨勢線,1)*100; 準備現金:STICKLINE(趨勢線<=13,0,20,5,0),COLORCC9900;AA:=(趨勢線<=13) AND FILTER((趨勢線<=13),15); DRAWTEXT (AA,30,""),COLORCC9900; 買入股票:STICKLINE(趨勢線<=13 AND V12>13,0,50,5,0),COLOR0099FF;BB:= (趨勢線<=13 AND V12>13) AND FILTER((趨勢線<=13 AND V12>13),10) ; DRAWTEXT (BB,60,"買入"),COLOR0099FF;賣臨界:STICKLINE(趨勢線>90 AND 趨勢線>REF(趨勢線,1),100,95,15,1),COLORFFFF00;見頂清倉:=FILTER(趨勢線>90 AND 趨勢線<REF(趨勢線,1) AND 主力進<REF(主力進,1),8); DRAWTEXT( 見頂清倉,90,"逃頂"),COLORYELLOW;CC:=(趨勢線>=90 AND V12) AND FILTER((趨勢線>=90 AND V12),10);STICKLINE(大盤資金進場 AND 趨勢線<13,0,30,10,0),COLORRED;STICKLINE(大盤資金撤走 AND 趨勢線>90,0,30,10,0),COLORGREEN;STICKLINE(主力進 AND 趨勢線<13,0,40,10,0),COLORFF00FF;STICKLINE(主力撤 AND 趨勢線>90,0,40,10,0),COLORBLUE;P:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),3);風警值:P+100,COLORYELLOW,LINETHICK2;頂:95,COLORRED,LINETHICK2;底:5,COLORGREEN,LINETHICK2;(已修改並測試)