公式描述
在股票市场上,有很多交易术语。空方是指:对后市看法不乐观,正在卖出股票的投资者。多方表示:对后市乐观,正在买入股票的投资者。
也就是多方看涨股票,所以会在合适的位置买入股票,但如果空方看跌股票,那么就会卖出。如果多方力量大于空方力量,那么股价就会上涨;如果空方力量大于买方,那么股价就会下跌。
在股价上涨的初期,多方的力量强于空方,也就是即便空方卖出股票,但多方依然有足够的资金将卖单吞并,因此后市股价还会上涨。
在股价上涨到一定高度后,多方力量明显感觉疲软,也就是增量资金进入,若此时空方就会抛售股票变现,当多方力量就弱于空方时,那么股价大概率就会回调。
今日分享的通达信多空分析指标公式,是一个多空分析指标。
具体信号说明:
当指标中出现红色的信号柱或是出现“强支撑”的信号时,是个股形成了强有力的支撑的信号,后市上涨的概率较大,是参考买入的信号。
当指标中出现红色信号线下穿黄色信号线时或是出现“高压”的信号时候,是上涨行情即将结束的信号,后市看跌,是参考卖出的信号。
公式案例
公式源码
VAR1:=(HIGH+LOW+CLOSE)/3;
VAR2:=(VAR1-MA(VAR1,14))/(0.015*AVEDEV(VAR1,14));
VAR3:=(VAR1-MA(VAR1,70))/(0.015*AVEDEV(VAR1,70));
VAR4:=IF(VAR2>=150 AND VAR2<200 AND VAR3>=150 AND VAR3<200,10,0);
VAR5:=IF(VAR2<=-150 AND VAR2>-200 AND VAR3<=-150 AND VAR3>-200,-10,VAR4);
VAR99:=(HIGH+LOW+CLOSE)/3;
VAR98:=(MA(VAR99,14)-VAR99)/(0.015*AVEDEV(VAR99,14));
VAR97:=(MA(VAR99,70)-VAR99)/(0.015*AVEDEV(VAR99,70));
VAR96:=IF(VAR98>=150 AND VAR98<200 AND VAR97>=150 AND VAR97<200,10,0);
VAR95:=IF(VAR98<=-150 AND VAR98>-200 AND VAR97<=-150 AND VAR97>-200,-10,VAR96);
VAR6:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR7:=100-ABS(VAR6);
DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,80,'短线高点'),COLORFF62FF;
STICKLINE(VAR1C AND COUNT(VAR1C,30)=1,60,80,5,0),COLOR0000E9;
VAR2C:=IF(VAR3>=200 AND VAR2>=150,15,IF(VAR3<=-200 AND VAR2<=-150,-15,0))+30;
VAR2E:=VAR1A<48 AND VAR2C<30 AND VAR8<100;
VAR2F:=VAR1A<48 AND VAR2C>30 AND VAR8<100;
DRAWTEXT(VAR2E AND COUNT(VAR2E,30)=1,50,'短线反弹2'),COLOR333399;
STICKLINE(VAR2E AND COUNT(VAR2E,30)=1,30,50,5,0),COLORFFFF66;
DRAWTEXT(VAR2F AND COUNT(VAR2F,30)=1,50,'短线高点2'),COLORFFCC66;
STICKLINE(VAR2F AND COUNT(VAR2F,30)=1,30,50,5,0),COLORFFCC66;
VAR3D:=IF(VAR3<=200 AND VAR2<=150,-15,IF(VAR3>=-200 AND VAR2>=-150,15,VAR5));
VAR3E:=VAR3D>0 AND VAR8<100;
VAR3F:=VAR1A<48 AND VAR3D<0 AND VAR8<100;
DRAWTEXT(VAR7<90 AND VAR2+VAR3<=0 AND VAR3F AND COUNT(VAR3F,30)=1,20,'短线反弹3'),COLORYELLOW;
STICKLINE(VAR7<90 AND VAR2+VAR3<=0 AND VAR3F AND COUNT(VAR3F,30)=1,20,0,5,0),COLORYELLOW;
DRAWTEXT(VAR3E AND COUNT(VAR3E,30)=1,20,'短线高点3'),COLORFF2266;
STICKLINE(VAR3E AND COUNT(VAR3E,30)=1,20,0,5,0),COLORFF2266;
强势线:60,COLORYELLOW;
VAR9:=IF(VAR7<90,40,30);
分界线:30,COLORFFFFFF;
STICKLINE(FILTER(VAR1B=45,5),-20,-10,5,0),COLOR077BF6;
DRAWTEXT(FILTER(VAR1B=45,5),0,'强支撑'),COLOR077BF6;
STICKLINE(FILTER(VAR1B=75,5),75,60,5,0),COLORRED;
DRAWTEXT(FILTER(VAR1B=75,5),75,'高压'),COLORRED;
STICKLINE(PJX<=-19,-25,-20,12,0),COLORRED;
STICKLINE(PJX>=70,85,80,12,0),COLORYELLOW;
DRAWTEXT(FILTER(VAR5>0,5),30,'★'),COLORYELLOW;
DRAWTEXT(FILTER(VAR95>0,5),30,'☆'),COLORYELLOW;
多空预警:0,COLOR0726CA;
{PARTLINE(VAR9=40 AND VAR2>=0 AND VAR3>=0,多空预警,COLOR0000B5);
PARTLINE(VAR9=40 AND VAR2<=0 AND VAR3<=0,多空预警,COLOR077BF6); }
IF(VAR9=40 AND VAR2>=0 AND VAR3>=0,多空预警,DRAWNULL),COLORFFFF00,LINETHICK3;
IF(VAR9=40 AND VAR2<=0 AND VAR3<=0,多空预警,DRAWNULL),COLOR077BF6,LINETHICK3;
{短强:MA((PJX-REF(PJX,1)),3),COLORWHITE;}; |