Current=C; PERIOD=1;
AVE:MA(C,PERIOD),coloryellow;
AVE3=MA(C,2);
Season:MA(C,52),colorcyan,linethick2,POINTDOT;
//Spring:MA(C,17),colorgreen,linethick2,;
//Summer:MA(C,26),colorred,linethick2,;
Fall:MA(C,100),colorred,linethick2;
FallAVE=MA(FALL,3);
//辰:=MA(C,145),nodraw;
//卯:=MA(C,455),nodraw;
//申:=MA(C,320),nodraw;
//亥:=MA(C,732),nodraw,NOText;;
ZEROS:=0;
ONE:1,nodraw,white;
//AVES:=0; // smooth
//AVES =C*(EXP(-1/ABS(VOL-REF(VOL,1))/REF(VOL,1)) + EXP(0))/2;
//AVES = AVES + REF(C,1) *(EXP(-1/(ABS(REF(VOL,1)-REF(VOL,2))/REF(VOL,2))) + EXP(-1))/2;
//AVES = AVES + REF(C,2)*(EXP(-1/ABS(REF(VOL,2)-REF(VOL,3))/REF(VOL,3))+ EXP(-2))/2;
//AVE:AVES/2,coloryellow;
//for k=0 to PERIOD-1 DO BEGIN
// DeltaVOL = (REF(VOL,k)-REF(VOL,k+1))/REF(VOL,k) + 1e-10;
// W=EXP(-k)+EXP(-1/DELTAVOL);
// AVES= AVES + W*REF(C,k);
//END
//AVE:=AVES/Period;
CROSSAGAIN = CROSS(REF(AVE,1),Fall) OR CROSS(REF(AVE,2),Fall) OR CROSS(REF(AVE,3),Fall) OR CROSS(REF(AVE,4),Fall) OR CROSS(REF(AVE,5),Fall);
春暖花开:= CROSS(AVE,Fall) AND AVE>REF(AVE,1) AND MACD>0 AND CCI>90 AND AVE> MA(AVE,5) AND Fall>REF(Fall,1) AND MA(VOL,PERIOD)>1.5*REF(MA(VOL,PERIOD),1);
春光乍泄:= CROSS(AVE,FallAVE) AND 春暖花开<=0 ;
十里桃花: 春暖花开 OR 春光乍泄,colorcyan,nodraw;
秋风落叶: CROSS(Fall,AVE3),colorgreen,nodraw;// AND HIGH<Fall;
DRAWICON(春光乍泄,Fall-0.1,'buy');
DRAWICON(春暖花开,Fall-0.1,'buy');
DRAWICON(秋风落叶,Fall+0.1,'SELL');
//BARSLASTCOUNT(春光乍泄)<5
DRAWTEXT(春光乍泄 AND COUNT(春光乍泄,8)<2,Fall*0.96,'+春光乍泄'),colorcyan;//color0050F7;
DRAWTEXT(春暖花开 AND COUNT(春暖花开,8)<2,Fall*0.96,'+春暖花开'),coloryellow;
DRAWTEXT(秋风落叶 AND COUNT(秋风落叶,8)<2,Fall*1.05,'-秋风落叶'),colorgreen;
//站上午线
/*
生命之光:= CROSS(CLOSE,Season,5) AND CLOSE>REF(CLOSE,1) AND CLOSE> MA(CLOSE,5); //站上季线
早春播种:= CROSS(Spring,Summer) AND (Spring>REF(Spring,1)) AND MACD>0 AND CCI>100 AND CLOSE> MA(CLOSE,5) AND CLOSE>Season,nodraw; //强势// 通子金叉
初春曙光:= (CROSS(Spring,Summer) AND (Spring>REF(Summer,1))) AND (CLOSE> MA(CLOSE,5)) AND (早春播种<=0) ; // 通子金叉
金秋收获:= CROSS(Summer,Fall) AND (Summer>REF(Summer,1)) AND MACD>0 AND CCI>90 AND CLOSE> MA(CLOSE,5) AND C>Season,nodraw; // 强势子金午叉
秋季耕作:= (CROSS(Summer,Fall) AND (Summer>REF(Summer,1))) AND (CLOSE> MA(CLOSE,5)) AND (金秋收获<=0) ,nodraw; //// 子金午叉
春光流逝:= CROSS(Summer,Spring) AND Spring<REF(Spring,1); // 通子死叉
冬季寒流:= CROSS(Fall,Summer) AND Summer<REF(Summer,1); // 子金死叉
DRAWICON(初春曙光,Spring-0.1,'buy');
DRAWICON(早春播种,Spring-0.1,'buy');
DRAWICON(春光流逝,Spring+0.1,'SELL');
DRAWICON(秋季耕作,Fall+0.1,'buy');
DRAWICON(金秋收获,Fall+0.1,'buy');
DRAWICON(生命之光,Season+0.1,11);
DRAWICON(冬季寒流,Summer+0.1,'SELL');
DRAWTEXT(初春曙光,Spring*0.93,'初春曙光'),colormagenta;
DRAWTEXT(早春播种,Spring*0.93,'早春播种'),colorred;
DRAWTEXT(秋季耕作,Fall*0.93,'秋季耕作'),coloryellow;
DRAWTEXT(金秋收获,Fall*0.93,'金秋收获'),color0050F7;
DRAWTEXT(生命之光,Season*1.1,'生命之光'),color0050F7;
DRAWTEXT(春光流逝,Spring*1.1,'春光流逝'),colorwhite;
DRAWTEXT(冬季寒流,Summer*1.1,'冬季寒流'),colorgreen;
//DRAWTEXT(春耕季节,Season+0.5,'春耕季节'),colorcyan;
//多方趋势:((7)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1),3,1),2,1)),COLOR0000FF;
//空方趋势:(EMA(MA(多方趋势,5),7)),COLORF0F000;
LowArea_Thres:=16; // 钻石底低吸区阈值
Diamond_Thres:=12; //探测钻石矿阈值
PIT_THRES:=21; // 钻石底空方阈值
Zeros:0,nodraw,Linethick0;
*/
多方趋势:=((7)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(30),4,1),3,1),2,1)),COLOR0000FF;
空方趋势:=(EMA(MA(多方趋势,5),7)),COLORF0F000;
LowArea_Thres:=16; // 钻石底低吸区阈值
Diamond_Thres:=12; //探测钻石矿阈值
PIT_THRES:=21; // 钻石底空方阈值
Zeros:0,nodraw,Linethick0;
最新价:=C,nodraw,NOText;
HIGHRisk:=多方趋势> 75 OR 空方趋势>75;
多方势增:= (REF(多方趋势,1) < 多方趋势) AND 多方趋势>空方趋势;
//STICKLINE((空方趋势<=多方趋势),空方趋势,多方趋势,3,0),COLOR0000FF;
//STICKLINE((多方趋势>76) AND (多方趋势>=空方趋势),空方趋势,多方趋势,5,1),COLORFF33FF;
//STICKLINE((空方趋势>多方趋势),多方趋势,空方趋势,3,0),COLORF0F000;
低吸区:=(空方趋势<18) AND (空方趋势>多方趋势) AND (REF(空方趋势,1) > 空方趋势) AND (REF(多方趋势,1) < 多方趋势);
//STICKLINE(低吸区,多方趋势,空方趋势*1.15,3,0),COLOR00FFFF;
//TJ:=FILTER(低吸区,5);
//DRAWTEXT(TJ,空方趋势*1.8,'低吸'),COLORFFFF00;
探钻石矿:=(空方趋势<12) AND (空方趋势<=多方趋势),COLOR00FFFF;
钻石底:=CROSS(多方趋势,空方趋势) AND (空方趋势<PIT_THRES),COLOR0000FF;
DRAWTEXT(CROSS(多方趋势,空方趋势) AND (空方趋势<PIT_THRES),AVE*0.96,'+金钻'),COLOR00FFFF;
钻石底OR低吸:=(低吸区 OR 钻石底) AND (MACD>REF(MACD,1)); // 低吸区或钻石底,且MACD绿色渐小或红色增多趋势.
//中间线:50,COLORFFFFFF,POINTDOT;//www.fxjgsw.com
TJ1:=CROSS(探钻石矿 OR 钻石底,0.5);
TJ2:=CROSS(空方趋势,多方趋势);
TJ3:=COUNT(TJ2,BARSLAST(TJ1));
DRAWICON(TJ1,AVE,11);
//DRAWICON(TJ2 AND TJ3=1,AVE+1.05,15);
DRAWICON(TJ2 AND TJ3=1,AVE+0.1,12);
DRAWTEXT(TJ2 AND TJ3=1,AVE+0.3,'出'),COLOR00FF00;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!