通达信筹码分布主图源码分享
XA_1:=400;
XA_2:=90;XA_3:=79;XA_4:=IF(XA_2>10,10,XA_3);XA_5:=CURRBARSCOUNT;XA_6:=REF(HIGH,XA_2)=HHV(HIGH,2*XA_2+1);XA_7:=BACKSET(XA_6,XA_2+1);XA_8:=FILTER(XA_7,XA_2) AND HIGH=HHV(HIGH,XA_2+1);XA_9:=BARSLAST(XA_8);XA_10:=IF(XA_8,XA_5,0);XA_11:=IF(XA_9,REF(HIGH,XA_9),HIGH);XA_12:=IF(XA_9,REF(XA_10,XA_9),XA_10);XA_13:=REF(XA_11,XA_9+1);XA_14:=CONST(XA_12);XA_15:=REF(XA_12,XA_9+1);XA_16:=CONST(XA_15);XA_17:=REF(LOW,XA_2)=LLV(LOW,2*XA_2+1);XA_18:=BACKSET(XA_17,XA_2+1);XA_19:=FILTER(XA_18,XA_2) AND LOW=LLV(LOW,XA_2+1);XA_20:=BARSLAST(XA_19);XA_21:=IF(XA_19,XA_5,0);XA_22:=IF(XA_20,REF(XA_21,XA_20),XA_21);XA_23:=CONST(XA_22);STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,1),COLOR00CC00;XA_24:=BARSLAST(LOW=LLV(LOW,180));XA_25:=REF(LOW,XA_24);XA_26:=BARSLAST(HIGH=HHV(HIGH,XA_24));XA_27:=REF(HIGH,XA_26);XA_28:=BARSLAST(LOW=LLV(LOW,XA_26));XA_29:=REF(LOW,XA_28);XA_30:=INTPART((XA_26+1)/2);XA_31:=REFDATE(XA_27,DATE);XA_32:=REFDATE(CLOSE,DATE);XA_33:=REFDATE(XA_29,DATE);C线:DRAWLINE(CURRBARSCOUNT=CONST(XA_26+1),XA_33,CURRBARSCOUNT=CONST(XA_30),XA_32,0),COLORBLACK;D线:DRAWLINE(CURRBARSCOUNT=CONST(XA_30),XA_32,CURRBARSCOUNT=CONST(1),XA_33,0),COLORBLACK;FFG1:DRAWBAND(C线,RGB(255,0,0),XA_33,RGB(255,0,0));FFG2:DRAWBAND(D线,RGB(50,205,50),XA_33,RGB(50,205,50));DRAWKLINE(HIGH,OPEN,LOW,CLOSE);{股票指标网HTTP://}STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,1),COLOR00CC00;XA_34:=CONST(XA_28+XA_28);XA_35:=CONST(CLOSE+0.01);XA_36:=REFDATE(XA_35,DATE);XA_37:=REF(XA_22,XA_20+1);XA_38:=CONST(XA_37);XA_39:=REF(HIGH,XA_4)=HHV(HIGH,2*XA_4+1);XA_40:=CONST((XA_31+XA_33)/2);XA_41:=CONST((XA_31+XA_40)/2);XA_42:=CONST((XA_40+XA_33)/2);NOTEXTC区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_41,XA_41)),DRAWNULL),COLORCYAN;NOTEXTB区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_40,XA_40)),DRAWNULL),COLORCYAN;NOTEXTA区界线:IF(CURRBARSCOUNT<=CONST(3),CONST(IF(1,XA_42,XA_42)),DRAWNULL),COLORCYAN;XA_43:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_35+XA_35*0.2,XA_35+XA_35*0.2)),DRAWNULL);XA_44:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_35+XA_35*0.1,XA_35+XA_35*0.1)),DRAWNULL);XA_45:=IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_35,XA_35)),DRAWNULL);NOTEXT高:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_31,XA_31)),DRAWNULL),COLORMAGENTA;NOTEXT低:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_29,XA_29)),DRAWNULL),COLORGREEN;新势力A:IF(CURRBARSCOUNT<=CONST(XA_28+1),MA(CLOSE,XA_28),DRAWNULL),COLORRED;新势力V:IF(CURRBARSCOUNT<=CONST(XA_28+1),IF(新势力A< REF(新势力A,1),新势力A,DRAWNULL),DRAWNULL),COLORGREEN;XA_46:=BACKSET(XA_39,XA_4+1);XA_47:=FILTER(XA_46,XA_4) AND HIGH=HHV(HIGH,XA_4+1);XA_48:=BARSLAST(XA_47);XA_49:=IF(XA_47,XA_5,0);XA_50:=IF(XA_48,REF(HIGH,XA_48),HIGH);XA_51:=IF(XA_48,REF(XA_49,XA_48),XA_49);XA_52:=REF(XA_50,XA_48+1);XA_53:=CONST(XA_51);XA_54:=REF(XA_51,XA_48+1);XA_55:=CONST(XA_54);XA_56:=REF(LOW,XA_4)=LLV(LOW,2*XA_4+1);XA_57:=BACKSET(XA_56,XA_4+1);XA_58:=FILTER(XA_57,XA_4) AND LOW=LLV(LOW,XA_4+1);XA_59:=BARSLAST(XA_58);XA_60:=CONST(XA_41);XA_61:=CONST(XA_40);XA_62:=CONST(XA_42);XA_63:=IF(CLOSE>=XA_60,AMOUNT,DRAWNULL);XA_64:=IF(CLOSE>=XA_60,VOL,DRAWNULL);XA_65:=0.01*SUM(XA_63,XA_26)/SUM(XA_64,XA_26);XA_66:=REFDATE(XA_65,DATE);NOTEXTD区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_65,XA_65)),DRAWNULL),DOTLINE,COLORLIGRAY;XA_67:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,AMOUNT,DRAWNULL);XA_68:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,VOL,DRAWNULL);XA_69:=0.01*SUM(XA_67,XA_26)/SUM(XA_68,XA_26);XA_70:=REFDATE(XA_69,DATE);NOTEXTC区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_69,XA_69)),DRAWNULL),DOTLINE,COLORLIGRAY;XA_71:=IF(CLOSE<=XA_61 AND CLOSE>=XA_62,AMOUNT,DRAWNULL);XA_72:=IF(CLOSE<=XA_61 AND CLOSE>=XA_62,VOL,DRAWNULL);XA_73:=0.01*SUM(XA_71,XA_26)/SUM(XA_72,XA_26);XA_74:=REFDATE(XA_73,DATE);NOTEXTB区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_73,XA_73)),DRAWNULL),DOTLINE,COLORLIGRAY;XA_75:=IF(CLOSE<=XA_62,AMOUNT,DRAWNULL);XA_76:=IF(CLOSE<=XA_62,VOL,DRAWNULL);XA_77:=0.01*SUM(XA_75,XA_26)/SUM(XA_76,XA_26);XA_78:=REFDATE(XA_77,DATE);NOTEXTA区成本:IF(CURRBARSCOUNT<=CONST(13),CONST(IF(1,XA_77,XA_77)),DRAWNULL),DOTLINE,COLORLIGRAY;XA_79:=IF(CLOSE>=XA_36,AMOUNT,DRAWNULL);XA_80:=IF(CLOSE>=XA_36,VOL,DRAWNULL);XA_81:=0.01*SUM(XA_79,XA_26)/SUM(XA_80,XA_26);XA_82:=REFDATE(XA_81,DATE);XA_83:=IF(XA_58,XA_5,0);XA_84:=IF(XA_59,REF(XA_83,XA_59),XA_83);XA_85:=CONST(XA_84);XA_86:=REF(XA_84,XA_59+1);XA_87:=CONST(XA_86);XA_88:=REF(HIGH,XA_3)=HHV(HIGH,2*XA_3+1);XA_89:=BACKSET(XA_88,XA_3+1);XA_90:=FILTER(XA_89,XA_3) AND HIGH=HHV(HIGH,XA_3+1);XA_91:=BARSLAST(XA_90);NOTEXT上区成本:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_81,XA_81)),DRAWNULL),DOTLINE,COLORRED;XA_92:=IF(CLOSE<=XA_36,AMOUNT,DRAWNULL);XA_93:=IF(CLOSE<=XA_36,VOL,DRAWNULL);XA_94:=0.01*SUM(XA_92,XA_26)/SUM(XA_93,XA_26);XA_95:=REFDATE(XA_94,DATE);NOTEXT下区成本:IF(CURRBARSCOUNT<=CONST(XA_26+1),CONST(IF(1,XA_94,XA_94)),DRAWNULL),DOTLINE,COLORYELLOW;XA_96:=100*VOL/(FINANCE(7)/100);XA_97:=IF(CLOSE>=XA_60,XA_96,DRAWNULL);XA_98:=CONST(INTPART(SUM(XA_97,XA_26)));VB143:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_66,1),COLORLIGRAY;VB144:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_66*1.007,XA_98),COLORYELLOW;XA_99:=IF(CLOSE<=XA_60 AND CLOSE>=XA_61,XA_96,DRAWNULL);XA_100:=CONST(INTPART(SUM(XA_99,XA_26)));VB148:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_70,2),COLORRED;VB149:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_70*1.007,XA_100),COLORYELLOW;XA_101:=IF(CLOSE<=XA_61 AND CLOSE>=XA_62,XA_96,DRAWNULL);XA_102:=CONST(INTPART(SUM(XA_101,XA_26)));VB153:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_74,3),COLORMAGENTA;XA_103:=IF(XA_90,XA_5,0);XA_104:=IF(XA_91,REF(HIGH,XA_91),HIGH);XA_105:=IF(XA_91,REF(XA_103,XA_91),XA_103);XA_106:=REF(XA_104,XA_91+1);XA_107:=CONST(XA_105);XA_108:=REF(XA_105,XA_91+1);XA_109:=CONST(XA_108);XA_110:=REF(XA_106,XA_91+1);VB154:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_74*1.007,XA_102),COLORYELLOW;XA_111:=IF(CLOSE<=XA_62,XA_96,DRAWNULL);XA_112:=CONST(INTPART(SUM(XA_111,XA_26)));VB158:DRAWTEXT(CURRBARSCOUNT=CONST(13),XA_78,4),COLORCYAN;VB159:DRAWNUMBER(CURRBARSCOUNT=CONST(6),XA_78*1.007,XA_112),COLORYELLOW;XA_113:=IF(CLOSE>=XA_36,XA_96,DRAWNULL);XA_114:=CONST(INTPART(SUM(XA_113,XA_26)));VB163:DRAWTEXT(CURRBARSCOUNT=CONST(XA_26),XA_82,5),COLORYELLOW;VB164:DRAWNUMBER(CURRBARSCOUNT=CONST(XA_26-7),XA_82*1.007,XA_114),COLORYELLOW;XA_115:=IF(CLOSE<=XA_36,XA_96,DRAWNULL);XA_116:=CONST(INTPART(SUM(XA_115,XA_26)));VB168:DRAWTEXT(CURRBARSCOUNT=CONST(XA_26),XA_95,6),COLORYELLOW;VB169:DRAWNUMBER(CURRBARSCOUNT=CONST(XA_26-7),XA_95*1.007,XA_116),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
XA_1赋值:400
XA_2赋值:90
XA_3赋值:79
如果XA_2>10返回10否则返回XA_3
XA_5赋值: 到最后交易的周期
XA_6赋值:XA_2日前的最高价=2*XA_2+1日内最高价最高值
XA_7赋值:BACKSET(XA_6,XA_2+1)
XA_8赋值:XA_7的XA_2过滤 AND 最高价=XA_2+1日内最高价最高值
XA_9赋值:上次XA_8距今天数
如果XA_8返回XA_5否则返回0
XA_11:=IF(XA_9,XA_9日前的最高价,最高价)
XA_12:=IF(XA_9,XA_9日前的XA_10,XA_10)
XA_13:=XA_9+1日前的XA_11
XA_14:=CONST(XA_12)
XA_15:=XA_9+1日前的XA_12
XA_16:=CONST(XA_15)
XA_17:=XA_2日前的最低价=2*XA_2+1日内最低价最低值
XA_18:=BACKSET(XA_17,XA_2+1)
XA_19:=XA_18的XA_2过滤 AND 最低价=XA_2+1日内最低价最低值
XA_20:=上次XA_19距今天数
如果XA_19返回XA_5否则返回0
XA_22:=IF(XA_20,XA_20日前的XA_21,XA_21)
XA_23:=CONST(XA_22)
当满足条件开盘价>收盘价时,在收盘价和开盘价之间画柱状线
XA_24:=上次最低价=180日内最低价最低值距今天数
XA_25:=XA_24日前的最低价
XA_26:=上次最高价=XA_24日内最高价最高值距今天数
XA_27:=XA_26日前的最高价
XA_28:=上次最低价=XA_26日内最低价最低值距今天数
XA_29:=XA_28日前的最低价
XA_30:=INTPART((XA_26+1)/2)
XA_31:=REFDATE(XA_27,DATE)
XA_32:=REFDATE(收盘价,DATE)
XA_33:=REFDATE(XA_29,DATE)
输出C线:DRAWLINE( 到最后交易的周期=CONST(XA_26+1),XA_33, 到最后交易的周期=CONST(XA_30),XA_32,0),COLORBLACK
输出D线:DRAWLINE( 到最后交易的周期=CONST(XA_30),XA_32, 到最后交易的周期=CONST(1),XA_33,0),COLORBLACK
输出FFG1:DRAWBAND(C线,RGB(255,0,0),XA_33,RGB(255,0,0))
输出FFG2:DRAWBAND(D线,RGB(50,205,50),XA_33,RGB(50,205,50))
DRAWKLINE(最高价,开盘价,最低价,收盘价)
当满足条件开盘价>收盘价时,在收盘价和开盘价之间画柱状线
XA_34:=CONST(XA_28+XA_28)
XA_35:=CONST(收盘价+0.01)
XA_36:=REFDATE(XA_35,DATE)
XA_37:=XA_20+1日前的XA_22
XA_38:=CONST(XA_37)
XA_39:=XA_4日前的最高价=2*XA_4+1日内最高价最高值
XA_40:=CONST((XA_31+XA_33)/2)
XA_41:=CONST((XA_31+XA_40)/2)
XA_42:=CONST((XA_40+XA_33)/2)
输出NOTEXTC区界线:IF( 到最后交易的周期<=CONST(3),CONST(IF(1,XA_41,XA_41)),DRAWNULL),画青色
输出NOTEXTB区界线:IF( 到最后交易的周期<=CONST(3),CONST(IF(1,XA_40,XA_40)),DRAWNULL),画青色
输出NOTEXTA区界线:IF( 到最后交易的周期<=CONST(3),CONST(IF(1,XA_42,XA_42)),DRAWNULL),画青色
XA_43:=IF( 到最后交易的周期<=CONST(XA_26+1),CONST(IF(1,XA_35+XA_35*0.2,XA_35+XA_35*0.2)),DRAWNULL)
XA_44:=IF( 到最后交易的周期<=CONST(XA_26+1),CONST(IF(1,XA_35+XA_35*0.1,XA_35+XA_35*0.1)),DRAWNULL)
XA_45:=IF( 到最后交易的周期<=CONST(XA_26+1),CONST(IF(1,XA_35,XA_35)),DRAWNULL)
输出NOTEXT高:IF( 到最后交易的周期<=CONST(XA_26+1),CONST(IF(1,XA_31,XA_31)),DRAWNULL),画洋红色
输出NOTEXT低:IF( 到最后交易的周期<=CONST(XA_26+1),CONST(IF(1,XA_29,XA_29)),DRAWNULL),画绿色
输出新势力A:IF( 到最后交易的周期<=CONST(XA_28+1),收盘价的XA_28日简单移动平均,DRAWNULL),画红色
输出新势力V:IF( 到最后交易的周期<=CONST(XA_28+1),IF(新势力A< 1日前的新势力A,新势力A,DRAWNULL),DRAWNULL),画绿色
XA_46:=BACKSET(XA_39,XA_4+1)
XA_47:=XA_46的XA_4过滤 AND 最高价=XA_4+1日内最高价最高值
XA_48:=上次XA_47距今天数
如果XA_47返回XA_5否则返回0
XA_50:=IF(XA_48,XA_48日前的最高价,最高价)
XA_51:=IF(XA_48,XA_48日前的XA_49,XA_49)
XA_52:=XA_48+1日前的XA_50
XA_53:=CONST(XA_51)
XA_54:=XA_48+1日前的XA_51
XA_55:=CONST(XA_54)
XA_56:=XA_4日前的最低价=2*XA_4+1日内最低价最低值
XA_57:=BACKSET(XA_56,XA_4+1)
XA_58:=XA_57的XA_4过滤 AND 最低价=XA_4+1日内最低价最低值
XA_59:=上次XA_58距今天数
XA_60:=CONST(XA_41)
XA_61:=CONST(XA_40)
XA_62:=CONST(XA_42)
如果收盘价>=XA_60返回成交额否则返回DRAWNULL
如果收盘价>=XA_60返回成交量否则返回DRAWNULL
XA_65:=0.01*XA_26的XA_63日累和/XA_26的XA_64日累和
XA_66:=REFDATE(XA_65,DATE)
输出NOTEXTD区成本:IF( 到最后交易的周期<=CONST(13),CONST(IF(1,XA_65,XA_65)),DRAWNULL),DOTLINE,COLORLIGRAY
如果收盘价<=XA_60 AND 收盘价>=XA_61返回成交额否则返回DRAWNULL
如果收盘价<=XA_60 AND 收盘价>=XA_61返回成交量否则返回DRAWNULL
XA_69:=0.01*XA_26的XA_67日累和/XA_26的XA_68日累和
XA_70:=REFDATE(XA_69,DATE)
输出NOTEXTC区成本:IF( 到最后交易的周期<=CONST(13),CONST(IF(1,XA_69,XA_69)),DRAWNULL),DOTLINE,COLORLIGRAY
如果收盘价<=XA_61 AND 收盘价>=XA_62返回成交额否则返回DRAWNULL
如果收盘价<=XA_61 AND 收盘价>=XA_62返回成交量否则返回DRAWNULL
XA_73:=0.01*XA_26的XA_71日累和/XA_26的XA_72日累和
XA_74:=REFDATE(XA_73,DATE)
输出NOTEXTB区成本:IF( 到最后交易的周期<=CONST(13),CONST(IF(1,XA_73,XA_73)),DRAWNULL),DOTLINE,COLORLIGRAY
如果收盘价<=XA_62返回成交额否则返回DRAWNULL
如果收盘价<=XA_62返回成交量否则返回DRAWNULL
XA_77:=0.01*XA_26的XA_75日累和/XA_26的XA_76日累和
XA_78:=REFDATE(XA_77,DATE)
输出NOTEXTA区成本:IF( 到最后交易的周期<=CONST(13),CONST(IF(1,XA_77,XA_77)),DRAWNULL),DOTLINE,COLORLIGRAY
如果收盘价>=XA_36返回成交额否则返回DRAWNULL
如果收盘价>=XA_36返回成交量否则返回DRAWNULL
XA_81:=0.01*XA_26的XA_79日累和/XA_26的XA_80日累和
XA_82:=REFDATE(XA_81,DATE)
如果XA_58返回XA_5否则返回0
XA_84:=IF(XA_59,XA_59日前的XA_83,XA_83)
XA_85:=CONST(XA_84)
XA_86:=XA_59+1日前的XA_84
XA_87:=CONST(XA_86)
XA_88:=XA_3日前的最高价=2*XA_3+1日内最高价最高值
XA_89:=BACKSET(XA_88,XA_3+1)
XA_90:=XA_89的XA_3过滤 AND 最高价=XA_3+1日内最高价最高值
XA_91:=上次XA_90距今天数
输出NOTEXT上区成本:IF( 到最后交易的周期<=CONST(XA_26+1),CONST(IF(1,XA_81,XA_81)),DRAWNULL),DOTLINE,画红色
如果收盘价<=XA_36返回成交额否则返回DRAWNULL
如果收盘价<=XA_36返回成交量否则返回DRAWNULL
XA_94:=0.01*XA_26的XA_92日累和/XA_26的XA_93日累和
XA_95:=REFDATE(XA_94,DATE)
输出NOTEXT下区成本:IF( 到最后交易的周期<=CONST(XA_26+1),CONST(IF(1,XA_94,XA_94)),DRAWNULL),DOTLINE,画黄色
XA_96:=100*成交量/(FINANCE(7)/100)
如果收盘价>=XA_60返回XA_96否则返回DRAWNULL
XA_98:=CONST(INTPART(XA_26的XA_97日累和))
输出VB143:DRAWTEXT( 到最后交易的周期=CONST(13),XA_66,1),COLORLIGRAY
输出VB144:DRAWNUMBER( 到最后交易的周期=CONST(6),XA_66*1.007,XA_98),画黄色
如果收盘价<=XA_60 AND 收盘价>=XA_61返回XA_96否则返回DRAWNULL
XA_100:=CONST(INTPART(XA_26的XA_99日累和))
输出VB148:DRAWTEXT( 到最后交易的周期=CONST(13),XA_70,2),画红色
输出VB149:DRAWNUMBER( 到最后交易的周期=CONST(6),XA_70*1.007,XA_100),画黄色
如果收盘价<=XA_61 AND 收盘价>=XA_62返回XA_96否则返回DRAWNULL
XA_102:=CONST(INTPART(XA_26的XA_101日累和))
输出VB153:DRAWTEXT( 到最后交易的周期=CONST(13),XA_74,3),画洋红色
如果XA_90返回XA_5否则返回0
XA_104:=IF(XA_91,XA_91日前的最高价,最高价)
XA_105:=IF(XA_91,XA_91日前的XA_103,XA_103)
XA_106:=XA_91+1日前的XA_104
XA_107:=CONST(XA_105)
XA_108:=XA_91+1日前的XA_105
XA_109:=CONST(XA_108)
XA_110:=XA_91+1日前的XA_106
输出VB154:DRAWNUMBER( 到最后交易的周期=CONST(6),XA_74*1.007,XA_102),画黄色
如果收盘价<=XA_62返回XA_96否则返回DRAWNULL
XA_112:=CONST(INTPART(XA_26的XA_111日累和))
输出VB158:DRAWTEXT( 到最后交易的周期=CONST(13),XA_78,4),画青色
输出VB159:DRAWNUMBER( 到最后交易的周期=CONST(6),XA_78*1.007,XA_112),画黄色
如果收盘价>=XA_36返回XA_96否则返回DRAWNULL
XA_114:=CONST(INTPART(XA_26的XA_113日累和))
输出VB163:DRAWTEXT( 到最后交易的周期=CONST(XA_26),XA_82,5),画黄色
输出VB164:DRAWNUMBER( 到最后交易的周期=CONST(XA_26-7),XA_82*1.007,XA_114),画黄色
如果收盘价<=XA_36返回XA_96否则返回DRAWNULL
XA_116:=CONST(INTPART(XA_26的XA_115日累和))
输出VB168:DRAWTEXT( 到最后交易的周期=CONST(XA_26),XA_95,6),画黄色
输出VB169:DRAWNUMBER( 到最后交易的周期=CONST(XA_26-7),XA_95*1.007,XA_116),画黄色