常用指标及公式 公式源码的引入方法和公式导入: 1. 把要导入的公式(源码)考下来,方法是用左键先把源码变蓝,之后点右键,点复制; 2. 进入大智慧特色功能自编指标常用技术指标新建,在出现的公式编辑区的下面的空白处,把刚考的源码粘贴上,将公式名称复制后粘贴到公式名称栏确认退出. 3.如有参数的,如:n 1 100 15 之类,则需将这类数据填充到参数表中. 4.公式源码以外的内容,如:名称,说明以及参数等等,凡在{ }以外的,均要删除,或者用{ }将其括上. 金晶变色龙 a1:=ma(c,5); a2:=ma(c,10); {可以自设均线,牛市21日线,熊市10日线} a3:=(a1+a2)2; if (a1a2,a1,a3),colorred,linethick2; if (a1a2,a2,a3),colorred,linethick2; if (a1=a2,a1,a3),color00ff00,linethick2; if (a1=a2,a2,a3),color00ff00,linethick2; a3,colorwhite,linethick2; lc:=ref(close,1); rsi:=sma(max(close-lc,0),4.1,1)sma(abs(close-lc),4.1,1)*100; drawicon(cross(84,rsi) ,h*1.03,5); drawicon(cross(rsi,11) ,l*0.99,4); var27:=ref(close,1); var28:=sma(max(close-var27,0),5.5,1)sma(abs(close-var27),6,1)*100; drawicon(if(cross(76,var28),1,0),h*1.03,5); drawtext(filter(ema(close,60)-ema(close,12)0 and ema(close,12)low1.15,5), low, ),linethick7 , colorff00ff; vara:=((amount)(vol))(100); varb:=((3)*(high)+low+open+(2)*(close))(7); varc:=((sum(amount,7))(vara))(100); vard:=dma(varb,(vol)(varc)); vare:=((close-vard)(vard))*(100); varf:=((close-llv(low,34))(hhv(high,34)-llv(low,34*(100); varj:=ma(vare,20)+std(vare,20); bias18:=((close-ma(close,18))(ma(close,18*(100); aa:=sma(varf,3,1); ss:=(ref(bias18,1)=5) and cross(varj,vare) and (aa79); drawtext((ref(bias18,1)=5) and cross(varj,vare) and (aass),h*1.02, ),linethick7,colorgreen; var1:=zig(3,10)ref(zig(3,10),1) and ref(zig(3,10),1)ref(zig(3,10),2); var2:=zig(3,10)ref(zig(3,10),1) and ref(zig(3,10),1)ref(zig(3,10),2); stickline(var1,c,o,8,0),coloryellow,linethick2; stickline(var1,c,o,3,0),coloryellow,linethick2; stickline(var1,h,l,1,0),coloryellow,linethick2; stickline(var2,c,o,8,0),colorff00ff,linethick2; stickline(var2,c,o,3,0),colorff00ff,linethick2; stickline(var2,h,l,1,0),colorff00ff,linethick2;