同花顺短线金股主图指标公式是什么?
2016-5-6 13:22: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">MA5:MA(C,5),colorwhite,;
MA20:MA(C,20);
涨幅:=(C-REF(C,1))/REF(C,1)*100;
开:=(O-REF(C,1))/REF(C,1)*100;
上:MA20+2*STD(CLOSE,20);
下:MA20-2*STD(CLOSE,20);
角5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
角20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;
DRAWTEXT_FIX(C>0,0.57,0,0,'<当前攻击角度> -->'),colorred;
DRAWNUMBER_FIX(ISLASTBAR,0.69,0,0,TOSTRING(角5,1));
DRAWTEXT_FIX(C>0,0.57,0.05,0,'<开盘幅度> -->'),colorred;
DRAWNUMBER_FIX(ISLASTBAR,0.69,0.05,0,TOSTRING(开,2));
拐点:=(角5>0 AND REF(角5,1)<0) OR (角5-REF(角5,1)>30);
B1:=角5>=45;
B2:=角5>REF(角5,1);
B3:=(H-LLV(L,3))/LLV(L,3)*100<25;
B4:=(角5>70 AND REF(角5,1)>70)=0;
B5:=角20>20;
B6:=涨幅>=3;
B7:=拐点;
B8:=MA5*1.01>MA20;
备选股池0:=B1 AND B2 AND B3 AND B4 AND B5 AND B6 AND B7 AND B8;
备选股池:=备选股池0 AND REF(备选股池0,1)=0;
B:=REF(备选股池,1) AND 角5>=45 AND MA5>MA20;
DRAWTEXT(备选股池,L,"备"),coloryellow;
DRAWICON(B,L,1);
//配合选股公示显示回踩价格
L1:=IF(开>=-10 AND 开<2,O,0);
L2:=IF(开>=2 AND 开<4,O*(1-0.01),0);
L3:=IF(开>=4 AND 开<6,O*(1-0.02),0);
L4:=IF(开>=6 AND 开<8,O*(1-0.03),0);
L5:=IF(开>=8 AND 开<10.5,O*(1-0.04),0);
回踩价:=L1+L2+L3+L4+L5;
回踩进场价格:IF(REF(备选股池,1) AND 角5>=45 AND MA5>MA20,回踩价,0);
次日最大获利:=IF(REF(L,1)<=REF(回踩进场价格,1),TOSTRING((H-REF(回踩进场价格,1))/REF(回踩进场价格,1)*100,1),TOSTRING((H-REF(回踩进场价格,1))/REF(回踩进场价格,1)*100,1));
AA:=BARSLAST(回踩进场价格>0)+1;
浮动盈亏百分比:=(C-REF(回踩进场价格,BARSLAST(回踩进场价格>0)))/REF(回踩进场价格,BARSLAST(回踩进场价格>0))*100;
DRAWNUMBER_FIX(AA<=5 AND ISLASTBAR AND REF(回踩进场价格,BARSLAST(回踩进场价格>0))>0,0.69,0.10,0,TOSTRING(REF(回踩进场价格,BARSLAST(回踩进场价格>0)),2)),colorcyan;
DRAWTEXT_FIX(AA<=5 AND ISLASTBAR AND REF(回踩进场价格,BARSLAST(回踩进场价格>0))>0,0.57,0.10,0,"成本价 -->"),colorred;
DRAWNUMBER_FIX(AA<=5 AND ISLASTBAR AND REF(回踩进场价格,BARSLAST(回踩进场价格>0)),0.69,0.15,0,TOSTRING(C,2)),colorcyan;
DRAWTEXT_FIX(AA<=5 AND ISLASTBAR AND REF(回踩进场价格,BARSLAST(回踩进场价格>0)),0.57,0.15,0,"最新价 -->"),colorred;
DRAWNUMBER_FIX(AA<=5 AND ISLASTBAR,0.69,0.20,0,TOSTRING(浮动盈亏百分比,2)),colorcyan;
DRAWTEXT_FIX(AA<=5 AND ISLASTBAR,0.57,0.20,0,"当前浮动盈亏百分比 -->"),colorred;
STICKLINE(回踩进场价格>0,回踩进场价格,回踩进场价格*1.003,12,0);
DRAWNUMBER(REF(L,1)<=REF(回踩进场价格,1),H*1.08,次日最大获利);
附:【同花顺一分线抄底公式源码】
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');
}
更多同花顺指标公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。