公式描述
股票波段操作是指投资者利用个股的走势,在低位买入,在高位卖出,赚取一定的差价,其中投资者可以利用以下方法,来进行波段操作:
1、均线
当股价跌破下方某一均线时,就可以考虑卖出手中股票;当股票突破上方某一均线时则投资者可以考虑买入一些。如:5日、10均线等。
2、历史的高位和压力位
当股价上涨突破到历史的高点时,拐头向下运行,则卖出个股,反之,当股价下跌触碰到历史的低位,出现反弹时,可以考虑买入一些。
3、黄金分割点
黄金分割线是股市中最常见、最受欢迎的切线分析工具之一,实际操作中主要运用黄金分割来揭示上涨行情的调整支撑位或下跌行情中的反弹压力位,将股票涨跌幅按0.236、0.382、0.5、0.618、0.809分割为5个黄金点,其中0.382和0.618属于黄金分割线图中的较强的支撑线,1.382和1.618属于黄金分割线图中的较强的压力线,投资者可以把黄金分割线中的支撑线作为一个买点,压力线作为一个卖点。
今日分享的通达信平底平顶转折波段指标公式,是一个适用于波段分析的指标公式。
具体信号说明:
当指标中出现紫色的信号线,出现“平底”的信号时,后市上涨的概率较大,是参考买入的信号。
当指标中出现绿色的信号柱,或是“平顶”或是信号线转为白色的时候,后市看跌,是参考卖出的信号。
公式案例
公式源码
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
游客,本付费内容需要支付 12共享币 才能浏览 支付
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR
VAR17 OR VAR18,CLOSE,REF(CLOSE,1),1.5,0),COLORGREEN;
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR
VAR17 OR VAR18,1) AND VAR1;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORGREEN;
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORRED;
A1Q:=IF(C<REF(C,1) AND REF(C,1)<REF(C,2) AND L<REF(L,1) AND L>REF(L,2),REF(C,2),IF(C>REF(C,1),C,REF(C,1)));
TOWER1:IF(VAR1A,REF(A1Q,1),A1Q),NODRAW;
TOWER2:=IF(C<=REF(C,1),C,MIN(MIN(REF(C,2),REF(C,1)),MIN(REF(C,1),C))),NODRAW;
三平底:COUNT(TOWER2=REF(TOWER2,1),2)=2 AND VAR19,NODRAW;
三平顶:COUNT(TOWER1=REF(TOWER1,1),2)=2 AND VAR1A,NODRAW;
DRAWTEXT(三平顶, HIGH,'←平顶'),COLORYELLOW;
DRAWTEXT(三平底, LOW,'←平底'),COLORMAGENTA;
AQ:=C>REF(C,1)*1.09 AND C=H;
TS:= BARSLAST(AQ);
AA3:=BETWEEN(TS,3,30);
XG:=VAR19 AND AA3;
STICKLINE(XG,C,REF(CLOSE,2),1.5,0),COLORYELLOW;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
FORX:=MA(C,3),COLORWHITE;
DD5:=FORX<REF(FORX,1);
持币:=IF(DD5,FORX,DRAWNULL),COLOR00FF00;
X:=(3*C+L+O+H)/6;
多空线20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210,COLORFF00FF,LINETHICK1;
DD:=多空线<REF(多空线,1);
IF(DD,多空线,DRAWNULL),COLORWHITE,LINETHICK1;
A:=(FORX>多空线);
IF(A,多空线,DRAWNULL),COLORYELLOW,POINTDOT;
A1:=(FORX<多空线);
IF(A1,多空线,DRAWNULL),COLORWHITE;
V1:=CLOSE*VOL;
V2:=EMA(V1,13)/EMA(VOL,13);
CYS:=(EMA((CLOSE-V2)/V2,1)*100);
AA:=CYS;
MIDD:=MA(CYS,20);
CC:=MIDD+0.85*STD(CYS,10);
TM6:=AA>CC;
持股:=IF(TM6,FORX,DRAWNULL),COLORRED,LINETHICK2; |