当前位置:首页 > 同花顺公式 > 正文

同花顺红柱买副图源码

2017-09-11网络 编 辑:翔博软件


同花顺红柱买副图源码

飞狐红柱买指标公式
 本指标来源于网络,收藏测试用。
 经测试本指标有未来函数,谨慎参考。


var20:=REF(LOW,1);
 var30:=SMA(ABS(LOW-var20),3,1)/SMA(MAX(LOW-var20,0),3,1)*100;
 var40:=EMA(IF(CLOSE*1.3,var30*10,var30/10),3);
 var50:=LLV(LOW,30);
 var60:=HHV(var40,30);
 var70:=IF(MA(CLOSE,58),1,0);
 var80:=EMA(IF(LOW<=var50,(var40+var60*2)/2,0),3)/618*var70;
 var90:=IF(var80>100,100,var80);
庄来了别放过:STICKLINE(var90>-120,0,var90,6,1),colorred;
 var4:=((HHV(HIGH,9) - CLOSE)/(HHV(HIGH,9) - LLV(LOW,9)))*(100) - 70;
 var5:=((CLOSE - LLV(LOW,60))/(HHV(HIGH,60) - LLV(LOW,60)))*(100);
 var7:=SMA(((CLOSE - LLV(LOW,9))/(HHV(HIGH,9) - LLV(LOW,9)))*(100),3,1);
 var8:=LLV(LOW,34);
 varc:=EMA(((((2)*(CLOSE) + HIGH + LOW)/(4) - var8)/(HHV(HIGH,34) - var8))*(100),8);
 vard:=EMA(varc,5);
 vare:=((HHV(HIGH,9) - CLOSE)/(HHV(HIGH,9) - LLV(LOW,9)))*(100) - 70;
 var11:=SMA(((CLOSE - LLV(LOW,9))/(HHV(HIGH,9) - LLV(LOW,9)))*(100),3,1);
 var12:=SMA(var11,3,1) + 100;
 var13:=var12 - SMA(vare,9,1) + 100;
 var14:=ZIG(3,13);
建仓:=IF((varc > 17) AND (varc < 59) AND (varc - vard >= 0),10,(-10));
猎豹:=IF((REF(var14,2) > REF(var14,1)) AND (var14 > REF(var14,1)),10,45);
丰收:=IF((varc > 70) AND (varc - vard >= 0),77,82);
牛:=IF((var13 > 100),var13 - 100,0);
顶:=IF((REF(var14,2) < REF(var14,1)) AND (var14 < REF(var14,1)),95,55);
风:=IF((varc - vard > 0),varc,vard);
 STICKLINE((REF(var14,2) < REF(var14,1)) AND (var14 < REF(var14,1)),CLOSE,OPEN,5,0),color66ff00;
 STICKLINE((REF(var14,2) > REF(var14,1)) AND (var14 > REF(var14,1)),CLOSE,OPEN,5,0),coloryellow;
 DRAWLINE((REF(var14,2) > REF(var14,1)) AND (var14 > REF(var14,1)),LOW - (LOW)*(0.08),(REF(var14,2) < REF(var14,1)) AND (var14 < REF(var14,1)),LOW - (LOW)*(0.05),0),linethick5,color070084;
 DRAWLINE((REF(var14,2) > REF(var14,1)) AND (var14 > REF(var14,1)),LOW - (LOW)*(0.08),(REF(var14,2) < REF(var14,1)) AND (var14 < REF(var14,1)),LOW - (LOW)*(0.05),0),linethick4,color0000a3;
 DRAWLINE((REF(var14,2) > REF(var14,1)) AND (var14 > REF(var14,1)),LOW - (LOW)*(0.08),(REF(var14,2) < REF(var14,1)) AND (var14 < REF(var14,1)),LOW - (LOW)*(0.05),0),linethick3,color0000b7;
 DRAWLINE((REF(var14,2) > REF(var14,1)) AND (var14 > REF(var14,1)),LOW - (LOW)*(0.08),(REF(var14,2) < REF(var14,1)) AND (var14 < REF(var14,1)),LOW - (LOW)*(0.05),0),linethick2,color0000cd;
 DRAWLINE((REF(var14,2) > REF(var14,1)) AND (var14 > REF(var14,1)),LOW - (LOW)*(0.08),(REF(var14,2) < REF(var14,1)) AND (var14 < REF(var14,1)),LOW - (LOW)*(0.05),0),linethick1,color077bf3;
 STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),colorff5b00;
 STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4.5,0),colorff6c00;
 STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),colorff7b00;
 STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5,0),colorff9c00;
 STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),colorffbe00;
 STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1,0),colorffcc00;
 STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,0.5,0),colorcccccc;
 STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),color070084;
 STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4.5,0),color0000a3;
 STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),color0000b7;
 STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3.5,0),color0000cd;
 STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),color0000e9;
 STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),color0754e9;
 STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),color076ef3;
 STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,0.5,0),color077bf3;
 STICKLINE((CLOSE > OPEN),OPEN,LOW,0.5,0),color0726ca;
 STICKLINE((CLOSE > OPEN),CLOSE,HIGH,0.5,0),color0726ca;
 STICKLINE((OPEN > CLOSE),CLOSE,LOW,0.5,0),colorde9100;
 STICKLINE((OPEN > CLOSE),OPEN,HIGH,0.5,0),colorde9100;
买:DRAWTEXT((REF(var14,2) > REF(var14,1)) AND (var14 > REF(var14,1)),LOW - (LOW)*(0.05),'买'),colorred;
卖:DRAWTEXT((REF(var14,2) < REF(var14,1)) AND (var14 < REF(var14,1)),LOW - (LOW)*(0.03),'卖'),color66ff00;
 STICKLINE((REF(var14,2) < REF(var14,1)) AND (var14 < REF(var14,1)),CLOSE,OPEN,5,0),color66ff00;
 STICKLINE((REF(var14,2) > REF(var14,1)) AND (var14 > REF(var14,1)),CLOSE,OPEN,5,0),coloryellow;

大家都爱看
查看更多热点新闻
点击进入翔博软件旗下掌上指标--自助下载指标