二十均线:=(INTPART((MA(C,20) * 100)) / 100); 站稳状态:=(SUM((C >= 二十均线),4) = 4);
跌破状态:=(SUM((C <= 二十均线),4) = 4);
站稳确立:=CROSS(站稳状态,0.5);
跌破确立:=CROSS(跌破状态,0.5);
上涨浪:=((((BARSLAST(站稳确立) < BARSLAST(跌破确立)) AND (BARSLAST(站稳确立) >= 0)) OR
((BARSLAST(跌破确立) = -(1)) AND (BARSLAST(站稳确立) >= 0))) OR (((BARSLAST(跌破确立) = -(1)) AND (BARSLAST(站稳确立) = -(1))) AND (C > 二十均线)));
下跌浪:=((((BARSLAST(跌破确立) < BARSLAST(站稳确立)) AND (BARSLAST(跌破确立) >= 0))
OR ((BARSLAST(站稳确立) = -(1)) AND (BARSLAST(跌破确立) >= 0))) OR (((BARSLAST(跌破确立) = -(1)) AND (BARSLAST(站稳确立) = -(1))) AND (C <二十均线)));
MA5:MA(CLOSE,5);
MA20:MA(CLOSE,20);
VAR32:=CROSS(REF(C,3),REF(MA20,3)) AND REF(C,2)>=REF(MA20,2) AND REF(C,1)>=REF(MA20,1) AND C>=MA20;
VAR33:=CROSS(REF(MA20,3),REF(C,3)) AND REF(C,2)<=REF(MA20,2) AND REF(C,1)<=REF(MA20,1) AND C<=MA20;
VAR34:=BARSLAST(VAR32);
VAR35:=BARSLAST(VAR33);
VAR36:=REF(VAR34,1)>=VAR35 AND VAR34=0;
VAR37:=REF(VAR35,1)>=VAR34 AND VAR35=0;
VAR38:=BARSLAST(VAR36);
VAR39:=BARSLAST(VAR37);
VAR40:=REF(VAR38,VAR38+1)+VAR38+1;
VAR41:=REF(VAR39,VAR39+1)+VAR39+1;
VAR42:=REF(HHVBARS(HIGH,VAR38+1),VAR39+1)+VAR39+1;
VAR43:=REF(LLVBARS(LOW,VAR39+1),VAR38+1)+VAR38+1;
VAR44:=HHVBARS(HIGH,VAR43);
VAR45:=LLVBARS(LOW,VAR42);
VAR46:=HHV(HIGH,VAR43);
VAR47:=LLV(LOW,VAR42);
VAR48:=REF(VAR46,VAR39+1);
VAR49:=REF(VAR47,IF(VAR38<VAR39,VAR40+1,VAR38+1));
低点黄:=VAR49;
高点原:=VAR48;
低点:=VAR49;
STICKLINE(ISLASTBAR,低点,低点,700,-1),COLORYELLOW;
HXS1:=VAR48;
STICKLINE(ISLASTBAR,HXS1,HXS1,700,-1),COLORYELLOW;
HXS2:=(INTPART(((低点 + ((HXS1 - 低点) * 0.236)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C>=低点黄,HXS2,HXS2,700,-1),COLORBLUE;
HXS3:=(INTPART(((低点 + ((HXS1 - 低点) * 0.382)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C>=低点黄,HXS3,HXS3,700,-1),COLORGREEN;
HXS4:=(INTPART(((低点 + ((HXS1 - 低点) * 0.5)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C>=低点黄,HXS4,HXS4,700,-1),COLORWHITE;
HXS5:=(INTPART(((低点 + ((HXS1 - 低点) * 0.618)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C>=低点黄,HXS5,HXS5,700,-1),COLORMAGENTA;
HXS6:=(INTPART(((低点 + ((HXS1 - 低点) * 1.618)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C>=低点黄,HXS6,HXS6,700,-1),COLORRED;
HXS7:=(INTPART(((低点 + ((HXS1 - 低点) * 2.618)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C>=低点黄,HXS7,HXS7,700,-1),COLORRED;
DRAWTEXT(ISLASTBAR AND C>=低点黄,HXS1,'%1.000'),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND C>=低点黄,HXS2,'%0.236'),COLORBLUE;
DRAWTEXT(ISLASTBAR AND C>=低点黄,HXS3,'%0.382'),COLORGREEN;
DRAWTEXT(ISLASTBAR AND C>=低点黄,HXS4,'%0.500'),COLORWHITE;
DRAWTEXT(ISLASTBAR AND C>=低点黄,HXS5,'%0.618'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR AND C>=低点黄,低点,'%0.000'),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND C>=低点黄,HXS6,'%1.618'),COLORRED;
DRAWTEXT(ISLASTBAR AND C>=低点黄,HXS7,'%2.618'),COLORRED;
HXX2:=(INTPART(((HXS1 + ((低点 - HXS1) * 0.236)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C<低点黄,HXX2,HXX2,700,-1),COLORBLUE;
HXX3:=(INTPART(((HXS1 + ((低点 - HXS1) * 0.382)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C<低点黄,HXX3,HXX3,700,-1),COLORGREEN;
HXX4:=(INTPART(((HXS1 + ((低点 - HXS1) * 0.5)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C<低点黄,HXX4,HXX4,700,-1),COLORWHITE;
HXX5:=(INTPART(((HXS1 + ((低点 - HXS1) * 0.618)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C<低点黄,HXX5,HXX5,700,-1),COLORMAGENTA;
HXX6:=(INTPART(((HXS1 + ((低点 - HXS1) * 1.618)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C<低点黄,HXX6,HXX6,700,-1),COLORRED;
HXX7:=(INTPART(((HXS1 + ((低点 - HXS1) * 2.618)) * 100)) / 100);
STICKLINE(ISLASTBAR AND C<低点黄,HXX7,HXX7,700,-1),COLORRED;
DRAWTEXT(ISLASTBAR AND C<低点黄,低点,'%1.000'),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND C<低点黄,HXX2,'%0.236'),COLORBLUE;
DRAWTEXT(ISLASTBAR AND C<低点黄,HXX3,'%0.382'),COLORGREEN;
DRAWTEXT(ISLASTBAR AND C<低点黄,HXX4,'%0.500'),COLORWHITE;
DRAWTEXT(ISLASTBAR AND C<低点黄,HXX5,'%0.618'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR AND C<低点黄,HXS1,'%0.000'),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND C<低点黄,HXX6,'%1.618'),COLORRED;
DRAWTEXT(ISLASTBAR AND C<低点黄,HXX7,'%2.618'),COLORRED;
IF(上涨浪,MA20,DRAWNULL),LINETHICK2,COLORRED;
IF(下跌浪,MA20,DRAWNULL),LINETHICK2,COLORGREEN;
零位:=IF(C>=低点黄,低点,HXS1);
二三六位:=IF(C>=低点黄,HXS2,HXX2);
三八二位:=IF(C>=低点黄,HXS3,HXX3);
五位:=IF(C>=低点黄,HXS4,HXX4);
六一八位:=IF(C>=低点黄,HXS5,HXX5);
一位:=IF(C>=低点黄,HXS1,低点);
一六一八位:=IF(C>=低点黄,HXS6,HXX6);
二六一八位:=IF(C>=低点黄,HXS7,HXX7);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.1,0.05,1,'2.618:'),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.11,0.05,0,二六一八位),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.1,0.1,1,'1.618:'),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.11,0.1,0,一六一八位),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.1,0.15,1,'1.000:'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.11,0.15,0,一位),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.1,0.2,1,'0.618:'),COLORMAGENTA;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.11,0.2,0,六一八位),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.1,0.25,1,'0.500:'),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.11,0.25,0,五位),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.1,0.3,1,'0.382:'),COLORGREEN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.11,0.3,0,三八二位),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.1,0.35,1,'0.236:'),COLORBLUE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.11,0.35,0,二三六位),COLORBLUE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.1,0.4,1,'0.000:'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.11,0.4,0,零位),COLORYELLOW;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!