股指佛手箱 通用原码(公开)两年的辛苦。。。源码公开啦
飞狐的源码:
【h】:hhv(high,14),linethick3,colorwhite;
【l】:llv(low,14),linethick3,colorwhite;
t:(【h】+【l】)/2 ,linethick1,colorwhite;
stickline(c>=cost(50)and c<=cost(58)and c>o,o,c,2,0),colorred;
stickline(c>=cost(97)and c<=cost(100)and c>o,o,c,2,0),colorwhite;
drawtext(c>=cost(97)and c<=cost(100) and c>o,c,'--获利大于97%'),colorred;
drawtext(c>=cost(50)and c<=cost(58) and c>o,c,'--获利50%'),coloryellow;
jj:=(h+l+3*c)/5;
var21:=ema(jj,5);var22:=ema(jj,13);var23:=ema(jj,21);var24:=ema(jj,34);h1a:=(var21+var22+var23+var24)/4;
成本和谐:ma(h1a,5),colorred,linethick0;
ll:=llv(c,100);
tj:=if((c-ref(c,1))/ref(c,1)>0.025,1,0);
stickline(c>ref(o,barslast(tj =1)),ref(o,barslast(tj =1)),ref(o,barslast(tj =1)),10,0),colorgreen,linethick1;
黄昏之星:=((((((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)));
射击之星:=(((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))))));
穿头破脚:=((((((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))));
身怀六甲:=(((((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))));
乌云盖顶:=(((((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)));
倾盆雨:=(((((ref(close,1) / ref(open,1)) >= 1.03) and (open <
ref(close,1))) and (open > ref(open,1))) and (close < ref(open,1)));
drawtext(倾盆雨,h*1.03,'倾盆大雨'),colorcyan;
drawtext(黄昏之星,h*1.02,'黄昏之星'),colorcyan;
drawtext(射击之星,h*1.03,'射击之星高位见顶'),colorcyan;
drawtext(锤头,l-l*0.02,'锤头低位见底'),colorgreen;
drawtext(吊颈,h*1.03,'吊颈高位见顶'),colorcyan;
drawtext(穿头破脚,h*1.05,'穿头破脚'),colorcyan;
drawtext(乌云盖顶,h*1.03,'乌云盖顶'),colorcyan;
drawtext(曙光初现,l-l*0.02,'曙光初现(放量见涨)'),colorgreen;
drawtext(身怀六甲,l-l*0.02,'身怀六甲,底升顶落'),colorgreen;
阳长下影线:=(o-l)/o>0.06 and c>o;
阴长下影线:=(c-l)/c>0.06 and c<o;
阳长上影线:=(h-c)/c>0.06 and c>o;
阴长上影线:=(h-o)/o>0.06 and c<o;
光头阳长下影线:=c=h and (o-l)/o>0.06 and c>o;
光脚阴长上影线:=c=l and (h-o)/o>0.06 and c<o;
白色十字星:=c=o and h>c and c>l;
drawtext(阳长下影线,h*1.01,'阳长下影线'),colorcyan;
drawtext(阴长下影线,h*1.04,'阴长下影线'),colorwhite;
drawtext(阳长上影线,h*1.06,'阳长上影线'),colorred;
drawtext(光头阳长下影线,h*1.07,'光头阳长下影线'),colorcyan;
drawtext(光脚阴长上影线,h*1.08,'光脚阴长上影线'),coloryellow;
drawtext(白色十字星,h*1.02,'白色十字星'),colorwhite;
s下:=hhv(ma(high,2),2),colorgreen,linethick0;
s上:=llv(ma(high,2),1),colorred,linethick0;
sppp:=-(s上-s下)/ref(c,1)*100;
sptem1:=(min(o,c)-l)/(h-l)*100;
sptem2:=(h-max(o,c))/(h-l)*100;
sptem3:=(c-o)/(h-l)*100;
skj1:=(sptem3>49 and sptem1>0.3*sptem2) or sptem3>80;
skj2:=(sptem3<=49 and sptem3>20 and sptem1>sptem2);
skj3:=(sptem3<=20 and sptem3>-20 and sptem1>1.2*sptem2);
skj4:=(sptem3<-20 and sptem3>-40 and sptem1>2*sptem2);
skj:=(skj1 or skj2 or skj3 or skj4) and (sppp>2 or ref(sppp,1)>2 );
短买:=if(sum(sppp>0,5)=5 and sum(skj>0,5)=0,5*(skj1 or skj2 or skj3 or skj4),5*skj),colorred;
drawtext(短买,l,'短买'),colorwhite;
x1:=(c+l+h)/3;
bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;
ema8:=ema(c,8);
drawtext(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),
ema8,'∠45'),colorwhite;
rsv:=(close-llv(low,10))/(hhv(high,10)-llv(low,10))*100;
k:=sma(rsv,5,1);
d:=sma(k,5,1);
j:=3*k-2*d;
x:=ref(j,1)<10 and h>ref(h,1) and c>ref(c,1) and c>ref(o,1) and l>ref(l,1);
stickline(x,l ,l,2,0),color008888;
stickline(x,l ,h,0,0),colorff00ff;
stickline(x,c ,o,2,0),colorff00ff;
天量:=vol=hhv(vol,0);
drawtext(天量,c,'-------高位天量卖'),coloryellow;
bias1:=(c-ma(c,6))/ma(c,6)*100;
bias2:=(c-ma(c,12))/ma(c,12)*100;
bias3:=(c-ma(c,24))/ma(c,24)*100;
bias:=(bias1+2*bias2+3*bias3)/6;
乖离:=ma(bias,3);
drawtext(cross(bias,乖离) and 乖离<-9,c,'---------二次bias乖离底买'),colorgreen;
cost(50),colorgreen,circledot;
ty:=c;
hd:=filter(backset(filter(ref(ty,10)=hhv(ty,2*10+1),10),10+1),10);
ld:=filter(backset(filter(ref(ty,10)=llv(ty,2*10+1),10),10+1),10);
a:=ref(c,barslast(hd));
b:=ref(c,barslast(ld));
t1:=barslast(hd)<barslast(ld) and not(hd) ;
t2:=barslast(hd)>barslast(ld) and not(ld);
波浪顶:if(t1,a,a),colorff00ff,pointdot,linethick1;
stickline(t1,a,a,9,0),colorff00ff;
波浪底:if(t2,b,b),color80ff00,pointdot,linethick1;
大智慧l2源码:
{股指佛手箱}
【h】:hhv(high,14),linethick3,colorwhite;
【l】:llv(low,14),linethick3,colorwhite;
t:(【h】+【l】)/2 ,linethick1,colorwhite;
stickline(c>=cost(50)and c<=cost(58)and c>o,o,c,2,0),colorred;
stickline(c>=cost(97)and c<=cost(100)and c>o,o,c,2,0),colorwhite;
drawtext(c>=cost(97)and c<=cost(100) and c>o,c,'--获利大于97%'),colorred;
drawtext(c>=cost(50)and c<=cost(58) and c>o,c,'--获利50%'),coloryellow;
jj:=(h+l+3*c)/5;
var21:=ema(jj,5);var22:=ema(jj,13);var23:=ema(jj,21);var24:=ema(jj,34);h1a:=(var21+var22+var23+var24)/4;
成本和谐:ma(h1a,5),colorred,linethick0;
ll:=llv(c,100);
tj:=if((c-ref(c,1))/ref(c,1)>0.025,1,0);
stickline(c>ref(o,barslast(tj =1)),ref(o,barslast(tj =1)),ref(o,barslast(tj =1)),10,0),colorgreen,linethick1;
黄昏之星:=((((((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)));
射击之星:=(((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))))));
穿头破脚:=((((((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))));
身怀六甲:=(((((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))));
乌云盖顶:=(((((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)));
倾盆雨:=(((((ref(close,1) / ref(open,1)) >= 1.03) and (open <
ref(close,1))) and (open > ref(open,1))) and (close < ref(open,1)));
drawtext(倾盆雨,h*1.03,'倾盆大雨'),colorcyan;
drawtext(黄昏之星,h*1.02,'黄昏之星'),colorcyan;
drawtext(射击之星,h*1.03,'射击之星高位见顶'),colorcyan;
drawtext(锤头,l-l*0.02,'锤头低位见底'),colorgreen;
drawtext(吊颈,h*1.03,'吊颈高位见顶'),colorcyan;
drawtext(穿头破脚,h*1.05,'穿头破脚'),colorcyan;
drawtext(乌云盖顶,h*1.03,'乌云盖顶'),colorcyan;
drawtext(曙光初现,l-l*0.02,'曙光初现(放量见涨)'),colorgreen;
drawtext(身怀六甲,l-l*0.02,'身怀六甲,底升顶落'),colorgreen;
阳长下影线:=(o-l)/o>0.06 and c>o;
阴长下影线:=(c-l)/c>0.06 and c<o;
阳长上影线:=(h-c)/c>0.06 and c>o;
阴长上影线:=(h-o)/o>0.06 and c<o;
光头阳长下影线:=c=h and (o-l)/o>0.06 and c>o;
光脚阴长上影线:=c=l and (h-o)/o>0.06 and c<o;
白色十字星:=c=o and h>c and c>l;
drawtext(阳长下影线,h*1.01,'阳长下影线'),colorcyan;
drawtext(阴长下影线,h*1.04,'阴长下影线'),colorwhite;
drawtext(阳长上影线,h*1.06,'阳长上影线'),colorred;
drawtext(光头阳长下影线,h*1.07,'光头阳长下影线'),colorcyan;
drawtext(光脚阴长上影线,h*1.08,'光脚阴长上影线'),coloryellow;
drawtext(白色十字星,h*1.02,'白色十字星'),colorwhite;
s下:=hhv(ma(high,2),2);
s上:=llv(ma(high,2),1);
sppp:=-(s上-s下)/ref(c,1)*100;
sptem1:=(min(o,c)-l)/(h-l)*100;
sptem2:=(h-max(o,c))/(h-l)*100;
sptem3:=(c-o)/(h-l)*100;
skj1:=(sptem3>49 and sptem1>0.3*sptem2) or sptem3>80;
skj2:=(sptem3<=49 and sptem3>20 and sptem1>sptem2);
skj3:=(sptem3<=20 and sptem3>-20 and sptem1>1.2*sptem2);
skj4:=(sptem3<-20 and sptem3>-40 and sptem1>2*sptem2);
skj:=(skj1 or skj2 or skj3 or skj4) and (sppp>2 or ref(sppp,1)>2 );
短买:=if(sum(sppp>0,5)=5 and sum(skj>0,5)=0,5*(skj1 or skj2 or skj3 or skj4),5*skj);
drawtext(短买,l,'短买'),colorwhite;
x1:=(c+l+h)/3;
bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;
ema8:=ema(c,8);
drawtext(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),
ema8,'∠45'),colorwhite;
rsv:=(close-llv(low,10))/(hhv(high,10)-llv(low,10))*100;
k:=sma(rsv,5,1);
d:=sma(k,5,1);
j:=3*k-2*d;
x:=ref(j,1)<10 and h>ref(h,1) and c>ref(c,1) and c>ref(o,1) and l>ref(l,1);
stickline(x,l ,l,2,0),color008888;
stickline(x,l ,h,0,0),colorff00ff;
stickline(x,c ,o,2,0),colorff00ff;
天量:=vol=hhv(vol,0);
drawtext(天量,c,'-------高位天量卖'),coloryellow;
bias1:=(c-ma(c,6))/ma(c,6)*100;
bias2:=(c-ma(c,12))/ma(c,12)*100;
bias3:=(c-ma(c,24))/ma(c,24)*100;
bias:=(bias1+2*bias2+3*bias3)/6;
乖离:=ma(bias,3);
drawtext(cross(bias,乖离) and 乖离<-9,c,'---------二次bias乖离底买'),colorgreen;
cost(50),colorgreen,circledot;
ty:=c;
hd:=filter(backset(filter(ref(ty,10)=hhv(ty,2*10+1),10),10+1),10);
ld:=filter(backset(filter(ref(ty,10)=llv(ty,2*10+1),10),10+1),10);
a:=ref(c,barslast(hd));
b:=ref(c,barslast(ld));
t1:=barslast(hd)<barslast(ld) and not(hd) ;
t2:=barslast(hd)>barslast(ld) and not(ld);
波浪顶:if(t1,a,a),colorff00ff,pointdot,linethick1;
stickline(t1,a,a,9,0),colorff00ff;
波浪底:if(t2,b,b),color80ff00,pointdot,linethick1;
通达信源码:
【h】:hhv(high,14),linethick3,colorwhite;
【l】:llv(low,14),linethick3,colorwhite;
t:(【h】+【l】)/2 ,linethick1,colorwhite;
stickline(c>=cost(50)and c<=cost(58)and c>o,o,c,2,0),colorred;
stickline(c>=cost(97)and c<=cost(100)and c>o,o,c,2,0),colorwhite;
drawtext(c>=cost(97)and c<=cost(100) and c>o,c,'--获利大于97%'),colorred;
drawtext(c>=cost(50)and c<=cost(58) and c>o,c,'--获利50%'),coloryellow;
jj:=(h+l+3*c)/5;
var21:=ema(jj,5);var22:=ema(jj,13);var23:=ema(jj,21);var24:=ema(jj,34);h1a:=(var21+var22+var23+var24)/4;
成本和谐:ma(h1a,5),colorred,linethick0;
ll:=llv(c,100);
tj:=if((c-ref(c,1))/ref(c,1)>0.025,1,0);
stickline(c>ref(o,barslast(tj =1)),ref(o,barslast(tj =1)),ref(o,barslast(tj =1)),10,0),colorgreen,linethick1;
黄昏之星:=((((((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)));
射击之星:=(((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))))));
穿头破脚:=((((((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))));
身怀六甲:=(((((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))));
乌云盖顶:=(((((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)));
倾盆雨:=(((((ref(close,1) / ref(open,1)) >= 1.03) and (open <
ref(close,1))) and (open > ref(open,1))) and (close < ref(open,1)));
drawtext(倾盆雨,h*1.03,'倾盆大雨'),colorcyan;
drawtext(黄昏之星,h*1.02,'黄昏之星'),colorcyan;
drawtext(射击之星,h*1.03,'射击之星高位见顶'),colorcyan;
drawtext(锤头,l-l*0.02,'锤头低位见底'),colorgreen;
drawtext(吊颈,h*1.03,'吊颈高位见顶'),colorcyan;
drawtext(穿头破脚,h*1.05,'穿头破脚'),colorcyan;
drawtext(乌云盖顶,h*1.03,'乌云盖顶'),colorcyan;
drawtext(曙光初现,l-l*0.02,'曙光初现(放量见涨)'),colorgreen;
drawtext(身怀六甲,l-l*0.02,'身怀六甲,底升顶落'),colorgreen;
阳长下影线:=(o-l)/o>0.06 and c>o;
阴长下影线:=(c-l)/c>0.06 and c<o;
阳长上影线:=(h-c)/c>0.06 and c>o;
阴长上影线:=(h-o)/o>0.06 and c<o;
光头阳长下影线:=c=h and (o-l)/o>0.06 and c>o;
光脚阴长上影线:=c=l and (h-o)/o>0.06 and c<o;
白色十字星:=c=o and h>c and c>l;
drawtext(阳长下影线,h*1.01,'阳长下影线'),colorcyan;
drawtext(阴长下影线,h*1.04,'阴长下影线'),colorwhite;
drawtext(阳长上影线,h*1.06,'阳长上影线'),colorred;
drawtext(光头阳长下影线,h*1.07,'光头阳长下影线'),colorcyan;
drawtext(光脚阴长上影线,h*1.08,'光脚阴长上影线'),coloryellow;
drawtext(白色十字星,h*1.02,'白色十字星'),colorwhite;
s下:=hhv(ma(high,2),2);
s上:=llv(ma(high,2),1);
sppp:=-(s上-s下)/ref(c,1)*100;
sptem1:=(min(o,c)-l)/(h-l)*100;
sptem2:=(h-max(o,c))/(h-l)*100;
sptem3:=(c-o)/(h-l)*100;
skj1:=(sptem3>49 and sptem1>0.3*sptem2) or sptem3>80;
skj2:=(sptem3<=49 and sptem3>20 and sptem1>sptem2);
skj3:=(sptem3<=20 and sptem3>-20 and sptem1>1.2*sptem2);
skj4:=(sptem3<-20 and sptem3>-40 and sptem1>2*sptem2);
skj:=(skj1 or skj2 or skj3 or skj4) and (sppp>2 or ref(sppp,1)>2 );
短买:=if(sum(sppp>0,5)=5 and sum(skj>0,5)=0,5*(skj1 or skj2 or skj3 or skj4),5*skj);
drawtext(短买,l,'短买'),colorwhite;
x1:=(c+l+h)/3;
bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;
ema8:=ema(c,8);
drawtext(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),
ema8,'∠45'),colorwhite;
rsv:=(close-llv(low,10))/(hhv(high,10)-llv(low,10))*100;
k:=sma(rsv,5,1);
d:=sma(k,5,1);
j:=3*k-2*d;
x:=ref(j,1)<10 and h>ref(h,1) and c>ref(c,1) and c>ref(o,1) and l>ref(l,1);
stickline(x,l ,l,2,0),color008888;
stickline(x,l ,h,0,0),colorff00ff;
stickline(x,c ,o,2,0),colorff00ff;
天量:=vol=hhv(vol,0);
drawtext(天量,c,'-------高位天量卖'),coloryellow;
bias1:=(c-ma(c,6))/ma(c,6)*100;
bias2:=(c-ma(c,12))/ma(c,12)*100;
bias3:=(c-ma(c,24))/ma(c,24)*100;
bias:=(bias1+2*bias2+3*bias3)/6;
乖离:=ma(bias,3);
drawtext(cross(bias,乖离) and 乖离<-9,c,'---------二次bias乖离底买'),colorgreen;
cost(50),colorgreen,circledot;
ty:=c;
hd:=filter(backset(filter(ref(ty,10)=hhv(ty,2*10+1),10),10+1),10);
ld:=filter(backset(filter(ref(ty,10)=llv(ty,2*10+1),10),10+1),10);
a:=ref(c,barslast(hd));
b:=ref(c,barslast(ld));
t1:=barslast(hd)<barslast(ld) and not(hd) ;
t2:=barslast(hd)>barslast(ld) and not(ld);
波浪顶:if(t1,a,a),colorff00ff,pointdot,linethick1;
stickline(t1,a,a,9,0),colorff00ff;
波浪底:if(t2,b,b),color80ff00,pointdot,linethick1;
上一指标公式:中短期DELTAITD公式 飞狐DELTAITD指标 源码
下一指标公式:短期DELTASTD公式 飞狐DELTA指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文股指佛手箱两年的辛苦公开啦公式 飞狐佛手两年指标 源码仅供学习研究。