本文目录一览:
-
1、主力动向指标公式
主力动向指标公式
由于公式引用"XMA(X,N)"未来数据代码,是无法进行准确选股和优化,选取出来的结果也是会漂移不定,公式适宜观赏或教学。
十大k线语言指标公式
M:=5;
N:=42;
N1:=21;
P:=8;
SHORT:=12;
LONG:=12;
MID:=12;
P1:=12;
工作线:EMA(CLOSE,50),COLORRED,LINETHICK2;
工作线2:EMA(CLOSE,17),LINETHICK2;
九号线:=EMA(CLOSE,99);
暴涨线:=MA(CLOSE,181);
牛:=EMA(CLOSE,144)=REF(EMA(CLOSE,144),1);
DRAWTEXT((工作线2=REF(工作线2,1) AND
L工作线2 AND C工作线2) ,L, '买'),COLORYELLOW;
DRAWTEXT((九号线=REF(九号线,1) AND 牛 AND L九号线 AND H九号线)
AND ((CLOSEREF(CLOSE,1) OR OC)),L*0.98 , '●九号'),COLOR00FF00;
DRAWTEXT((工作线=REF(工作线,1) AND 牛 AND L工作线 AND H工作线)
{AND ((CLOSEREF(CLOSE,1) OR OC))},L*0.96 , '◆工作'),COLORWHITE;
DRAWTEXT( (暴涨线=REF(暴涨线,1) AND 牛 AND L暴涨线 AND H暴涨线)
AND ((CLOSEREF(CLOSE,1) OR OC)),L*0.94 , '★暴涨'),COLORMAGENTA;
黄昏之星:=((((((REF(CLOSE,2) / REF(OPEN,2)) 1.03) AND (REF(OPEN,1)
REF(CLOSE,2))) AND ((Abs((REF(OPEN,1) - REF(CLOSE,1))) /
REF(CLOSE,1)) 0.02)) AND ((CLOSE / OPEN) 0.97)) AND (CLOSE REF(CLOSE,2)));
射击之星:=(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) (3 *
(MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE MA(CLOSE,5)));
锤头:=(((HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) (3 * (HIGH -
MIN(OPEN,CLOSE))))) AND (CLOSE MA(CLOSE,5)));
吊颈:=(( (HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) (3 * (HIGH -
MIN(OPEN,CLOSE))))));
穿头破脚:=((((((REF(CLOSE,1) / REF(OPEN,1)) 1.03) AND ((CLOSE / OPEN)
0.96)) AND (CLOSE REF(OPEN,1))) AND (OPEN REF(CLOSE,1))) OR
(((((REF(CLOSE,1) / REF(OPEN,1)) 0.97) AND ((CLOSE / OPEN)
1.04)) AND (CLOSE REF(OPEN,1))) AND (OPEN REF(CLOSE,1))));
身怀六甲:=(((((ABS((REF(CLOSE,1) - REF(OPEN,1))) / REF(CLOSE,1)) 0.04)
AND ((ABS((CLOSE - OPEN)) / CLOSE) 0.005)) AND (MAX(CLOSE,OPEN)
MAX(REF(CLOSE,1),REF(OPEN,1)))) AND (MIN(CLOSE,OPEN) MIN(REF(CLOSE,1),REF(OPEN,1))));
乌云盖顶:=(((((REF(CLOSE,1) / REF(OPEN,1)) 1.03) AND ((CLOSE / OPEN)
0.97)) AND (OPEN REF(CLOSE,1))) AND (CLOSE REF(CLOSE,1)));
曙光初现:=(((((REF(CLOSE,1) / REF(OPEN,1)) 0.97) AND ((CLOSE / OPEN)
1.03)) AND (OPEN REF(CLOSE,1))) AND (CLOSE REF(CLOSE,1)));
倾盆雨:=(((((REF(CLOSE,1) / REF(OPEN,1)) = 1.03) AND (OPEN
REF(CLOSE,1))) AND (OPEN REF(OPEN,1))) AND (CLOSE REF(OPEN,1)));
DRAWTEXT(倾盆雨,H*1.03,'倾盆大雨'),COLORCYAN;
DRAWTEXT(黄昏之星,H*1.02,'黄昏之星'),COLORCYAN;
DRAWTEXT(射击之星,H*1.03,'射击之星可能见顶'),COLORCYAN;
DRAWTEXT(锤头,L-L*0.02,'锤头可能见底'),COLORGREEN;
DRAWTEXT(吊颈,H*1.03,'吊颈'),COLORCYAN;
DRAWTEXT(穿头破脚,H*1.05,'穿头破脚'),COLORCYAN;
DRAWTEXT(乌云盖顶,H*1.03,'乌云盖顶'),COLORCYAN;
DRAWTEXT(曙光初现,L-L*0.02,'曙光初现(放量)'),COLORGREEN;
DRAWTEXT(身怀六甲,L-L*0.02,'身怀六甲,底升顶落'),COLORGREEN;
特殊K线提示指标公式
工作线:EMA(CLOSE,50),COLORRED,LINETHICK2;
工作线2:EMA(CLOSE,17),LINETHICK2;
九号线:=EMA(CLOSE,99);
暴张线:=MA(CLOSE,181);
牛:=EMA(CLOSE,144)=REF(EMA(CLOSE,144),1);
DRAWTEXT((工作线2=REF(工作线2,1) AND
L工作线2) ,L, '买'),COLORYELLOW;
DRAWTEXT((九号线=REF(九号线,1) AND 牛 AND L九号线)
AND ((CLOSEC)),L*0.98 , '●九号'),COLOR00FF00;
DRAWTEXT((工作线=REF(工作线,1) AND 牛 AND L工作线)
{AND ((CLOSEC))},L*0.96 , '◆工作'),COLORWHITE;
DRAWTEXT( (暴张线=REF(暴张线,1) AND 牛 AND L暴张线)
AND ((CLOSEC)),L*0.94 , '★暴张'),COLORMAGENTA;
黄昏之星:=((((((REF(CLOSE,2) / REF(OPEN,2)) 1.03) AND (REF(OPEN,1)
REF(CLOSE,2))) AND ((ABS((REF(OPEN,1) - REF(CLOSE,1))) /
REF(CLOSE,1))
射击之星:=(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) (3 *
(MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE MA(CLOSE,5)));
锤头:=(((HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) (3 * (HIGH -
MIN(OPEN,CLOSE))))) AND (CLOSE
吊颈:=(( (HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) (3 * (HIGH -
MIN(OPEN,CLOSE))))));
穿头破脚:=((((((REF(CLOSE,1) / REF(OPEN,1)) 1.03) AND ((CLOSE / OPEN)
REF(CLOSE,1))) OR
(((((REF(CLOSE,1) / REF(OPEN,1))
1.04)) AND (CLOSE REF(OPEN,1))) AND (OPEN
身怀六甲:=(((((ABS((REF(CLOSE,1) - REF(OPEN,1))) / REF(CLOSE,1)) 0.04)
AND ((ABS((CLOSE - OPEN)) / CLOSE)
MAX(REF(CLOSE,1),REF(OPEN,1)))) AND (MIN(CLOSE,OPEN) MIN(REF(CLOSE,1),REF(OPEN,1))));
乌云盖顶:=(((((REF(CLOSE,1) / REF(OPEN,1)) 1.03) AND ((CLOSE / OPEN)
0.97)) AND (OPEN REF(CLOSE,1))) AND (CLOSE
曙光初现:=(((((REF(CLOSE,1) / REF(OPEN,1))
1.03)) AND (OPEN REF(CLOSE,1)));
倾盆雨:=(((((REF(CLOSE,1) / REF(OPEN,1)) = 1.03) AND (OPEN
REF(CLOSE,1))) AND (OPEN REF(OPEN,1))) AND (CLOSE
DRAWTEXT(倾盆雨,H*1.03,'倾盆大雨'),COLORCYAN;
DRAWTEXT(黄昏之星,H*1.02,'黄昏之星'),COLORCYAN;
DRAWTEXT(射击之星,H*1.03,'射击之星可能见顶'),COLORCYAN;
DRAWTEXT(锤头,L-L*0.02,'锤头可能见底'),COLORGREEN;
DRAWTEXT(吊颈,H*1.03,'吊颈'),COLORCYAN;
DRAWTEXT(穿头破脚,H*1.05,'穿头破脚'),COLORCYAN;
DRAWTEXT(乌云盖顶,H*1.03,'乌云盖顶'),COLORCYAN;
DRAWTEXT(曙光初现,L-L*0.02,'曙光初现(放量)'),COLORGREEN;
DRAWTEXT(身怀六甲,L-L*0.02,'身怀六甲,底升顶落'),COLORGREEN;
K线图又称蜡烛线、阴阳线或棒线,原来是日本米市商人用来记录米市当中的行情波动,后因其标画方法具有独到之处,因而在股市及期市中被广泛引用。K线将买卖双方力量的增减与转变过程及实战结果用图形表示出来。经过近百年来的使用与改进,K线理论被投资人广泛接受。
画法:
K线之开盘价与收盘价之间以实体表示。若收盘价高于开盘价,以中空实体表示,称红线或阳线;若收盘价低于开盘价,则以黑色实体表示,称黑线或阴线。
若当天最高价高于实体之高价,则在实体上方另加细线,称为上影线;当天最低价低于实体之低价,也在实体下方另加细线,称为下影线。
一般来说,上影线愈长表示向下的压力愈大;而下影线愈长表示市场向上的支撑力愈大。K线的实体表示密集交易区。
k线显示买卖资金指标公式
简单的bbd指标公式如下:
a=(ZDMR[-1]+BDMR[-1]);b=(ZDMC[-1]+BDMC[-1]);A1=SUM(a,1);b1=-SUM(b,1);STICKLINE(A1+b10,0,A1+b1,9,0),color0000ff;STICKLINE(A1+b1