设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

同花顺一分线抄底公式源码 同花顺指标公式大全

2016-3-24 9:44:18 股票入门 http://rumen.southmoney.com

同花顺一分线抄底公式源码 同花顺指标公式大全 南方财富网小编为您带来最新的同花顺指标公式

WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">N:=13;
MID :  MA(CLOSE,N);

UPPER: MID + P*STD(CLOSE,N);

LOWER: MID - P*STD(CLOSE,N);

UP_TOUCH_UPPER   := CROSS(HIGH,UPPER);

DOWN_TOUCH_MID   := CROSS(MID,LOW);

DOWN_TOUCH_LOWER := CROSS(LOWER,LOW);

DRAWTEXT(UP_TOUCH_UPPER,  HIGH,'U');

DRAWTEXT(DOWN_TOUCH_MID,  HIGH,'M');

DRAWTEXT(DOWN_TOUCH_LOWER,HIGH,'L');

touch = DOWN_TOUCH_MID OR DOWN_TOUCH_LOWER;

IF touch==0 THEN RETURN;

NEAR1_UP_TOUCH_UPPER_POS = 0;

NEAR2_UP_TOUCH_UPPER_POS = 0;

icount = 1;

ilasttouchup = 0;

WHILE (icount <300 )

{

IF ( REF(UP_TOUCH_UPPER,icount) )

{

IF ( NEAR1_UP_TOUCH_UPPER_POS == 0 )

{

NEAR1_UP_TOUCH_UPPER_POS=icount;

}

ELSE

{

//距离必须远点,不然认为是同一个,这个要根据不同的时间单位来调

IF ( icount - ilasttouchup  > 7 )

{

NEAR2_UP_TOUCH_UPPER_POS=icount;

BREAK;

}

}

ilasttouchup = icount;

}

icount = icount +1;

}

//分钟线的条件

C1 =  NEAR2_UP_TOUCH_UPPER_POS > NEAR1_UP_TOUCH_UPPER_POS;

C2 =  NEAR1_UP_TOUCH_UPPER_POS < 20;

C3 =  NEAR2_UP_TOUCH_UPPER_POS - NEAR1_UP_TOUCH_UPPER_POS > 40;

C4 = REF(CLOSE, NEAR1_UP_TOUCH_UPPER_POS) < (REF(CLOSE, NEAR2_UP_TOUCH_UPPER_POS) * 0.99);

IF ( C1 AND C2 AND C3 AND C4)

{

DRAWICON(1,LOW,1);

DRAWTEXT(1,LOW,'BUY');

}

更多同花顺指标公式相关资讯请关注南方股票

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。