看起来很不错的指标,加上配图,清晰明了
{公式名称: 缠论变色K线}
VAR1:=1;
VAR2:=MA(CLOSE,170);
VAR3:=IF(HIGH<REF(HIGH,1) AND REF(HIGH,1)<REF(HIGH,2),REF(HIGH,2),0);
VAR4:=IF(LOW>REF(LOW,1) AND REF(LOW,1)>REF(LOW,2),REF(LOW,2),0);
VAR5:=VALUEWHEN(VAR3>0,VAR3);
VAR6:=VALUEWHEN(VAR4>0,VAR4);
VAR7:=HHV(HIGH,1)/10*VAR1+HHV(HIGH,2)/10+HHV(HIGH,2)/10+HHV(HIGH,4)/10+HHV(HIGH,4)/10+HHV(HIGH,8)/10+HHV(HIGH,8)/10+HHV(HIGH,13)/10+HHV(HIGH,40)/10+HHV(HIGH,20)/10;
VAR8:=LLV(LOW,1)/10*VAR1+LLV(LOW,2)/10+LLV(LOW,2)/10+LLV(LOW,4)/10+LLV(LOW,4)/10+LLV(LOW,8)/10+LLV(LOW,8)/10+LLV(LOW,13)/10+LLV(LOW,40)/10+LLV(LOW,20)/10;
VAR9:=IF(VAR7<REF(VAR7,1) AND VAR8<REF(VAR8,1) AND REF(OPEN,1)>CLOSE AND OPEN>CLOSE AND HHV(OPEN,0)-CLOSE>0,REF(VAR7,2),0);
VAR10:=IF(VAR8>REF(VAR8,1) AND VAR7>REF(VAR7,1) AND REF(OPEN,1)<CLOSE AND OPEN<CLOSE AND CLOSE-LLV(OPEN,0)>0,REF(VAR8,2),0);
VAR11:=DATE;
VAR12:=VAR9;
VAR13:=VAR10;
VAR14:=OPEN;
VAR15:=CLOSE;
VAR16:=HIGH;
VAR17:=LOW;
VAR18:=VALUEWHEN(VAR12>0,VAR12);
VAR19:=VALUEWHEN(VAR13>0,VAR13);
VAR20:=IF(CLOSE>VAR18,(-3),IF(CLOSE<VAR19,1,0));
VAR21:=VALUEWHEN(VAR20!=0,VAR20);
VAR22:=IF(VAR21=1,VAR18,VAR19);
VAR23:=VALUEWHEN(ISLASTBAR,VAR22);
VAR24:=VAR21;
VAR25:=VAR21;
VAR26:=VAR24;
VAR27:=OPEN-CLOSE;
VAR28:=VAR27;
VAR29:=IF(OPEN>CLOSE,OPEN,CLOSE);
VAR30:=IF(OPEN<CLOSE,OPEN,CLOSE);
STICKLINE(VAR26=1,VAR16,VAR29,0,0),COLORCYAN;
STICKLINE(VAR26=1,VAR17,VAR30,0,0),COLORCYAN;
STICKLINE(VAR26=(-3),VAR16,VAR29,0,0),COLORRED;
STICKLINE(VAR26=(-3),VAR17,VAR30,0,0),COLORRED;
STICKLINE(VAR26>0,VAR14,VAR15,3,1),COLORCYAN;
STICKLINE(VAR26<=0,VAR14,VAR15,3,1),COLORRED;
STICKLINE(VAR28>0 AND VAR26<=0,VAR14,VAR15,3,0),COLORRED;
STICKLINE(VAR28>0 AND VAR26>0,VAR14,VAR15,3,0),COLORCYAN;
IF(VAR21=1,VAR22,DRAWNULL),COLORCYAN;
IF(VAR21=(-3),VAR22,DRAWNULL),COLORRED;
VAR31:=BARSLAST(CROSS(VAR26>0,0.5));
VAR32:=BARSLAST(CROSS(VAR26<=0,0.5));
VAR33:=IF(VAR26<=0,REF(HHV(HIGH,VAR32),VAR31),DRAWNULL);
VAR34:=IF(VAR26>0,REF(LLV(LOW,VAR31),VAR32),DRAWNULL);
VAR35:=CROSS(CLOSE,VAR33) OR REF(IF(VAR33=DRAWNULL,1,DRAWNULL),1) AND CLOSE>VAR33;
VAR36:=CROSS(VAR34,CLOSE) OR REF(IF(VAR34=DRAWNULL,1,DRAWNULL),1) AND CLOSE<VAR34;
VAR37:=REF(CLOSE,1);
VAR38:=SMA(MAX(CLOSE-VAR37,0),6,1)/SMA(ABS(CLOSE-VAR37),6,1)*100;
VAR39:=20;
VAR40:=20;
VAR41:=LLVBARS(HIGH,VAR39);
VAR42:=LLVBARS(LOW,VAR39);
VAR43:=HHVBARS(LOW,VAR40);
VAR44:=HHVBARS(HIGH,VAR40);
VAR45:=HHV(LOW,VAR41+1)>LLV(HIGH,VAR41+1);
VAR46:=HHV(LOW,VAR43+1)>LLV(HIGH,VAR43+1);
VAR47:=COUNT(LOW>=REF(LOW,1),VAR42)>2 AND COUNT(HIGH>=REF(HIGH,1),VAR41)>2;
VAR48:=COUNT(HIGH<=REF(HIGH,1),VAR44)>2 AND COUNT(LOW<=REF(LOW,1),VAR43)>2;
VAR49:=VAR45 AND VAR47 AND VAR42>3;
VAR50:=VAR46 AND VAR48 AND VAR44>3;
VAR51:=VAR49 AND HIGH=HHV(HIGH,BARSLAST(VAR50)) AND BARSLAST(VAR50)>3;
VAR52:=VAR50 AND LOW=LLV(LOW,BARSLAST(VAR49)) AND BARSLAST(VAR49)>3;
DRAWLINE(CROSS(BACKSET(VAR51,BARSLAST(VAR52)+1),0.5),LOW,CROSS(BACKSET(VAR52,BARSLAST(VAR51)+1),0.5),HIGH,0),COLORRED,LINETHICK3;
DRAWLINE(CROSS(BACKSET(VAR52,BARSLAST(VAR51)+1),0.5),HIGH,CROSS(BACKSET(VAR51,BARSLAST(VAR52)+1),0.5),LOW,0),COLORGREEN,LINETHICK2;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!