来函数检测结果如下:
该公式没有未来函数
指标源码:
原理解析:
X_1赋值:YEAR-2000
输出去年一季度:FINONE(1,X_1-1,331),NODRAW,画黄色
输出去年二季度:FINONE(1,X_1-1,630),NODRAW,画洋红色
输出去年三季度:FINONE(1,X_1-1,930),NODRAW,画绿色
输出去年四季度:FINONE(1,X_1-1,1231),NODRAW,画青色
输出市盈率:IF(FINONE(1,X_1-1,1231)<=0,DRAWNULL,收盘价/FINONE(1,X_1-1,1231)),NODRAW
输出市净率:收盘价/FINONE(4,X_1-1,1231),NODRAW,画青色
X_2赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
X_2的3日[1日权重]移动平均
X_3的3日[1日权重]移动平均
输出J:3*X_3-2*X_4,NODRAW,画黄色
X_5赋值:IF(FINONE(1,X_1-11,1231)=DRAWNULL,0,FINONE(1,X_1-11,1231))
X_6赋值:IF(FINONE(1,X_1-10,1231)=DRAWNULL,0,FINONE(1,X_1-10,1231))
X_7赋值:IF(FINONE(1,X_1-9,1231)=DRAWNULL,0,FINONE(1,X_1-9,1231))
X_8赋值:IF(FINONE(1,X_1-8,1231)=DRAWNULL,0,FINONE(1,X_1-8,1231))
X_9赋值:IF(FINONE(1,X_1-7,1231)=DRAWNULL,0,FINONE(1,X_1-7,1231))
X_10:=IF(FINONE(1,X_1-6,1231)=DRAWNULL,0,FINONE(1,X_1-6,1231))
X_11:=IF(FINONE(1,X_1-5,1231)=DRAWNULL,0,FINONE(1,X_1-5,1231))
X_12:=IF(FINONE(1,X_1-4,1231)=DRAWNULL,0,FINONE(1,X_1-4,1231))
X_13:=IF(FINONE(1,X_1-3,1231)=DRAWNULL,0,FINONE(1,X_1-3,1231))
X_14:=IF(FINONE(1,X_1-2,1231)=DRAWNULL,0,FINONE(1,X_1-2,1231))
X_15:=IF(FINONE(1,X_1-1,1231)=DRAWNULL,0,FINONE(1,X_1-1,1231))
X_16:=MAX(X_5的绝对值,MAX(ABS(X_6),MAX(ABS(X_7),MAX(ABS(X_8),MAX(ABS(X_9),MAX(ABS(X_10),MAX(ABS(X_11),MAX(ABS(X_12),MAX(ABS(X_13),MAX(ABS(X_14),ABS(X_15)))))))))))
X_17:=500/X_16
如果X_16=0返回0否则返回X_17
X_19:=X_5*X_18
X_20:=X_6*X_18
X_21:=X_7*X_18
X_22:=X_8*X_18
X_23:=X_9*X_18
X_24:=X_10*X_18
X_25:=X_11*X_18
X_26:=X_12*X_18
X_27:=X_13*X_18
X_28:=X_14*X_18
X_29:=X_15*X_18
DRAWRECTREL(0,0,820,500,RGB(255,130,171))
DRAWRECTREL(0,1000,820,500,RGB(0,139,0))
DRAWRECTREL(823,0,1000,1000,RGB(220,220,220))
DRAWRECTREL(0,CONST(500-X_19),70,500,RGB(255,255,0))
DRAWRECTREL(75,CONST(500-X_20),145,500,RGB(255,255,0))
DRAWRECTREL(150,CONST(500-X_21),220,500,RGB(255,255,0))
DRAWRECTREL(225,CONST(500-X_22),295,500,RGB(255,255,0))
DRAWRECTREL(300,CONST(500-X_23),370,500,RGB(255,255,0))
DRAWRECTREL(375,CONST(500-X_24),445,500,RGB(255,255,0))
DRAWRECTREL(450,CONST(500-X_25),520,500,RGB(255,255,0))
DRAWRECTREL(525,CONST(500-X_26),595,500,RGB(255,255,0))
DRAWRECTREL(600,CONST(500-X_27),670,500,RGB(255,255,0))
DRAWRECTREL(675,CONST(500-X_28),745,500,RGB(255,255,0))
DRAWRECTREL(750,CONST(500-X_29),820,500,RGB(255,255,0))
DRAWTEXT_FIX(ISLASTBAR,0,999,0,STRCAT(CON2STR(YEAR-11,0),28)),COLORBLACK
DRAWTEXT_FIX(ISLASTBAR,0.075,999,0,STRCAT(CON2STR(YEAR-10,0),28)),COLORBLACK
DRAWTEXT_FIX(ISLASTBAR,0.15,999,0,STRCAT(CON2STR(YEAR-9,0),28)),COLORBLACK
DRAWTEXT_FIX(ISLASTBAR,0.225,999,0,STRCAT(CON2STR(YEAR-8,0),28)),COLORBLACK
DRAWTEXT_FIX(ISLASTBAR,0.3,999,0,STRCAT(CON2STR(YEAR-7,0),28)),COLORBLACK
DRAWTEXT_FIX(ISLASTBAR,0.375,999,0,STRCAT(CON2STR(YEAR-6,0),28)),COLORBLACK
DRAWTEXT_FIX(ISLASTBAR,0.45,999,0,STRCAT(CON2STR(YEAR-5,0),28)),COLORBLACK
DRAWTEXT_FIX(ISLASTBAR,0.525,999,0,STRCAT(CON2STR(YEAR-4,0),28)),COLORBLACK
DRAWTEXT_FIX(ISLASTBAR,0.6,999,0,STRCAT(CON2STR(YEAR-3,0),28)),COLORBLACK
DRAWTEXT_FIX(ISLASTBAR,0.675,999,0,STRCAT(CON2STR(YEAR-2,0),28)),COLORBLACK
DRAWTEXT_FIX(ISLASTBAR,0.75,999,0,STRCAT(CON2STR(YEAR-1,0),28)),COLORBLACK
X_30:=VAR2STR(X_5,3)
X_31:=VAR2STR(X_6,3)
X_32:=VAR2STR(X_7,3)
X_33:=VAR2STR(X_8,3)
X_34:=VAR2STR(X_9,3)
X_35:=VAR2STR(X_10,3)
X_36:=VAR2STR(X_11,3)
X_37:=VAR2STR(X_12,3)
X_38:=VAR2STR(X_13,3)
X_39:=VAR2STR(X_14,3)
X_40:=VAR2STR(X_15,3)
DRAWTEXT_FIX(ISLASTBAR AND X_5>0 AND FINONE(1,X_1-11,1231)!=DRAWNULL,0,0,0,STRCAT(X_30,29)),画红色
DRAWTEXT_FIX(ISLASTBAR AND X_5=0 AND FINONE(1,X_1-11,1231)!=DRAWNULL,0,0,0,STRCAT(X_30,29)),画黄色
DRAWTEXT_FIX(ISLASTBAR AND X_5<0 AND FINONE(1,X_1-11,1231)!=DRAWNULL,0,0,0,STRCAT(X_30,29)),画绿色
DRAWTEXT_FIX(ISLASTBAR AND X_6>0 AND FINONE(1,X_1-10,1231)!=DRAWNULL,0.075,0,0,STRCAT(X_31,29)),画红色
DRAWTEXT_FIX(ISLASTBAR AND X_6=0 AND FINONE(1,X_1-10,1231)!=DRAWNULL,0.075,0,0,STRCAT(X_31,29)),画黄色
DRAWTEXT_FIX(ISLASTBAR AND X_6<0 AND FINONE(1,X_1-10,1231)!=DRAWNULL,0.075,0,0,STRCAT(X_31,29)),画绿色
DRAWTEXT_FIX(ISLASTBAR AND X_7>0 AND FINONE(1,X_1-9,1231)!=DRAWNULL,0.15,0,0,STRCAT(X_32,29)),画红色
DRAWTEXT_FIX(ISLASTBAR AND X_7=0 AND FINONE(1,X_1-9,1231)!=DRAWNULL,0.15,0,0,STRCAT(X_32,29)),画黄色
DRAWTEXT_FIX(ISLASTBAR AND X_7<0 AND FINONE(1,X_1-9,1231)!=DRAWNULL,0.15,0,0,STRCAT(X_32,29)),画绿色
DRAWTEXT_FIX(ISLASTBAR AND X_8>0 AND FINONE(1,X_1-8,1231)!=DRAWNULL,0.225,0,0,STRCAT(X_33,29)),画红色
DRAWTEXT_FIX(ISLASTBAR AND X_8=0 AND FINONE(1,X_1-8,1231)!=DRAWNULL,0.225,0,0,STRCAT(X_33,29)),画黄色
DRAWTEXT_FIX(ISLASTBAR AND X_8<0 AND FINONE(1,X_1-8,1231)!=DRAWNULL,0.225,0,0,STRCAT(X_33,29)),画绿色
DRAWTEXT_FIX(ISLASTBAR AND X_9>0 AND FINONE(1,X_1-7,1231)!=DRAWNULL,0.3,0,0,STRCAT(X_34,29)),画红色
DRAWTEXT_FIX(ISLASTBAR AND X_9=0 AND FINONE(1,X_1-7,1231)!=DRAWNULL,0.3,0,0,STRCAT(X_34,29)),画黄色
DRAWTEXT_FIX(ISLASTBAR AND X_9<0 AND FINONE(1,X_1-7,1231)!=DRAWNULL,0.3,0,0,STRCAT(X_34,29)),画绿色
DRAWTEXT_FIX(ISLASTBAR AND X_10>0 AND FINONE(1,X_1-6,1231)!=DRAWNULL,0.375,0,0,STRCAT(X_35,29)),画红色
DRAWTEXT_FIX(ISLASTBAR AND X_10=0 AND FINONE(1,X_1-6,1231)!=DRAWNULL,0.375,0,0,STRCAT(X_35,29)),画黄色
DRAWTEXT_FIX(ISLASTBAR AND X_10<0 AND FINONE(1,X_1-6,1231)!=DRAWNULL,0.375,0,0,STRCAT(X_35,29)),画绿色
DRAWTEXT_FIX(ISLASTBAR AND X_11>0 AND FINONE(1,X_1-5,1231)!=DRAWNULL,0.45,0,0,STRCAT(X_36,29)),画红色
DRAWTEXT_FIX(ISLASTBAR AND X_11=0 AND FINONE(1,X_1-5,1231)!=DRAWNULL,0.45,0,0,STRCAT(X_36,29)),画黄色
DRAWTEXT_FIX(ISLASTBAR AND X_11<0 AND FINONE(1,X_1-5,1231)!=DRAWNULL,0.45,0,0,STRCAT(X_36,29)),画绿色
DRAWTEXT_FIX(ISLASTBAR AND X_12>0 AND FINONE(1,X_1-4,1231)!=DRAWNULL,0.525,0,0,STRCAT(X_37,29)),画红色
DRAWTEXT_FIX(ISLASTBAR AND X_12=0 AND FINONE(1,X_1-4,1231)!=DRAWNULL,0.525,0,0,STRCAT(X_37,29)),画黄色
DRAWTEXT_FIX(ISLASTBAR AND X_12<0 AND FINONE(1,X_1-4,1231)!=DRAWNULL,0.525,0,0,STRCAT(X_37,29)),画绿色
DRAWTEXT_FIX(ISLASTBAR AND X_13>0 AND FINONE(1,X_1-3,1231)!=DRAWNULL,0.6,0,0,STRCAT(X_38,29)),画红色
DRAWTEXT_FIX(ISLASTBAR AND X_13=0 AND FINONE(1,X_1-3,1231)!=DRAWNULL,0.6,0,0,STRCAT(X_38,29)),画黄色
DRAWTEXT_FIX(ISLASTBAR AND X_13<0 AND FINONE(1,X_1-3,1231)!=DRAWNULL,0.6,0,0,STRCAT(X_38,29)),画绿色
DRAWTEXT_FIX(ISLASTBAR AND X_14>0 AND FINONE(1,X_1-2,1231)!=DRAWNULL,0.675,0,0,STRCAT(X_39,29)),画红色
DRAWTEXT_FIX(ISLASTBAR AND X_14=0 AND FINONE(1,X_1-2,1231)!=DRAWNULL,0.675,0,0,STRCAT(X_39,29)),画黄色
DRAWTEXT_FIX(ISLASTBAR AND X_14<0 AND FINONE(1,X_1-2,1231)!=DRAWNULL,0.675,0,0,STRCAT(X_39,29)),画绿色
DRAWTEXT_FIX(ISLASTBAR AND X_15>0 AND FINONE(1,X_1-1,1231)!=DRAWNULL,0.75,0,0,STRCAT(X_40,29)),画红色
DRAWTEXT_FIX(ISLASTBAR AND X_15=0 AND FINONE(1,X_1-1,1231)!=DRAWNULL,0.75,0,0,STRCAT(X_40,29)),画黄色
DRAWTEXT_FIX(ISLASTBAR AND X_15<0 AND FINONE(1,X_1-1,1231)!=DRAWNULL,0.75,0,0,STRCAT(X_40,29)),画绿色
X_41:=CON2STR(FINONE(1,X_1,331),3)
X_42:=CON2STR(FINONE(1,X_1,630),3)
X_43:=CON2STR(FINONE(1,X_1,930),3)
X_44:=CON2STR(FINONE(1,X_1,1231),3)
X_45:=ROUND((FINONE(1,X_1-1,331)-FINONE(1,X_1,331))*1000)/1000
NOTEXTE输出J:ROUND((FINONE(1,X_1-1,630)-FINONE(1,X_1,630))*1000)/1000,NODRAW
输出NOTEXTCS1:FINONE(1,X_1-1,331),NODRAW
输出NOTEXTCS2:FINONE(1,X_1,630),NODRAW
X_46:=ROUND((FINONE(1,X_1-1,930)-FINONE(1,X_1,930))*1000)/1000
X_47:=ROUND((FINONE(1,X_1-1,1231)-FINONE(1,X_1,1231))*1000)/1000
X_48:=IF(FINONE(1,X_1,331)=DRAWNULL,0,FINONE(1,X_1,331))
X_49:=IF(FINONE(1,X_1,630)=DRAWNULL,0,FINONE(1,X_1,630))
X_50:=IF(FINONE(1,X_1,930)=DRAWNULL,0,FINONE(1,X_1,930))
X_51:=IF(FINONE(1,X_1,1231)=DRAWNULL,0,FINONE(1,X_1,1231))
X_52:=MAX(X_48的绝对值,MAX(ABS(X_49),MAX(ABS(X_50),MAX(ABS(去年一季度),MAX(ABS(去年二季度),MAX(ABS(去年三季度),MAX(ABS(去年四季度),ABS(X_51))))))))
X_53:=250/X_52
如果X_52=0返回0否则返回X_53
X_55:=X_48*X_54
X_56:=X_49*X_54
X_57:=X_50*X_54
X_58:=X_51*X_54
X_59:=去年一季度*X_54
X_60:=去年二季度*X_54
X_61:=去年三季度*X_54
X_62:=去年四季度*X_54
DRAWRECTREL(823,500,1000,750,RGB(255,130,171))
DRAWRECTREL(823,750,1000,1000,RGB(0,139,0))
DRAWRECTREL(825,CONST(750-X_59),845,750,RGB(76,96,222))
DRAWRECTREL(845,CONST(750-X_55),865,750,RGB(255,255,0))
DRAWRECTREL(870,CONST(750-X_60),890,750,RGB(76,96,222))
DRAWRECTREL(890,CONST(750-X_56),910,750,RGB(255,255,0))
DRAWRECTREL(915,CONST(750-X_61),935,750,RGB(76,96,222))
DRAWRECTREL(935,CONST(750-X_57),955,750,RGB(255,255,0))
DRAWRECTREL(960,CONST(750-X_62),980,750,RGB(76,96,222))
DRAWRECTREL(980,CONST(750-X_58),1000,750,RGB(255,255,0))
X_63:=CON2STR(X_45的绝对值,3)
X_64:=CON2STR(NOTEXTEJ的绝对值,3)
X_65:=CON2STR(X_46的绝对值,3)
X_66:=CON2STR(X_47的绝对值,3)
DRAWTEXT_FIX(X_45<0,0.824,0,0,STRCAT(30,STRCAT(X_41,29))),画红色
DRAWTEXT_FIX(X_45<0,0.824,0.075,0,STRCAT(31,STRCAT(X_63,29))),画红色
DRAWTEXT_FIX(X_45=0,0.824,0,0,STRCAT(30,STRCAT(X_41,29))),画黄色
DRAWTEXT_FIX(X_45=0,0.824,0.075,0,STRCAT(32,STRCAT(X_63,29))),画黄色
DRAWTEXT_FIX(X_45>0,0.824,0,0,STRCAT(30,STRCAT(X_41,29))),画绿色
DRAWTEXT_FIX(X_45>0,0.824,0.075,0,STRCAT(33,STRCAT(X_63,29))),画绿色
DRAWTEXT_FIX(NOTEXTEJ<0,0.824,0.15,0,STRCAT(34,STRCAT(X_42,29))),画红色
DRAWTEXT_FIX(NOTEXTEJ<0,0.824,0.225,0,STRCAT(35,STRCAT(X_64,29))),画红色
DRAWTEXT_FIX(NOTEXTEJ=0,0.824,0.15,0,STRCAT(34,STRCAT(X_42,29))),画黄色
DRAWTEXT_FIX(NOTEXTEJ=0,0.824,0.225,0,STRCAT(36,STRCAT(X_64,29))),画黄色
DRAWTEXT_FIX(NOTEXTEJ>0,0.824,0.15,0,STRCAT(34,STRCAT(X_42,29))),画绿色
DRAWTEXT_FIX(NOTEXTEJ>0,0.824,0.225,0,STRCAT(37,STRCAT(X_64,29))),画绿色
DRAWTEXT_FIX(X_46<0,0.824,0.3,0,STRCAT(38,STRCAT(X_43,29))),画红色
DRAWTEXT_FIX(X_46<0,0.824,0.375,0,STRCAT(39,STRCAT(X_65,29))),画红色
DRAWTEXT_FIX(X_46=0,0.824,0.3,0,STRCAT(38,STRCAT(X_43,29))),画黄色
DRAWTEXT_FIX(X_46=0,0.824,0.375,0,STRCAT(40,STRCAT(X_65,29))),画黄色
DRAWTEXT_FIX(X_46>0,0.824,0.3,0,STRCAT(38,STRCAT(X_43,29))),画绿色
DRAWTEXT_FIX(X_46>0,0.824,0.375,0,STRCAT(41,STRCAT(X_65,29))),画绿色