出现尖峰,即是买入信号.未来会附加突破信息 // 1. 粘合线
MA_2 := EMA(CLOSE,2);
MA_3 := EMA(CLOSE,3);
MA_4 := EMA(CLOSE,4);
MA_5 := EMA(CLOSE,5);
MA_6 := EMA(CLOSE,6);
MA_7 := EMA(CLOSE,7);
MA_8 := EMA(CLOSE,8);
MA_9 := EMA(CLOSE,9);
MAX_2_3 := MAX(MA_2, MA_3);
MAX_2_4 := MAX(MAX_2_3, MA_4);
MAX_2_5 := MAX(MAX_2_4, MA_5);
MAX_2_6 := MAX(MAX_2_5, MA_6);
MAX_2_7 := MAX(MAX_2_6, MA_7);
MIN_2_3 := MIN(MA_2, MA_3);
MIN_2_4 := MIN(MIN_2_3, MA_4);
MIN_2_5 := MIN(MIN_2_4, MA_5);
MIN_2_6 := MIN(MIN_2_5, MA_6);
MIN_2_7 := MIN(MIN_2_6, MA_7);
PRE_BOND_1 := (MAX_2_5 - MIN_2_5) * 200 / (MA_2 + MA_5);
PRE_BOND_2 := (MAX_2_7 - MIN_2_7) * 200 / (MA_2 + MA_7);
BOND_1 := IF(PRE_BOND_1 < 2, 2 - PRE_BOND_1, 0);
BOND_2 := IF(PRE_BOND_2 < 2, 2 - PRE_BOND_2, 0);
BOND_RATE := SQRT(BOND_1 * BOND_1)*IF(BOND_2-BOND_1 > 1, 0,1);
// 2. 成交量线
RVOL := 0;
RVOL = IF(VOL > VOL[1], RVOL+1, RVOL);
RVOL = IF(RVOL > 0 AND VOL[1] > VOL[2], RVOL+1, RVOL);
RVOL = IF(RVOL > 0 AND VOL[2] > VOL[3], RVOL+1, RVOL);
RVOL = IF(RVOL > 0 AND VOL[3] > VOL[4], RVOL+1, RVOL);
RVOL = IF(RVOL > 0 AND VOL[4] > VOL[5], RVOL+1, RVOL);
RVOL = IF(RVOL > 0 AND VOL[5] > VOL[6], RVOL+1, RVOL);
RVOL = IF(RVOL > 0 AND VOL[6] > VOL[7], RVOL+1, RVOL);
RVOL = IF(RVOL > 0 AND VOL[7] > VOL[8], RVOL+1, RVOL);
RVOL = IF(RVOL > 0 AND VOL[8] > VOL[9], RVOL+1, RVOL);
AVOL := VOL*5/(VOL[1]+VOL[2]+VOL[3]+VOL[4]+VOL[5]);
AVOL = IF(AVOL < 1, 0, AVOL);
VOL_RATE:= SQRT(RVOL*AVOL*IF(CLOSE > MA_5,1,0));
// 3. 粘合线和成交量线交叉
CROSS_RATE := IF(VOL_RATE>BOND_RATE AND VOL_RATE[1] <BOND_RATE[1], 1, 0);
// 4. 排除偏移20日线5个点以上
MA_20 := EMA(CLOSE, 20);
DIR_RATE := IF(ABS(MA_5-MA_20)*100/MA_5>5, 0, 1);
// 5. 高开6个点去掉
OPEN_RATE := IF((OPEN-CLOSE[1])*100/CLOSE[1]>=6, 0 , 1);
// 6. 突破信号
BREAK_VOL_LIMIT := SHGZG * 0.2;
BREAK_RATE := 0;
MAX_CLOSE := CLOSE[1];
SUM_VOL := VOL[1];
BREAK_RATE = IF(HIGH > MAX_CLOSE AND SUM_VOL > BREAK_VOL_LIMIT OR BREAK_RATE = 1, 1, 0);
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[2]);
SUM_VOL = SUM_VOL + VOL[2];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[3]);
SUM_VOL = SUM_VOL + VOL[3];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[4]);
SUM_VOL = SUM_VOL + VOL[4];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[5]);
SUM_VOL = SUM_VOL + VOL[5];
BREAK_RATE = IF(HIGH > MAX_CLOSE AND SUM_VOL > BREAK_VOL_LIMIT OR BREAK_RATE = 1, 1, 0);
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[6]);
SUM_VOL = SUM_VOL + VOL[6];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[7]);
SUM_VOL = SUM_VOL + VOL[7];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[8]);
SUM_VOL = SUM_VOL + VOL[8];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[9]);
SUM_VOL = SUM_VOL + VOL[9];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[10]);
SUM_VOL = SUM_VOL + VOL[10];
BREAK_RATE = IF(HIGH > MAX_CLOSE AND SUM_VOL > BREAK_VOL_LIMIT OR BREAK_RATE = 1, 1, 0);
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[11]);
SUM_VOL = SUM_VOL + VOL[11];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[12]);
SUM_VOL = SUM_VOL + VOL[12];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[13]);
SUM_VOL = SUM_VOL + VOL[13];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[14]);
SUM_VOL = SUM_VOL + VOL[14];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[15]);
SUM_VOL = SUM_VOL + VOL[15];
BREAK_RATE = IF(HIGH > MAX_CLOSE AND SUM_VOL > BREAK_VOL_LIMIT OR BREAK_RATE = 1, 1, 0);
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[16]);
SUM_VOL = SUM_VOL + VOL[16];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[17]);
SUM_VOL = SUM_VOL + VOL[17];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[18]);
SUM_VOL = SUM_VOL + VOL[18];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[19]);
SUM_VOL = SUM_VOL + VOL[19];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[20]);
SUM_VOL = SUM_VOL + VOL[20];
BREAK_RATE = IF(HIGH > MAX_CLOSE AND SUM_VOL > BREAK_VOL_LIMIT OR BREAK_RATE = 1, 1, 0);
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[21]);
SUM_VOL = SUM_VOL + VOL[21];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[22]);
SUM_VOL = SUM_VOL + VOL[22];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[23]);
SUM_VOL = SUM_VOL + VOL[23];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[24]);
SUM_VOL = SUM_VOL + VOL[24];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[25]);
SUM_VOL = SUM_VOL + VOL[25];
BREAK_RATE = IF(HIGH > MAX_CLOSE AND SUM_VOL > BREAK_VOL_LIMIT OR BREAK_RATE = 1, 1, 0);
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[26]);
SUM_VOL = SUM_VOL + VOL[26];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[27]);
SUM_VOL = SUM_VOL + VOL[27];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[28]);
SUM_VOL = SUM_VOL + VOL[28];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[29]);
SUM_VOL = SUM_VOL + VOL[29];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[30]);
SUM_VOL = SUM_VOL + VOL[30];
BREAK_RATE = IF(HIGH > MAX_CLOSE AND SUM_VOL > BREAK_VOL_LIMIT OR BREAK_RATE = 1, 1, 0);
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[31]);
SUM_VOL = SUM_VOL + VOL[31];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[32]);
SUM_VOL = SUM_VOL + VOL[32];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[33]);
SUM_VOL = SUM_VOL + VOL[33];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[34]);
SUM_VOL = SUM_VOL + VOL[34];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[35]);
SUM_VOL = SUM_VOL + VOL[35];
BREAK_RATE = IF(HIGH > MAX_CLOSE AND SUM_VOL > BREAK_VOL_LIMIT OR BREAK_RATE = 1, 1, 0);
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[36]);
SUM_VOL = SUM_VOL + VOL[36];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[37]);
SUM_VOL = SUM_VOL + VOL[37];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[38]);
SUM_VOL = SUM_VOL + VOL[38];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[39]);
SUM_VOL = SUM_VOL + VOL[39];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[40]);
SUM_VOL = SUM_VOL + VOL[40];
BREAK_RATE = IF(HIGH > MAX_CLOSE AND SUM_VOL > BREAK_VOL_LIMIT OR BREAK_RATE = 1, 1, 0);
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[41]);
SUM_VOL = SUM_VOL + VOL[41];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[42]);
SUM_VOL = SUM_VOL + VOL[42];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[43]);
SUM_VOL = SUM_VOL + VOL[43];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[44]);
SUM_VOL = SUM_VOL + VOL[44];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[45]);
SUM_VOL = SUM_VOL + VOL[45];
BREAK_RATE = IF(HIGH > MAX_CLOSE AND SUM_VOL > BREAK_VOL_LIMIT OR BREAK_RATE = 1, 1, 0);
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[46]);
SUM_VOL = SUM_VOL + VOL[46];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[47]);
SUM_VOL = SUM_VOL + VOL[47];
MAX_CLOSE = MAX(MAX_CLOSE, CLOSE[48]);
SUM_VOL = SUM_VOL + VOL[48];
MAX_CLOSE = MAX(MAX_CLOS |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!