股票的公式有哪些?同花顺老指标一次聚合公式
2016-6-12 10:12:51 股票入门 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:=20;P:=2;
MID := MA(CLOSE,N);
UPPER:= MID + P*STD(C,n);
LOWER:= MID - P*STD(C,n);
BBW: (UPPER- LOWER) / MID, colorblue;
BBW5:= MA(BBW, 5);
BBWP:= REF(BBW, 1);
BBWP2:= REF(BBW, 2);
BBCHA:= BBWP > BBW5 AND BBW <= BBWP AND HHV(BBW, 10) = BBWP;
BBWUP:= BBWP > BBW5 AND BBW > BBWP;
BBWDOWN:= BBWP < BBW5 AND BBW < BBWP;
变化: IF(BBCHA, 0.01, 0), colorwhite;
VERLINE(BBCHA, 0);
BBSPE:= BBWP < BBW5 AND BBW >= BBWP AND LLV(BBW, 10) = BBWP;
加速: IF(BBSPE, BBW, 0), coloryellow;
BBWRATE:= (BBW - BBWP) / BBWP;
BBWRATEP: = REF(BBWRATE, 1);
/* 均线 */
MA60:= MA(CLOSE, 60);
MA30= MA(CLOSE, 30);
MA20:= MA(CLOSE, 20);
MA5:= MA(CLOSE, 5);
MAIn:= MA20 >= REF(MA20, 1) AND BBWUP AND BBWRATE > 0.1;
买入: IF(MAIn, 0.01, 0), colorred;
DRAWTEXT(MAIn, BBW, '买');
MAOut:= CROSS(MA30, CLOSE) AND MA5 < REF(MA5, 1) AND MA20 < REF(MA20, 1);
卖出: IF(MAOut, 0.01, 0), colorgray;
DRAWTEXT(MAout, BBW, '卖');
EasyDown:= CLOSE * 0.97;
MAAdd:= CLOSE < REF(CLOSE, 1) AND MA5 < REF(MA5, 1) AND CLOSE > MA60 AND ((CLOSE > MA20 AND EasyDown < MA20) OR (CLOSE > MA30 AND EasyDown < MA30));
补仓: IF(MAAdd, 0.01, 0), colorcyan;
DRAWTEXT(MAAdd, BBW, '补');
/* 成交量 */
VOLIn:= VOL / MA(VOL, 5) > 1.8 AND CLOSE < MA60 AND MA5 < MA20 AND MA20 < MA30 AND MA30 < MA60 AND MA5 <= REF(MA5, 1);
进场: IF(VOLIn, 0.01, 0), colorligray;
DRAWTEXT(VOLIn, BBW, '进');
VOLOut:= VOL / MA(VOL, 5) > 1.8 AND MA20 > MA30 AND MA30 > MA60;
出场: IF(VOLOut, 0.01, 0), colormagenta;
DRAWTEXT(VOLOut, BBW, '出');
附:【同花顺自用趋势线副图指标公式】
LONGGGG发财线:=38,COLORFF3311;
STICKLINE(C>0,38,38,1,1),COLORFF9911;
LONGGGG趋势线:=51,COLORFF1155;
STICKLINE(C>0,51,51,1,1),COLORFF1199;
OK:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORFFFFFF;
RSI2:SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORFFFFFF;
RSI3:SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORFFFFFF;
RSI4:SMA(RSI3,7,1),LINETHICK2,COLOR00CD00;
趋势A:=MA(((CLOSE-LLV(LOW,48))/(HHV(HIGH,48)-LLV(LOW,48))*50),17)+9,COLORFFFFFF;
趋势B:=MA(((CLOSE-LLV(LOW,53))/(HHV(HIGH,53)-LLV(LOW,53))*50),17)+9,COLOR3377DD;
趋势C:EMA(((CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*50),17)+18,coloryellow,LINETHICK2;
W1:MA(趋势A,7)*1.372,colorred,LINETHICK2;
W2:=W1*1.0887;
W3:(1.5*(趋势B+RSI4)-(W2+W1))+12,COLOR3377FF,colorred,LINETHICK2,COLORFF0000;
W4:IF((CROSS(W1,趋势C) OR CROSS(W1,W3) AND W3<LONGGGG发财线 AND RSI2<LONGGGG趋势线),48,38),COLORFFFFFF;
XG:IF((CROSS(RSI2,RSI4) OR CROSS(RSI2,W3) AND W3<LONGGGG发财线 AND RSI1<LONGGGG趋势线),48,38),COLORFF6655;
更多股票公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。