分析家公式网,提供股票公式,股票软件用户登录  |  用户 注册
以下为本人为文华财经行情分析软件写的混沌交易之基本分形公式(转载)
  • 软件大小:3.00 KB
  • 推荐星级:
  • 更新时间:2014-05-24 09:24:52
  • 软件类别: 国产软件 / 文华公式
  • 软件语言:简体中文
  • 授权方式: 免费版
  • 联系方式:暂无联系方式
  • 官方主页: Home Page
  • 点击大图:  【一键转帖到论坛】
  • 插件情况:
  • 运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
  • 相关Tags:混沌交易  基本分形  
  • (0)0%
    (0)0%

软件介绍

TMP:=OPEN-CLOSE;
DRAWLINE(TMP>0.0001,HIGH,TMP>0.0001,OPEN,COLORCYAN);
DRAWLINE(TMP>0.0001,LOW,TMP>0.0001,CLOSE,COLORCYAN);
DRAWLINE(TMP<-0.0001,HIGH,TMP<-0.0001,CLOSE,COLORRED);
DRAWLINE(TMP<-0.0001<CLOSE,LOW,TMP<-0.0001,OPEN,COLORRED);
DRAWLINE(ABS(TMP)<0.0001,LOW,ABS(TMP)<0.0001,OPEN,COLORWHITE);
DRAWLINE(ABS(TMP)<0.0001,HIGH,ABS(TMP)<0.0001,OPEN,COLORWHITE);
STICKLINE(TMP>0,OPEN,CLOSE,COLORCYAN,0);
STICKLINE(TMP<=0,OPEN,CLOSE,COLORRED,1);
VAR1:=HIGH>=REFX(HIGH,1) && HIGH>=REFX(HIGH,2) && HIGH=HHV(HIGH,3);
VAR2:=LOW<=REFX(LOW,1) && LOW<=REFX(LOW,2) && LOW = LLV(LOW,3);
STICKLINE(VAR1,OPEN,CLOSE,COLORMAGENTA,0);
STICKLINE(VAR2,OPEN,CLOSE,COLORGREEN,0);
STICKLINE(CROSS(HIGH,REF(HIGH,BARSLAST(VAR1))),REF(HIGH,BARSLAST(VAR1)),1.002*REF(HIGH,BARSLAST(VAR1)),COLORWHITE,0);
STICKLINE(CROSS(REF(LOW,BARSLAST(VAR2)),LOW),REF(LOW,BARSLAST(VAR2)),0.998*REF(LOW,BARSLAST(VAR2)),COLORYELLOW,0);
DRAWTEXT(VAR1,1.02*HIGH,'----');
DRAWTEXT(VAR2,1.02*LOW,'----');
DRAWTEXT(CROSS(HIGH,REF(HIGH,BARSLAST(VAR1))),1.004*REF(HIGH,BARSLAST(VAR1)),'涨');
DRAWTEXT(CROSS(REF(LOW,BARSLAST(VAR2)),LOW),1.004*REF(LOW,BARSLAST(VAR2)),'跌');

文华财经用鳄鱼线指标(主图)

var1:=(HIGH+LOW)/2;
Lip:REF(SMA(var1,5,1),3),COLORGREEN;
Tooth:REF(SMA(var1,8,1),5),COLORRED;
Jaw:REF(SMA(var1,13,1),8),COLORBLUE;

//{平衡线}
P1:=REF(HIGH,1)>HIGH AND REF(HIGH,1)>Jaw;
BBUY:REF(REF(HIGH,1),BARSLAST(P1)),COLORWHITE;

STICKLINE(CROSS(HIGH,BBUY) AND LOW>BBUY,(HIGH+LOW)/2,(HIGH+LOW)/2,COLORWHITE,0);
STICKLINE(CROSS(HIGH,BBUY) AND LOW<=BBUY,BBUY,BBUY,COLORWHITE,0);
P2:=REF(LOW,1)<LOW AND REF(LOW,1)<Jaw;
BSELL:REF(REF(LOW,1),BARSLAST(P2)),COLORMAGENTA;


STICKLINE(CROSS(BSELL,LOW) AND HIGH<BSELL,(HIGH+LOW)/2,(HIGH+LOW)/2,COLORMAGENTA,0);
STICKLINE(CROSS(BSELL,LOW) AND HIGH>=BSELL,BSELL,BSELL,COLORMAGENTA,0);

ho:=HIGH>REF(HIGH,1) AND HIGH>REF(HIGH,2) AND HIGH>=REFX(HIGH,1) AND IFELSE(HIGH=REFX(HIGH,2),HIGH>REFX(HIGH,3),HIGH>REFX(HIGH,2));
fxh:=CROSS(ho,0.9);
hh:=REF(HIGH,BARSLAST(fxh));
lo:=LOW<REF(LOW,1) AND LOW<REF(LOW,2) AND LOW<=REFX(LOW,1) AND IFELSE(LOW=REFX(LOW,2),LOW<REFX(LOW,3),LOW<REFX(LOW,2));
fxl:=CROSS(lo,0.9);
ll:=REF(LOW,BARSLAST(fxl));
//DRAWSL(ll,LOW,0,2,0, COLORGREEN);
//DRAWSL(hh,HIGH,0,2,0, COLORRED);
//SFX: hh, POINTDOT,ColorEA91B5;
STICKLINE(CLOSE,hh,hh,COLORRED,0);
//XFX: ll, POINTDOT,Color3791B5;
STICKLINE(CLOSE,ll,ll,COLORYELLOW,0);

Y:=(HIGH+LOW)/2;
//AO:=MA(Var1,5)-MA(Var1,34);
AC:=MA(Y,5)-MA(Y,34)-MA(MA(Y,5)-MA(Y,34),5);
ac1:=REF(AC,1);
//{STICKLINE(AC>ac1,20,ac+20,8,0),colorRED;}
//{STICKLINE(AC<ac1,20,ac+20,8,0),colorgreen;}
Var1:=(HIGH+LOW)/2;
AO:=MA(Var1,5)-MA(Var1,35);

ao1:=REF(AO,1);
//{STICKLINE(Ao>ao1,0,ao,8,0),colorRED;}
//{STICKLINE(Ao<ao1,0,ao,8,0),colorgreen;}

STICKLINE(AC>ac1 AND AO>ao1,HIGH,LOW,COLORRED,0);
m:=IFELSE(CLOSE>OPEN,0,1);
STICKLINE(AC>ac1 AND AO>ao1 AND CLOSE<OPEN,CLOSE,OPEN,colorred,1);
STICKLINE(AC>ac1 AND AO>ao1 AND CLOSE>OPEN,CLOSE,OPEN,colorred,0);
STICKLINE(AC>ac1 AND AO<ao1 OR AC<ac1 AND AO>ao1,HIGH,LOW,COLORLIGHTGREY,0);
STICKLINE((AC>ac1 AND AO<ao1 OR AC<ac1 AND AO>ao1) AND CLOSE>OPEN,CLOSE,OPEN,COLORLIGHTGREY,0);
STICKLINE((AC>ac1 AND AO<ao1 OR AC<ac1 AND AO>ao1) AND CLOSE<OPEN,CLOSE,OPEN,COLORLIGHTGREY,1);
STICKLINE(AC<ac1 AND AO<ao1,HIGH,LOW,COLORGREEN,0);
STICKLINE(AC<ac1 AND AO<ao1 AND CLOSE>OPEN,CLOSE,OPEN,COLORGREEN,0);
STICKLINE(AC<ac1 AND AO<ao1 AND CLOSE<OPEN,CLOSE,OPEN,COLORGREEN,1);

R1:=REF(SMA(Y,8,1),5);
R2:=IFELSE(C<R1,0,R1);
R3:=IFELSE(C>R1,0,R1);

//{========AO及AC方向========}
DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC>REF(AC,1),1.0004*R1,'↑↑');
DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC<REF(AC,1),1.0004*R1,'↓↓');
DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC<REF(AC,1),1.0004*R1,'↑↓');
DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) AND AC>REF(AC,1),1.0004*R1,'↓↑');

文华财经用AC指标(副图)

//{ Chaos Accelerator/Decelerator Oscillator }
//{ Measures acceleration -AC}
//{ Plot AS histogram }
Y:=(HIGH+LOW)/2;
AC:=MA(Y,5)-MA(Y,34)-MA(MA(Y,5)-MA(Y,34),5);
//{Put in the same window AND plot green}
ACGreen:IFELSE(AC>REF( AC,1) ,AC,0 ),COLORRED;
STICKLINE(AC<REF(AC,1),0,AC,COLORGREEN,1);
//{Put in its on window AS a histogram AND plot red}
ACRed:IFELSE(AC<REF( AC,1) ,AC,0 ),COLORGREEN;
STICKLINE(AC>REF(AC,1),0,AC,COLORRED,1);
ac1:=REF(AC,1);
buy1:=REF(AC,3)<REF(ac1,3) AND REF(AC,2)<REF(ac1,2) AND REF(AC,2)<REF(AC,3) AND REF(AC,1)>REF(ac1,1) AND AC>ac1 AND COUNT(AC>0,4)=4;// {REF(AC,3)>0 AND REF(AC,1)>0 AND REF(AC,2)>0 AND AC>0};
//DRAWICON(buy1,AC,4);
DRAWTEXT(buy1,AC, 'B'),COLORWHITE;
buy2:=COUNT(AC<0,4)=4 AND REF(AC,3)<REF(ac1,3) AND COUNT(AC>ac1,3)=3;
//DRAWICON(buy2,AC,4);
DRAWTEXT(buy2,AC, 'B'),COLORWHITE;
buy3:=REF(AC,3)<REF(ac1,3) AND REF(AC,2)<REF(ac1,2) AND REF(AC,2)<REF(AC,3) AND COUNT(AC>ac1,2)=2 AND REF(AC,1)<0 AND AC>0;
//DRAWICON(buy3,AC,4);
DRAWTEXT(buy3,AC, 'B'),COLORWHITE;
buy4:=REF(AC,4)<REF(ac1,4) AND REF(AC,3)<REF(ac1,3) AND REF(AC,3)<REF(AC,4) AND COUNT(AC>ac1,3)=3 AND REF(AC,1)<0 AND AC>0;
//DRAWICON(buy4,AC,4) ALIGN0;
DRAWTEXT(buy4,AC, 'B'),COLORWHITE;


s1:=REF(AC,3)>REF(ac1,3) AND REF(AC,2)>REF(ac1,2) AND REF(AC,2)>REF(AC,3) AND REF(AC,1)<REF(ac1,1) AND AC<ac1 AND COUNT(AC<0,4)=4;// {REF(AC,3)<0 AND REF(AC,1)<0 AND REF(AC,2)<0 AND AC<0};
//DRAWICON(s1,AC,5);
DRAWTEXT(s1,AC, 'S'),COLORWHITE;

s2:=COUNT(AC>0,4)=4 AND REF(AC,3)>REF(ac1,3) AND COUNT(AC<ac1,3)=3;
//DRAWICON(s2,AC,5);
DRAWTEXT(s2,AC, 'S'),COLORWHITE;

s3:=REF(AC,3)>REF(ac1,3) AND REF(AC,2)>REF(ac1,2) AND REF(AC,2)>REF(AC,3) AND COUNT(AC<ac1,2)=2 AND REF(AC,1)>0 AND AC<0;
//DRAWICON(s3,AC,5);
DRAWTEXT(s3,AC, 'S'),COLORWHITE;
s4:=REF(AC,4)>REF(ac1,4) AND REF(AC,3)>REF(ac1,3) AND REF(AC,3)>REF(AC,4) AND COUNT(AC<ac1,3)=3 AND REF(AC,1)>0 AND AC<0;
//DRAWICON(s4,AC,5) ALIGN0;
DRAWTEXT(s4,AC, 'S'),COLORWHITE;

文华财经用AO指标(副图)

Y:=(HIGH+LOW)/2;
AO:=MA(Y,5)-MA(Y,34);
AOGreen:IFELSE(AO>REF(AO,1),AO,0),COLORRED;
STICKLINE(AO>=REF(AO,1),0,AO,COLORRED,1);
AORed:IFELSE(AO<REF( AO,1),AO,0),COLORGREEN;
STICKLINE(AO<REF(AO,1),0,AO,COLORGREEN,1);
SignalLine:MA(AO,5),COLORBLUE;
s1:=CROSS(0,AO);
//DRAWICON(s1,AO,5),ALIGN0; //文华此函数绘图不佳
DRAWTEXT(s1,AO,'S'),COLORWHITE;
//----------------------------以上是下穿0信号;
s2:=AO<0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);
//DRAWNUMBER(1>0,ao,lu2,0);
//DRAWICON(s2,AO,5),ALIGN0;
DRAWTEXT(s2,AO,'S'),COLORWHITE;
//-----------------------------以上碟型卖出信号;

scount:=BARSLAST(AO<0);//上一次ao>0后到现在的周期数;
//DRAWNUMBER(1>0,ao-0.1,scount,0);
sd:=HHV(AO,scount);//求上面周期的最大ao;
scountd:=HHVBARS(AO,scount);//求最大值到现在的周期数;
//DRAWNUMBER(1>0,ao-0.3,scountd,0);
s3:=AO>

地址


软件评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论

说明

* 使用方法:点击上面蓝色块,打开新页面按照提示进行

* 本网站提供的各种股票软件,例如大智慧软件,通达信软件,同花顺软件,东方财富通等等,和各种股票公式指标,例如大智慧公式,通达信公式,同花顺公式,文华公式,博易大师公式,股票价格计算公式等等公式指标等,都来源网上公开来源收集

本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!

* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。

* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程

* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2022 fxjgsw.Com. All Rights Reserved .
页面执行时间:1,140.62500 毫秒