以下是同花顺短线胜手源码副图
//#@Fname=短线胜手
//#@comment=
//#@contrul=
//#@FuncType=
//#@style=来势线:Line2,a一般价格(灰),1,0,1,5,65535;福星:Line1027,,1,0,1,2,0;决策:Line3,,1,0,1,5,65535;必买:Line0,,1,0,1,5,65535;必卖:Line0,,1,0,1,5,16777215;趋势线:Line0,,1,0,1,5,255;逃顶线:Line0,,1,0,1,5,65280;
//#@availperiod=2147430400
//#@param=
//#@isDrawCurve=1
//#@Fdesc=短线胜手
//#@defaultperiod=16384
//#@coord=D
//#@ordinate=0,0.000000;0,0.000000;0,0.000000;0,0.000000;0,0.000000;0;0,0.000000
//#@@FUNCSPEC@=source
来势线: EMA(CLOSE,7)-EMA(CLOSE,21),coloryellow;
福星: EMA(来势线,7), COLORSTICK,colorred;
VAR1:=CLOSE/REF(LLV(LOW,35),5)< 1;
决策: IF(VAR1,0.5,0), STICK,coloryellow;
必买: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,1,-1),coloryellow ,LINETHICK1 ;
必卖: IF(PEAKBARS(3,15,1)=1,1,2),colorwhite,LINETHICK1;
趋势线: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,colorred;
逃顶线: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR00FF00 ,LINETHICK1 ;
==================以上是同花顺公式的源码,下面是通达信公式的源码:
来势线: EMA(CLOSE,7)-EMA(CLOSE,21),COLORYELLOW;
福星: EMA(来势线,7), COLORSTICK,COLORRED;
VAR1:=CLOSE/REF(LLV(LOW,35),5)< 1;
决策: IF(VAR1,0.5,0), STICK,COLORYELLOW;
必买: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,1,-1),COLORYELLOW ,LINETHICK1 ;
必卖: IF(PEAKBARS(3,15,1)=1,1,2),COLORWHITE,LINETHICK1;
趋势线: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,COLORRED;
逃顶线: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR00FF00 ,LINETHICK1 ;
评论(0)