副图公式源码:支持手机/电脑
GUP3:=MA(CLOSE,13); GUP4:=100-ABS(((CLOSE-GUP3)/(GUP3))*(100)); GUP5:=LLV(LOW,75); GUP6:=HHV(HIGH,75); GUP7:=(GUP6-GUP5)/(100); GUP8:=SMA((CLOSE-GUP5)/(GUP7),20,1); GUP9:=SMA((OPEN-GUP5)/(GUP7),20,1); GUPA:=(3)*(GUP8)-(2)*(SMA(GUP8,15,1)); GUPB:=(3)*(GUP9)-(2)*(SMA(GUP9,15,1)); GUPC:=100-GUPB; GUPD:=(REF(LOW,1))*(0.89999997); GUPE:=(LOW)*(0.89999997); GUP11:=CLOSE-REF(CLOSE,1); GUP12:=MAX(GUP11,0); GUP13:=ABS(GUP11); GUP14:=((SMA(GUP12,7,1))/(SMA(GUP13,7,1)))*(100); GUP15:=((SMA(GUP12,13,1))/(SMA(GUP13,13,1)))*(100); GUP16:=BARSCOUNT(CLOSE); GUP17:=((SMA(MAX(GUP11,0),6,1))/(SMA(ABS(GUP11),6,1)))*(100); GUP18:=(((-200))*(HHV(HIGH,60)-CLOSE))/(HHV(HIGH,60)-LLV(LOW,60))+100; GUP19:=((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100); GUP1A:=SMA((SMA(GUP19,4,1)-50)*(2),3,1); GUP1B:=((INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14)))*(100); GUP1C:=SMA(GUP1B,4,1); GUP1D:=SMA(GUP1C,3,1); GUP1E:=((HHV(HIGH,30)-CLOSE)/(CLOSE))*(100); GUP1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100); GUP20:=REVERSE(GUP1F); GUP21:=SMA(GUP1F,3,1); 趋势线:SMA(GUP21,3,1),COLOR0000FF,LINETHICK2; 人气线:SMA(趋势线,3,1),COLORYELLOW,LINETHICK2; 出击:IF(CROSS(趋势线,人气线) AND (趋势线<30),20,0),COLOR0000FF,LINETHICK2; DRAWTEXT(CROSS(趋势线,人气线) AND 趋势线<30,25,'起立 '),COLORWHITE; 短卖:IF(CROSS(人气线,趋势线) AND (人气线>75),85,100),COLOR008000,LINETHICK3; DRAWTEXT(CROSS(趋势线, 人气线) AND REF(人气线,1)>80, REF(人气线,3), '顶'),COLORRED,LINETHICK5; 低买RAWTEXT(REF(CROSS(趋势线,人气线),82) AND 人气线>1.3*趋势线,85,'低买'),LINETHICK1; 抄底: DRAWTEXT(REF(CROSS(趋势线,人气线),1) AND 趋势线>1.3*人气线,85,'抄底'),COLORRED,LINETHICK1; RSV:=(((CLOSE - LLV(LOW,29)) / (HHV(HIGH,29) - LLV(LOW,29))) * 100); K:=MA(RSV,5); D:=MA(K,2); J:=((3 * K) - (2 * D)); 明涨:IF((J < 5),50,0),COLORMAGENTA; DRAWTEXT((J < 5),60,'明涨'),COLORRED; V11:=LLV(LOW,10); V12:=HHV(H,25); 价位线:=EMA((C-V11)/(V12-V11)*4,4); DRAWTEXT(CROSS(价位线,0.3),20+4,'●底'),COLORRED; RSVV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*1; KK:=SMA(RSVV,9,1); DDD:=SMA(KK,3,1); MR:=CROSS(KK,DDD) AND DDD<25; MC:=CROSS(DDD,KK) AND DDD>75; DRAWTEXT(MR,20,'买'),COLORRED; DRAWTEXT(MC,90,'卖'),COLORGREEN;
选股公式源码 {选股公式一:起立} GUP1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100); GUP21:=SMA(GUP1F,3,1); 趋势线:=SMA(GUP21,3,1),COLOR0000FF,LINETHICK2; 人气线:=SMA(趋势线,3,1),COLORYELLOW,LINETHICK2; 起立:CROSS(趋势线,人气线) AND 趋势线<30;
{选股公式二:低买} GUP1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100); GUP21:=SMA(GUP1F,3,1); 趋势线:=SMA(GUP21,3,1),COLOR0000FF,LINETHICK2; 人气线:=SMA(趋势线,3,1),COLORYELLOW,LINETHICK2; 低买:REF(CROSS(趋势线,人气线),82) AND 人气线>1.3*趋势线;
{选股公式三:抄底} GUP1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100); GUP21:=SMA(GUP1F,3,1); 趋势线:=SMA(GUP21,3,1),COLOR0000FF,LINETHICK2; 人气线:=SMA(趋势线,3,1),COLORYELLOW,LINETHICK2; 抄底:REF(CROSS(趋势线,人气线),1) AND 趋势线>1.3*人气线;
{选股公式四:明涨} RSV:=(((CLOSE - LLV(LOW,29)) / (HHV(HIGH,29) - LLV(LOW,29))) * 100); K:=MA(RSV,5); D:=MA(K,2); J:=((3 * K) - (2 * D)); 明涨:IF((J < 5),50,0),COLORMAGENTA;
{选股公式五:底} V11:=LLV(LOW,10); V12:=HHV(H,25); 价位线:=EMA((C-V11)/(V12-V11)*4,4); 底:CROSS(价位线,0.3);
{选股公式六:买} RSVV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*1; KK:=SMA(RSVV,9,1); DDD:=SMA(KK,3,1); MR:=CROSS(KK,DDD) AND DDD<25; 买:MR;
|