软件名称:[B]白牛趋势通道(同花顺公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:5.00 KB
官方主页:Home Page
更新时间:2020-11-27 00:09:20
软件简介:
趋势通道,仓位控制趋势通道
//白牛趋势通道
{MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);}
DRAWTEXT_FIX(1,0.00,0.00,0,'★'),COLORFF00FF;
DRAWTEXT_FIX(1,0.00,0.05,0,'粉+红=满,粉+绿=6,蓝+红=4,蓝+绿=空'),COLOR00FFFF;
VAR1:=IF(YEAR>2999 AND MONTH>5,0,1);
VAR2:=IF(HIGH=CLOSE,1.10*CLOSE,HIGH)*VAR1;
VAR3:=IF(HIGH=CLOSE,0.90*CLOSE,LOW)*VAR1;
短期值1:=EMA((HIGH+LOW)/2,5);
顶部线1:=EMA(EMA(VAR2,6)*1.05,8);
底部线1:=EMA(EMA(VAR3,6)*0.97,8);
VARA1:=EXPMA(CLOSE,5);
VARB1:=EXPMA(CLOSE,10);
VARC1:=EXPMA(CLOSE,20);
VARD1:=EXPMA(CLOSE,50);
VARE1:=(VARA1+VARB1+VARC1+VARD1)/4;
天线1:MA(VARE1,4);
天线2:=MA(VARE1,5)+MA(VARE1,5)*0.03;
天线3:MA(VARE1,4)-MA(VARE1,4)*0.03;
NOTEXT天线01:IF(天线1>REF(天线1,1),天线1,DRAWNULL),colorred;
NOTEXT天线11:IF(天线1<REF(天线1,1),天线1,DRAWNULL),colorgreen;
NOTEXT天线03:IF(天线3>REF(天线3,1),天线3,DRAWNULL),colorred;
NOTEXT天线13:IF(天线3<REF(天线3,1),天线3,DRAWNULL),colorgreen;
STICKLINE(天线1>REF(天线1,1),天线1,天线3,0,0),colorred;
STICKLINE(天线1<REF(天线1,1),天线1,天线3,0,0),colorgreen;
空:=REF(C,1)>REF(天线3,1) AND C<天线3;
多:=REF(C,1)<REF(天线1,1) AND C>天线1;
空1:=FILTER(多,空,2);
多1:=FILTER(多,空,1);
DRAWTEXT(空1,天线1*1.04,'空'),colorgreen;
DRAWTEXT(多1,天线3*0.96,'多'),colorred;
DRAWICON(空1,天线1*1.02,2);
DRAWICON(多1,天线3*0.98,1);
VAR11:=IF(YEAR>2999 AND MONTH>5,0,1);
VAR12:=IF(HIGH=CLOSE,1.10*CLOSE,HIGH)*VAR11;
VAR13:=IF(HIGH=CLOSE,0.90*CLOSE,LOW)*VAR11;
长期值2:=EMA((HIGH+LOW)/2,5);
顶部线2:=EMA(EMA(VAR12,6)*1.05,8);
底部线2:=EMA(EMA(VAR13,6)*0.97,8);
VAR18:=(HIGH+LOW+CLOSE)/3;
VARA2:=EMA(CLOSE,5);
VARB2:=EMA(CLOSE,10);
VARC2:=EMA(CLOSE,20);
VARD2:=EMA(CLOSE,50);
VARE2:=(VARA2+VARB2+VARC2+VARD2)/4;
天线12:=EMA(VARE2,60);
天线22:=EMA(VARE2,60)+EMA(VARE2,60)*0.03;
天线32:=EMA(VARE2,55)-EMA(VARE2,55)*0.03;
NOTEXT天线012:IF(天线12>REF(天线12,1),天线12,DRAWNULL),colormagenta;
NOTEXT天线112:IF(天线12<REF(天线12,1),天线12,DRAWNULL),colorblue;
NOTEXT天线032:IF(天线32>REF(天线32,1),天线32,DRAWNULL),colormagenta;
NOTEXT天线132:IF(天线32<REF(天线32,1),天线32,DRAWNULL),colorblue;
STICKLINE(天线12>REF(天线12,1),天线12,天线32,0,0),colormagenta;
STICKLINE(天线12<REF(天线12,1),天线12,天线32,0,0),colorblue;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
[url=http://www.70822.com/soft/sort013/sort036/down-152318.html]白牛趋势通道(同花顺公式 主图 源码 测试图)[/url]