好公式网用指标公式为投资注入科技力量!
您的位置:好公式网飞狐公式MA[修改-W]公式 飞狐修改指标 源码

MA[修改-W]公式 飞狐修改指标 源码

  • 指标公式类型:飞狐公式
  • 公式推荐星级:
  • 指标公式安全:已通过5款杀毒软件查杀,请放心下载!
  • 公式更新时间:2018-07-25 21:45:40
  • 指标公式标签:
  • 公式运行环境: WinXP/Win7/Win8/Win10/Win All
  • 指标公式语言:用简体中文编写

指标公式详细说明

好公式网(www.goodgongshi.com)告诉您:当前正要下载:MA[修改-W]公式 飞狐修改指标 源码

ma[修改-w]

非常感谢一发千均、大庆老杨、等其它网友的部分源码;
指标供参考,据此入市,风险自负;

注意:该指标有未来函数,为“趋势无敌”画线部分所用,及财务信息部分; 其它地方未引用未来函数,包括准未来;

主图指标:
绘制收盘价的p1日、p2日、p3日、p4日、p5日移动平均线
p1、p2、p3、p4一般取5日、10日、20日、60日
n选择主图显示多少条均线(最多同时显示5条)

用法:
葛氏八法则
1.短期均线向上穿越长期均线,多头买入信号
2.短期均线向下跌破长期均线,多头卖出信号

信号说明:[2001.1.1-2008.6.21 成功率,按收盘价介入1天3%测试]
↑a95.5%
↑b95.4%
↑c89.4%
↑188.9%
↑280.6%
↑380.3%
↑480.2%
↑575.5%
↑671.0%
↑767.5%
↑865.7%
↑962.8%

其它用法:
在参数选择里可以关闭“趋势无敌”画线,和关闭成功率低于80%或85%的信号指示;

stickline(close>open or close=open and open>ref(close,1),open,close,8,0),color22ff;
stickline(close>open or close=open and open>ref(close,1),high,low,1,0),color22ff;
stickline(close>open or close=open and open>ref(close,1),open,close,5,0),color66ff;
stickline(close>open or close=open and open>ref(close,1),open,close,3,0),color99ff;
stickline(close>open or close=open and open>ref(close,1),open,close,1.5,0),colorddff;
stickline(close>open or close=open and open>ref(close,1),open,close,0,0),colorddff;
stickline(close<open or close=open and open<ref(close,1),open,close,8,0),colorff2200;
stickline(close<open or close=open and open<ref(close,1),high,low,1,0),colorff2200;
stickline(close<open or close=open and open<ref(close,1),open,close,5,0),colorff6600;
stickline(close<open or close=open and open<ref(close,1),open,close,3,0),colorff9900;
stickline(close<open or close=open and open<ref(close,1),open,close,1.5,0),colorffdd00;
stickline(close<open or close=open and open<ref(close,1),open,close,0,0),colorffdd00;
stickline(close=open and open=ref(close,1),open,close,8,0),colorffffff;
stickline(close=open and open=ref(close,1),high,low,1,0),colorffffff;
stickline(close=open and open=ref(close,1),open,close,5,0),colorffffff;
stickline(close=open and open=ref(close,1),open,close,3,0),colorffffff;
stickline(close=open and open=ref(close,1),open,close,1.5,0),colorffffff;
stickline(close=open and open=ref(close,1),open,close,0,0),colorffffff;
空:=ema(close,5);
均衡:ema(空,0),colorffffff;
持币:=hhv(ma(high,3),2);
持股:=llv(ma(high,3),1);
b:持币,linethick1,color80;
g:持股,linethick1,color808080;
wx:=ma(close,0);
m1:ma(close,p1)*(if(n<1,wx,1)),colorffffff;
m2:ma(close,p2)*(if(n<2,wx,1)),colorffff;
m3:ma(close,p3)*(if(n<3,wx,1)),colorff;
m4:ma(close,p4)*(if(n<4,wx,1)),colorff00;
m5:ma(close,p5)*(if(n<5,wx,1)),colorff0000;
var1d1:=(ref(close,2)-ref(close,1))/ref(close,2)>0.058;
var1d2:=(ref(close,3)-ref(close,2))/ref(close,3)>0.058;
var1d3:=ref(high,2)-ref(high,1);
var1d4:=ref(high,1)-var1d3;
var1d5:=vol/capital*100;
d3ds:=var1d5<15.595 and (high-low)/close>0.105 and close>var1d4 and var1d1 and var1d2 and close>open and ma(close,60)-ma(close,9)/2.629>close;
xg2var1:=close/ref(close,2)>=1.099;
xg2var2:=open=low and high=close or close>open and close=high or high=open and (close<open or close=open);
xg2var3:=vol<sma(vol,4,1) and vol<ref(vol,1);
d3ns:=xg2var1 and xg2var2 and xg2var3 and (count(xg2var1 and xg2var2 and xg2var3,1))=1;
xgvar1:=dma(close,vol/sma(vol,4,1)/4);
xgvar2:=dma(close,vol/sma(vol,19,1)/19);
xgvar3:=(close-xgvar1)/xgvar1*100<-13.753;
xgvar4:=(xgvar1-xgvar2)/xgvar2*100<-24.109;
d2ds:=xgvar3 and xgvar4 and (open>close or open<close) and (open-ref(close,1))/ref(close,1)>-0.099 and (ref(close,1)>ref(open,1) or ref(close,1)<ref(open,1)) and (ref(open,2)>ref(close,2) or ref(open,2)<ref(close,2)) and (ref(open,3)>ref(close,3) or ref(open,3)<ref(close,3)) and (ref(open,4)>ref(close,4) or ref(open,4)<ref(close,4)) and (ref(open,5)>ref(close,5) or ref(open,5)<ref(close,5)) and (ref(open,6)>ref(close,6) or ref(open,6)<ref(close,6)) and (ref(open,7)>ref(close,7) or ref(open,7)<ref(close,7));
var3dd1:=dma(close,vol/sma(vol,4,1)/4);
var3dd2:=dma(close,vol/sma(vol,20,1)/20);
var3dd3:=(close-var3dd1)/var3dd1*100<-14.159;
var3dd4:=(var3dd1-var3dd2)/var3dd2*100<-24.459;
var3dd5:=var3dd3 and var3dd4;
d3ds2:=var3dd5 and (open>close or open<close) and (open-ref(close,1))/ref(close,1)>-0.099 and (ref(close,1)>ref(open,1) or ref(close,1)<ref(open,1)) and (ref(open,2)>ref(close,2) or ref(open,2)<ref(close,2)) and (ref(open,3)>ref(close,3) or ref(open,3)<ref(close,3)) and (ref(open,4)>ref(close,4) or ref(open,4)<ref(close,4)) and (ref(open,5)>ref(close,5) or ref(open,5)<ref(close,5)) and (ref(open,6)>ref(close,6) or ref(open,6)<ref(close,6)) and (ref(open,7)>ref(close,7) or ref(open,7)<ref(close,7)) and close>0.1;
djglc:=ref(close,1);
djgrsi:=(sma(max(close-djglc,0),6,1))/(sma(abs(close-djglc),6,1))*100;
djgy1:=ref(ema(dma((high+low+close*2)/4.585,0.989),3),1);
djg:=cross(close,djgy1);
l1g:=vol>ma(vol,5) and close>open*(1+9/100) and close<ma(close,20)*1.35;
l4nsya:=open<ema(close,3) and close=high and close/open>=1.1099 and vol/capital>=0.02 and vol/capital<=0.2;
l4ns:=l4nsya and count(l4nsya,3)=1;
l5dsy:=-100*(hhv(high,6)-close)/(hhv(high,6)-llv(low,6));
l5ds:=cross(l5dsy,-86.75) and open<sma(close,20,1) and close>=1.1*ref(close,1) and indexc>1.055*ref(indexc,1) and close<=1.117*llv(close,60);
cfplvar3:=(close-ma(close,20))/ma(close,20)*100;
cfpl:=hhv(close,20)/close>1.15 and high/low>1.05 and cross(-28,cfplvar3);
ysgsmav:=(2*close+high+low)/4;
ysgsd:=slope(ema(ysgsmav,2),7)*15+ysgsmav;
ysgsd1:=ema(ysgsd,2);
ysgsd2:=0.972*ysgsd-0.638*ysgsd1;
ysgs:=cross(ysgsd2,ysgsd1);
xrgsvar1:=(close-ma(close,40))/ma(close,40)*100<-23;
xrgsvar2:=(sma(max(close-ref(close,1),0),3,1))/(sma(abs(close-ref(close,1)),3,1))*100>16;
xrgsvar3:=100*(hhv(high,20)-close)/(hhv(high,20)-llv(low,20));
xrgs:=xrgsvar1 and xrgsvar2 and cross(xrgsvar3,79) and (open>close or open<close) and (open-ref(close,1))/ref(close,1)<0.05 and vol>ma(vol,23);
l3rsv:=(close-llv(low,7))/(hhv(high,7)-llv(low,7))*100;
l3dk:=sma(l3rsv,3,1);
l3dd:=sma(l3dk,3,1);
l3dj:=3*l3dk-2*l3dd;
l3lc:=ref(close,1);
l3rsi:=(sma(max(close-l3lc,0),6,1))/(sma(abs(close-l3lc),6,1))*100;
l3diff:=ema(close,6)-ema(close,26);
l3dea:=ema(l3diff,5);
l3macd:=2*(l3diff-l3dea);
l3wr:=-100*(hhv(high,7)-close)/(hhv(high,7)-llv(low,7));
l3wz:=l3dj>ref(l3dj,1) and l3rsi>ref(l3rsi,1) and l3macd>ref(l3macd,1) and l3wr>ref(l3wr,1) and vol/120>ma(vol,90)/120 and close>open*1.09 and close<ma(close,20)*1.99;
drawtext(l5ds,low*0.98,'↑a'),align1,colorff;
drawtext(d3ns,low*0.96,'↑b'),align1,color22ff;
drawtext(d3ds2,low*0.94,'↑c'),align1,colorddff;
drawtext(d2ds,low*0.92,'↑1'),align1,colorff00ff;
drawtext(ysgs*dcgl2,low*0.9,'↑2'),align1,colorcc0099;
drawtext(l4ns*dcgl2,low*0.88,'↑3'),align1,colorcc66ff;
drawtext(d3ds*dcgl2,low*0.86,'↑4'),align1,colorffcc33;
drawtext(cfpl*dcgl,low*0.84,'↑5'),align1,colorff00;
drawtext(xrgs*dcgl,low*0.82,'↑6'),align1,color9933;
drawtext(l3wz*dcgl,low*0.8,'↑7'),align1,colorcccc;
drawtext(l1g*dcgl,low*0.78,'↑8'),align1,color66ffb3;
drawtext(djg*dcgl,low*0.76,'↑9'),align1,colorffff00;
m选股:l5ds or d3ns or d3ds2 or d2ds or ysgs or l4ns or d3ds or cfpl or xrgs or l3wz or l1g or djg,linethick0;
市值:=close*capital*volunit/100000000;
股本:=finance(1)/10000;
流通:=finance(7)/10000;
股东总数:=finance(50);
主营业务增长率:=finance(53);
税后利润增长率:=finance(54);
净资产增长率:=finance(55);
人均持股:=finance(7)/finance(50)*10000;
市盈率:=dynainfo(39);
市净率:=close/finance(34);
莸利比例:=winner(close)*100;
换手率:=vol/finance(7);
每股净资产:=finance(34);
净资产收益率:=finance(37);
每股收益:=finance(33);
每股未分配:=finance(32);
毛利润率:=finance(21)/finance(20)*100;
净利润率:=finance(30)/finance(20)*100;
股东权益比:=finance(19)/finance(50);
总资产增长率:=finance(56);
每股公积金:=finance(18);
drawtextex(close,1,10,13,'板块:'+blkname+' 市值:'+numtostr(市值,2)+' 亿元'+' 股本'+numtostr(股本,2)+' 亿股'+' 源码:http://hi.baidu.com/shuqq'),linethick2,colorffff00;
drawtextex(close,1,10,13,'板块:'+blkname+' 市值:'+numtostr(市值,2)+' 亿元'+' 股本'+numtostr(股本,2)+' 亿股'),linethick2,colorff;
drawtextex(close,1,10,85,'总资产增长率:'),linethick2,colorffff;
drawtextex(close,1,125,85,numtostr(总资产增长率,2)+'%'),colorffff;
drawtextex(close,1,10,130,'净资产增长率:'),linethick2,colorffff;
drawtextex(close,1,125,130,numtostr(净资产增长率,2)+'%'),colorffff;
drawtextex(close,1,10,175,'净资产收益率:'),linethick2,colorffff;
drawtextex(close,1,125,175,numtostr(净资产收益率,2)+'%'),colorffff;
drawtextex(close,1,10,220,'主营业务增长率:'),linethick2,colorffff;
drawtextex(close,1,125,220,numtostr(主营业务增长率,2)+'%'),colorffff;
drawtextex(close,1,10,265,'毛利润率:'),linethick2,colorffff;
drawtextex(close,1,125,265,numtostr(毛利润率,2)+'%'),colorffff;
drawtextex(close,1,10,310,'净利润率:'),linethick2,colorffff;
drawtextex(close,1,125,310,numtostr(净利润率,2)+'%'),colorffff;
drawtextex(close,1,10,355,'税后利润增长率:'),linethick2,colorffff;
drawtextex(close,1,125,355,numtostr(税后利润增长率,2)+'%'),colorffff;
drawtextex(close,1,10,400,'投资收益率:'),linethick2,colorffff;
drawtextex(close,1,125,400,numtostr(finance(24),2)+'%'),colorffff;
drawtextex(close,1,10,436,'======================='),linethick2,colorff;
drawtextex(close,1,10,475,'莸利盘比例:'),linethick2,colorffff00;
drawtextex(close,1,125,475,numtostr(莸利比例,2)+'%'),colorffff00;
drawtextex(close,1,10,520,'股东权益比:'),linethick2,colorffff00;
drawtextex(close,1,125,520,numtostr(股东权益比,2)+'%'),colorffff00;
drawtextex(close,1,10,565,'每股净资产:'),linethick2,colorffff00;
drawtextex(close,1,125,565,numtostr(每股净资产,2)+''),colorffff00;
drawtextex(close,1,10,610,'每股收益:'),linethick2,colorffff00;
drawtextex(close,1,125,610,numtostr(每股收益,2)+''),colorffff00;
drawtextex(close,1,10,655,'每股未分配:'),linethick2,colorffff00;
drawtextex(close,1,125,655,numtostr(每股未分配,2)+''),colorffff00;
drawtextex(close,1,10,700,'每股公积金:'),linethick2,colorffff00;
drawtextex(close,1,125,700,numtostr(每股公积金,2)+''),colorffff00;
drawtextex(close,1,10,745,'流通:'),linethick1,colorffff00;
drawtextex(close,1,125,745,numtostr(流通,2)+'亿股'),colorffff00;
drawtextex(close,1,10,790,'市盈率:'),linethick1,colorffff00;
drawtextex(close,1,125,790,numtostr(市盈率,2)+''),colorffff00;
drawtextex(close,1,10,835,'市净率:'),linethick1,colorffff00;
drawtextex(close,1,125,835,numtostr(市净率,2)+''),colorffff00;
drawtextex(close,1,10,935,'感谢:一发千均、大庆老杨、等其它网友的部分源码!'),colorff00ff;
drawtextex(close,1,10,985,'指标供参考,据此入市,风险自负!'),colorff00ff;
explain(1,stklabel+stkname),colorffff80;
explain(close>0,'k 线形态分析 : '),colorffffff;
★早晨之星:=ref(close,2)/ref(open,2)<0.95 and ref(open,1)<ref(close,2) and (abs(ref(open,1)-ref(close,1)))/ref(close,1)<0.03 and close/open>1.05 and close>ref(close,2);
★黄昏之星:=ref(close,2)/ref(open,2)>1.03 and ref(open,1)>ref(close,2) and (abs(ref(open,1)-ref(close,1)))/ref(close,1)<0.02 and close/open<0.97 and close<ref(close,2);
★长十字:=close=open and high/low>1.03;
★垂死十字:=close=open and close=low and close<>high;
★早晨十字星:=ref(close,2)/ref(open,2)<0.95 and ref(open,1)<ref(close,2) and ref(open,1)=ref(close,1) and close/open>1.05 and close>ref(close,2);
★黄昏十字星:=ref(close,2)/ref(open,2)>1.05 and ref(open,1)>ref(close,2) and ref(open,1)=ref(close,1) and close/open<0.95 and close<ref(close,2);
★射击之星:=min(open,close)=low and high-low>3*(max(open,close)-low) and close>ma(close,5);
★倒转锤头:=min(open,close)=low and high-low>3*(max(open,close)-low) and close<ma(close,5);
★锤头:=high=max(open,close) and high-low>3*(high-min(open,close)) and close<ma(close,5);
★吊颈:=high=max(open,close) and high-low>3*(high-min(open,close)) and close>ma(close,5);
★穿头破脚:=ref(close,1)/ref(open,1)>1.03 and close/open<0.96 and close<ref(open,1) and open>ref(close,1) or ref(close,1)/ref(open,1)<0.97 and close/open>1.04 and close>ref(open,1) and open<ref(close,1);
★乌云盖顶:=ref(close,1)/ref(open,1)>1.03 and close/open<0.97 and open>ref(close,1) and close<ref(close,1);
★曙光初现:=ref(close,1)/ref(open,1)<0.97 and close/open>1.03 and open<ref(close,1) and close>ref(close,1);
★身怀六甲:=(abs(ref(close,1)-ref(open,1)))/ref(close,1)>0.04 and (abs(close-open))/close<0.005 and max(close,open)<max(ref(close,1),ref(open,1)) and min(close,open)>min(ref(close,1),ref(open,1));
★十字胎:=(abs(ref(close,1)-ref(open,1)))/ref(close,1)>0.04 and close=open and close<max(ref(close,1),ref(open,1)) and close>min(ref(close,1),ref(open,1));
★平顶:=(abs(high-ref(high,1)))/high<0.001;
★平底:=(abs(low-ref(low,1)))/low<0.001 and (abs(ref(low,1)-ref(low,2)))/ref(low,1)<=0.001;
★大阳烛:=close/open>1.05 and high/low<close/open+0.018;
★红三兵:=ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and close>open and ref(close,1)>ref(close,2) and close>ref(close,1);
★双飞乌鸦:=ref(close,1)<ref(open,1) and close<open and close/open<0.98;
★孕育线:=ref(close,2)>ref(open,2) and (ref(close,2)-ref(open,2))/ref(open,2)>=2/100 and ref(open,1)>=ref(close,1) and (ref(open,1)-ref(close,1))/ref(close,1)<=2/100 and ref(open,1)<=ref(close,2) and ref(close,1)>=ref(open,2) and close>=open and (close-open)/open>=2/100 and close>=ref(open,1) and open<=ref(close,1) and (max(close,ref(close,2))-min(close,ref(close,2)))/min(close,ref(close,2))<=1/100;
★多方炮:=ref(close,2)>ref(open,2) and ref(close,1)<ref(open,1) and close>open;
★出水芙蓉:=(open<ema(close,20) or open<ema(close,40) or open<ema(close,60)) and close>max(ema(close,20),max(ema(close,40),ema(close,60))) and vol/ma(vol,30)>1.2 and close/ref(close,1)>1.049;
★上升三部曲:=ref(close,4)/ref(open,4)>1.03 and ref(close,3)<ref(open,3) and ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open>1.03 and close>ref(close,4);
★下跌三部曲:=ref(close,4)/ref(open,4)<0.97 and ref(close,3)>ref(open,3) and ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open<0.97 and close<ref(close,4);
★跳空缺口:=high<ref(low,1) or low>ref(high,1);
★三只乌鸦:=ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and close<open and ref(close,1)<ref(close,2) and close<ref(close,1);
★光脚阴线:=low=close and high<>low;
★光头阳线:=high=close and high<>low;
★分离:=open=ref(open,1) and (close-open)*(ref(close,1)-ref(open,1))<0;
★长下影:=(min(close,open)-low)/(high-low)>0.667;
★长上影:=(high-max(close,open))/(high-low)>0.667;
★十字星:=close=open and high<>low;
★大阴烛:=open/close>1.05 and high/low<open/close+0.018;
★好友反攻:=ref(close,1)<ref(open,1) and close>open and (abs(close-ref(close,1)))/close<0.002 or ref(close,1)>ref(open,1) and close<open and (abs(close-ref(close,1)))/close<0.002;
★倾盆大雨:=ref(close,1)/ref(open,1)>=1.03 and open<ref(close,1) and open>ref(open,1) and close<ref(open,1);
explain(★倾盆大雨,'★倾盆大雨★见顶信号'),colorffff00;
explain(★大阴烛,'★大阴烛★后市向淡,发生逆转;'),colorffff00;
explain(★好友反攻,'★好友反攻★底部反转;'),colorff;
explain(★跳空缺口,'★跳空缺口★注意向上还是向下跳空;'),colorffffff;
explain(★光脚阴线,'★光脚阴线★下跌信号'),colorffff00;
explain(★光头阳线,'★光头阳线★后市看涨;'),colorff;
explain(★三只乌鸦,'★三只乌鸦★可能见顶回落;'),colorffff00;
explain(★分离,'★分离★注意看涨分离和看跌分离;'),colorffffff;
explain(★长下影,'★长下影★持续下跌后出现,有可能止跌回升;在升势末期
出现,须多加留意;'),colorff;
explain(★长上影,'★长上影★表明行情上档压力沉重,升势受阻;'),colorffff00;
explain(★下跌三部曲,'★下跌三部曲★下跌信号;'),colorff;
explain(★上升三部曲,'★上升三部曲★上涨信号;'),colorffff00;
explain(★早晨之星,'★早晨之星★见底回升;'),colorff;
explain(★黄昏之星,'★黄昏之星★见顶回落;'),colorffff00;
explain(★十字星,'★十字星★有转向意味,注意股价位置在顶部还是底部;
'),colorffffff;
explain(★长十字,'★长十字★注意在顶部还是底部;'),colorffffff;
explain(★垂死十字,'★垂死十字★下跌信号;'),colorffff00;
explain(★早晨十字星,'★早晨十字星★上涨信号,见底回升;'),colorff;
explain(★黄昏十字星,'★黄昏十字星★下跌信号,见顶回落;'),colorffff00;
explain(★射击之星,'★射击之星★可能见顶回落,可靠性低;'),colorffff00;
explain(★倒转锤头,'★倒转锤头★可能见底回升;'),colorff;
explain(★锤头,'★锤头★可能见底回升,如有量配合,信号强烈;'),colorff;
explain(★吊颈,'★吊颈★上升行情中见顶回落,顶部出现,见顶信号;'),colorffff00;
explain(★平顶,'★平顶★温和的反转;'),colorffff00;
explain(★穿头破脚,'★穿头破脚★顶部出现,见顶回落信号;'),colorffff00;
explain(★乌云盖顶,'★乌云盖顶★见顶回落信号;'),colorffff00;
explain(★曙光初现,'★曙光初现★后市见底回升;'),colorff;
explain(★身怀六甲,'★身怀六甲★出现在底部,是见底回升信号;出现在顶部
,是见顶回落信号;'),colorff;
explain(★十字胎,'★十字胎★'),colorff;
explain(★平底,'★平底★温和的反转;'),colorff;
explain(★大阳烛,'★大阳烛★看涨;'),colorff;
explain(★红三兵,'★红三兵★每日收盘价上移,表示可能见底回升;'),colorff;
explain(★双飞乌鸦,'★双飞乌鸦★行情将见顶回落;'),colorffff00;
explain(★孕育线,'★孕育线★注意股价位置;'),colorffffff;
explain(★多方炮,'★多方炮★在底部出现有上涨可能,在中间出现有可能是
上涨中继,顶部出现是复合见顶信号;'),colorff;
explain(★出水芙蓉,'★出水芙蓉★见底回升;'),colorff;
a1:=ref(high,qsn)=hhv(high,2*qsn+1);
b1:=filter(a1,qsn);
c1:=backset(b1,qsn+1);
d1:=filter(c1,qsn);
a2:=ref(low,qsn)=llv(low,2*qsn+1);
b2:=filter(a2,qsn);
c2:=backset(b2,qsn+1);
d2:=filter(c2,qsn);
e1:=(ref(llv(low,2*n),1)+ref(hhv(high,2*n),1))/2;
e2:=(high+low)/2;
h1:=d1 and not(d2 and e1>=e2) or islastbar or barscount(close)=1;
l1:=d2 and not(d1 and e1<e2);
h2:=d1 and not(d2 and e1>=e2);
x1:=ref(barslast(h1),1)+1;
f1:=backset(h1 and count(l1,x1)>0,llvbars(if(l1,low,10000),x1));
g1:=f1>ref(f1,1);
i1:=backset(g1,2);
ld:=i1>ref(i1,1);
l2:=ld or islastbar or barscount(close)=1;
x2:=ref(barslast(l2),1)+1;
f2:=backset(l2 and count(h2,x2)>0,hhvbars(if(h2,high,0),x2));
g2:=f2>ref(f2,1);
i2:=backset(g2,2);
hd:=i2>ref(i2,1);
r1:=backset(islastbar,barslast(hd)+1)*(qsm);
s1:=r1>ref(r1,1);
t1:=backset(islastbar,barslast(ld)+1)*(qsm);
u1:=t1>ref(t1,1);
r2:=backset(s1,ref(barslast(hd),1)+2)*(qsm);
s2:=r2>ref(r2,1);
t2:=backset(u1,ref(barslast(ld),1)+2)*(qsm);
u2:=t2>ref(t2,1);
t3:=backset(u2,ref(barslast(ld),1)+2)*(qsm);
u3:=t3>ref(t3,1);
t4:=backset(u3,ref(barslast(ld),1)+2)*(qsm);
u4:=t4>ref(t4,1);
r3:=backset(s2,ref(barslast(hd),1)+2)*(qsm);
s3:=r3>ref(r3,1);
r4:=backset(s3,ref(barslast(hd),1)+2)*(qsm);
s4:=r4>ref(r4,1);
drawline(s2,high,s1,high,1),linethick2,colorff00ff;
drawline(u2,low,u1,low,1),pointdot,linethick2,colorff00;
drawline(s3,high,s2,high,1),colorff8000;
drawline(u3,low,u2,low,1),pointdot,colorff8000;
drawline(s4,high,s3,high,1),colorff;
drawline(u4,low,u3,low,1),pointdot,colorff;
drawnumber(s2,high*1.02,high,2),colorff00ff;
drawnumber(s1,high*1.02,high,2),colorff00ff;
drawnumber(s3,high*1.02,high,2),colorff00ff;
drawnumber(u1,low*0.98,low,2),colorffff00;
drawnumber(u2,low*0.98,low,2),colorffff00;
drawnumber(u3,low*0.98,low,2),colorffff00;
drawnumber(u4,low*0.98,low,2),colorffff00;


ma[修改-w]

  >>>使用本站搜索工具可以找到更多MA[修改-W]公式 飞狐修改指标 源码

指标公式下载地址

点这下载软件
好公式网提供全网最全的指标公式软件,感谢您的支持!鼠标双击图片可看大图!
下载请点击右侧“立即下载”,如只有源码,请点击本页面右侧的导入方法按图导入!
本站指标基于网友分享,仅供研究自学,勿作他用,本站对下载使用不承担任何责任!

指标公式下载注意

    ☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!

    ☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。

    ☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;

    ☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;

    ☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;

    ☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;

    ☉ hxf格式指标公式,仅可以用同花顺软件引入使用。

    ☉ 如果您发现下载软件链接错误,请联系管理员报告错误。

    ☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!

    ☉ 本文MA[修改-W]公式 飞狐修改指标 源码仅供学习研究。

猜你喜欢

学了又学