通达信宝塔线绿翻红选股公式大全及详细介绍
C1:=C;
C2:=REF(C,1);
C3:=REF(C,2);
STICKLINE(C1>C2 AND C2>C3,C1,C2,3,0),COLORRED;
STICKLINE(C1<C2 AND C2<C3,C1,C2,3,0),COLORGREEN;
STICKLINE(C1>C2 AND C2<C3 AND C1>C3,C1,C3,3,0),COLORRED;
STICKLINE(C1>C2 AND C2<C3 AND C1>C3,C3,C2,3,0),COLORGREEN;
STICKLINE(C1<C2 AND C2>C3 AND C1<C3,C2,C3,3,0),COLORRED;
STICKLINE(C1<C2 AND C2>C3 AND C1<C3,C1,C3,3,0),COLORGREEN;
STICKLINE(C1<C2 AND C2>C3 AND C1>=C3,C1,C2,3,0),COLORRED;
STICKLINE(C1>C2 AND C2<C3 AND C1<=C3,C1,C2,3,0),COLORGREEN;
STICKLINE(C1=C2 AND C1<C3,C1*1.002,C2,3,0),COLORGREEN;
STICKLINE(C2=C3 AND C1>C2,C1,C3,3,0),COLORRED;
STICKLINE(C1=C2 AND C1>C3,C1*1.002,C2,3,0),COLORRED;
STICKLINE(C2=C3 AND C1<C2,C1,C3,3,0),COLORGREEN;
通达信源码如上,求如图中箭头所示那种中“绿翻红”选股公式。谢谢。C1\c2\c3代表当天、昨天和前天,C2开盘价低于C3收盘价且收盘价低于当天开盘价,C1开盘价高于C2开盘价且收盘价高于当天开盘价。
[ 本帖最后由 wxp1515 于 2009-1-10 15:06 编辑 ]
附件
2009-1-9 09:06
截图31.gif (44.56 KB)
就是如图中箭头所示的那种,即当天的宝塔线“柱体形状”为下绿而上红(即绿翻红),最好是下降途中前几天的宝塔线形状均为绿柱,而当天宝塔线“柱”形状为下绿而上红。
本人愚笨,没有说清楚,仅就图说明。我查看了宝塔线原理,主要是收盘价与开盘价的关系,现举例说明选股思路。条件举例:C1\c2\c3代表当天、昨天和前天,C2开盘价低于C3收盘价且收盘价低于当天开盘价,C1开盘价高于C2开盘价且收盘价高于当天开盘价。
[ 本帖最后由 wxp1515 于 2009-1-10 15:07 编辑 ]
附件
2009-1-10 13:58
截图32.gif (34.25 KB)
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);
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
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);
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;
买入预警:(VAR19,REF(CLOSE,1),REF(CLOSE,2));
附件
2009-1-10 14:36
未命名2.gif (19.46 KB)
如果按照这个定义
基本原理
宝塔线指标以不同颜色的棒线来区分股价(或指数)涨跌。它以收盘价(或收盘指数)作为参照,当股价上涨时,画为红线(或白线),当股价下跌时,画为绿线(或黑线),主要通过棒线翻红或翻绿的变化情况来以研判股价未来的涨跌趋势。
具体画法如下:
在起步股价和当日收盘价之间画线,股价上涨时,画红色空心实体,股价下跌时,画绿色实心实体。若前一交易日是上涨红线,而次日下跌,股价未跌破前一天红线低点的那一部分跌幅仍画红线,跌破部分画绿线?若前一交易日为下跌绿线,而次日上涨,股价未涨过前一天绿线低点的那一部分涨幅仍画绿色实体,涨过部分才画红线。宝塔线的特征和点状图类似,并非记载每天或每周的股价变动过程,而是在股价创新高(或创新低)时才予以记录,这和K线的画法有一定的区别。
我不知道这个绿线低点是什么意思,是收盘价还是最低价?宝塔线好象不记录最低最高价的?
如果不记录最高最低价,只记录开盘收盘价,则绿翻红就是今开盘低过昨收盘,然后收盘价高过昨天收盘价。
ref(c,1)<ref(c,2)[昨天收盘价低于前天收盘价] and ref(c,1)<ref(o,1)[昨天是绿线] and o<ref(c,1)[开盘价低过昨收盘价] and c>ref(c,1)[收盘价高过昨收盘价]
这个用一般的话来说就是低开高走,用K线理论看,这种形态的K线,如果收盘价不能收在昨天阴线实体一半以上则大都是反抽而已。
C1\c2\c3代表当天、昨天和前天,C2开盘价低于C3收盘价且收盘价低于当天开盘价,C1开盘价高于C2开盘价且收盘价高于当天开盘价。
查看宝塔线说明,确实和开盘价没有关系,仅和收盘价有关系,不过还是请高手按我的思路编写一个选股公式。谢谢!
本文地址:
http://www.45fan.com/a/question/38513.html