最高点:REFDATE(CONST(REF(HHV(H,0),0)),DATE),DOTLINE,COLORMAGENTA;
最低点:REFDATE(CONST(REF(LLV(L,0),0)),DATE),DOTLINE,COLORGREEN;
GD:=CONST(FINDHIGH(H,0,最高点*10000,1));
DD:=CONST(FINDLOW(L,0,最低点*10000,1));
GT:=CONST(BARSLAST(GD=H))+1;
DT:=CONST(BARSLAST(DD=L))+1;
SH:=CONST(IF(GT=1,H,REF(H,GT-1)));
SL:=CONST(IF(DT=1,L,REF(L,DT-1)));
{分析家公式网 WWW.fxjgsw.com 整理}
上涨周期:IF(CURRBARSCOUNT<=DT,BARSLAST(DD=L),DRAWNULL),COLORWHITE,NODRAW;
上涨幅度:IF(CURRBARSCOUNT<=DT,C/SL*100-100,DRAWNULL),NODRAW,COLORRED;
上涨均价:IF(CURRBARSCOUNT<=DT,SUM(AMOUNT,DT)/SUM(V,DT)/100,DRAWNULL),NODRAW,COLORLIGRAY;
上涨换手%:IF(CURRBARSCOUNT<=DT,SUM(HSL.HSL,DT),DRAWNULL),COLORLIMAGENTA,NODRAW;
下跌周期:BARSLAST(GD=H),COLORWHITE,NODRAW;
下跌幅度:IF(CURRBARSCOUNT<=GT,C/SH*100-100,DRAWNULL),NODRAW,COLORGREEN;
下跌均价:IF(CURRBARSCOUNT<=GT,SUM(AMOUNT,GT)/SUM(V,GT)/100,DRAWNULL),NODRAW,COLORLIGRAY;
下跌换手%:IF(CURRBARSCOUNT<=GT,SUM(HSL.HSL,GT),DRAWNULL),COLORCYAN,NODRAW;
星期:=VARCAT(VARCAT('(',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五','')))))),')');
日期:=VARCAT(VARCAT(VARCAT(VARCAT(VARCAT(VARCAT(VAR2STR(YEAR,0),'年'),VAR2STR(MONTH,0)),'月'),VAR2STR(DAY,0)),'日'),星期);
{黄金分割 普通 等系坐标}
DRAWRECTREL(990,2,998,188,RGB(0,150,180)),NOFRAME;
DRAWRECTREL(990,188,998,375,RGB(200,200,0)),NOFRAME;
DRAWRECTREL(990,375,998,491,RGB(100,200,0)),NOFRAME;
DRAWRECTREL(990,491,998,607,RGB(200,10,80)),NOFRAME;
DRAWRECTREL(990,607,998,794,RGB(150,0,0)),NOFRAME;
DRAWRECTREL(990,794,998,982,RGB(150,150,150)),NOFRAME;
{等比数列周期}
DRAWTEXT(CURRBARSCOUNT=GT-4 ,L,'5'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=GT-9 ,L,'10'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=GT-14 ,L,'15'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=GT-19 ,L,'20'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=GT-24 ,L,'25'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=GT-29 ,L,'30 '),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=GT-34 ,L,'35'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=GT-39 ,L,'40'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=GT-44 ,L,'45'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=GT-49 ,L,'50'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=GT-54 ,L,'55'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=DT-4,H,'5'),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT-9,H,'10'),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT-14,H,'15'),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT-19,H,'20'),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT-24,H,'25'),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT-29,H,'30'),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT-34,H,'35'),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT-39,H,'40'),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT-44,H,'45'),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT-49,H,'50'),DRAWABOVE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT-54,H,'55'),DRAWABOVE,COLORRED;
{幅度尺}
A1:=ZTPRICE(REF(SL,1),0.1);
A2:=ZTPRICE(REF(A1,1),0.1);
A3:=ZTPRICE(REF(A2,1),0.1);
A4:=ZTPRICE(REF(A3,1),0.1);
A5:=ZTPRICE(REF(A4,1),0.1);
A6:=ZTPRICE(REF(A5,1),0.1);
A7:=ZTPRICE(REF(A6,1),0.1);
A8:=ZTPRICE(REF(A7,1),0.1);
A9:=ZTPRICE(REF(A8,1),0.1);
A10:=ZTPRICE(REF(A9,1),0.1);
A11:=ZTPRICE(REF(A10,1),0.1);
A12:=ZTPRICE(REF(A11,1),0.1);
A13:=ZTPRICE(REF(A12,1),0.1);
A14:=ZTPRICE(REF(A13,1),0.1);
A15:=ZTPRICE(REF(A14,1),0.1);
A16:=ZTPRICE(REF(A15,1),0.1);
A17:=ZTPRICE(REF(A16,1),0.1);
A18:=ZTPRICE(REF(A17,1),0.1);
A19:=ZTPRICE(REF(A18,1),0.1);
A20:=ZTPRICE(REF(A19,1),0.1);
A21:=ZTPRICE(REF(A20,1),0.1);
A22:=ZTPRICE(REF(A21,1),0.1);
A23:=ZTPRICE(REF(A22,1),0.1);
A24:=ZTPRICE(REF(A23,1),0.1);
A25:=ZTPRICE(REF(A24,1),0.1);
A26:=ZTPRICE(REF(A25,1),0.1);
A27:=ZTPRICE(REF(A26,1),0.1);
A28:=ZTPRICE(REF(A27,1),0.1);
A29:=ZTPRICE(REF(A28,1),0.1);
A30:=ZTPRICE(REF(A29,1),0.1);
A31:=ZTPRICE(REF(A30,1),0.1);
A32:=ZTPRICE(REF(A31,1),0.1);
STICKLINE(CURRBARSCOUNT=DT,SH,SL,3,0),COLORRED;
STICKLINE(CURRBARSCOUNT=GT,SH,SL,3,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=DT ,(SL+A1)/2,日期),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=GT ,GD*0.97,日期),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.1,'一10%'),COLORBLUE;
{DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.15,'一15%'),COLORCYAN;}
DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.2,'一20%'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.3,'一30%'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.4,'一40%'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.5,'一50%'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.6,'一60%'),COLORLIMAGENTA;
DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.7,'一70%'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.8,'一80%'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.9,'一90%'),COLORGREEN;
区间1:SH-SH*0.1,DOTLINE;
区间2:SH-SH*0.2,DOTLINE;
区间3:SH-SH*0.3,DOTLINE;
区间4:SH-SH*0.4,DOTLINE;
区间5:SH-SH*0.5,DOTLINE;
区间6:SH-SH*0.6,DOTLINE;
区间7:SH-SH*0.7,DOTLINE;
区间8:SH-SH*0.8,DOTLINE;
区间9:SH-SH*0.9,DOTLINE;
{分析家公式网 WWW.fxjgsw.com 整理}
DRAWTEXT(CURRBARSCOUNT=DT,A1,STRCAT('一 ',CON2STR(A1,2)));
DRAWTEXT(CURRBARSCOUNT=DT,A2,STRCAT('一 ',CON2STR(A2,2)));
DRAWTEXT(CURRBARSCOUNT=DT,A3,STRCAT('一 ',CON2STR(A3,2)));
DRAWTEXT(CURRBARSCOUNT=DT,A4,STRCAT('一 ',CON2STR(A4,2)));
DRAWTEXT(CURRBARSCOUNT=DT,A5,STRCAT('一 ',CON2STR(A5,2)));
DRAWTEXT(CURRBARSCOUNT=DT,A6,STRCAT('一 ',CON2STR(A6,2)));
DRAWTEXT(CURRBARSCOUNT=DT,A7,STRCAT('一 ',CON2STR(A7,2)));
DRAWTEXT(CURRBARSCOUNT=DT,A8,STRCAT('一 ',CON2STR(A8,2)));
DRAWTEXT(CURRBARSCOUNT=DT,A9,STRCAT('一 ',CON2STR(A9,2))),COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT,A10,STRCAT('一 ',CON2STR(A10,2))),COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT,A11,STRCAT('一 ',CON2STR(A11,2))),COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT,A12,STRCAT('一 ',CON2STR(A12,2))),COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT,A13,STRCAT('一 ',CON2STR(A13,2))),COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT,A14,STRCAT('一 ',CON2STR(A14,2))),COLORRED;
DRAWTEXT(CURRBARSCOUNT=DT,A15,STRCAT('一 ',CON2STR(A15,2))),COLORRED;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!