红蓝对抗,一目了然
红色持股或逢低买入,蓝色持币或逢高卖出
欢迎多提宝贵意见
红色持股或逢低买入,蓝色持币或逢高卖出
ma$1:ma(close, 5);
ma$2:ma(close, 10);
ma$3:ma(close, 20);
ma5平滑:=ma(ma(close,5),2);
ff1:=ma5平滑>ref(ma5平滑,1);
drawgbk(ff1),rgb(110,30,30);
drawgbk(not(ff1)),rgb(30,30,80);
n:=13;
m:=5;
a1=close>ma(close,n);
a2=close>ma(close,m) and close<ma(close,n);
drawtext_fix(islastbar and a1=1,0.7,0.94,0,'均线提示:持股或逢低买入 仓位:60 %'),colorred;
drawtext_fix(islastbar and a2=1,0.7,0.94,0,'均线提示:观望,注意趋势可能反转 仓位:30 %'),coloryellow;
drawtext_fix(islastbar and (a1=0 and a2=0),0.7,0.94,0,'均线提示:持币或逢高卖出 仓位:0 %'),colorgreen;
ma5:=ma(close,5),colorwhite;
ff1:=ma5>ref(ma5,1); //5日线染色
partline(ma5,ff1,rgb(255,0,0),1,rgb(0,255,0)),linethick3;
ma10:=ma(close,10),colorwhite;
ff2:=ma10>ref(ma10,1); //10日线染色
partline(ma10,ff2,rgb(255,0,0),1,rgb(0,255,0)),linethick3;
ma20:=ma(close,20),colorwhite;
ff3:=ma20>ref(ma20,1); //20日线染色
partline(ma20,ff3,rgb(255,0,0),1,rgb(0,255,0)),linethick3;
//kdj
rsv=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k=sma(rsv,3,1);
d=sma(k,3,1);
j=3*k-2*d;
drawicon(cross(j,0),low,"buy");
drawicon(cross(100,j),high,"sell");
//{---------------宝塔线------------------}
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);
redflag:=var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc;
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);
greenflag:=vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18;
drawtext_fix(islastbar and redflag=1 and ma5>ref(ma5,1),0.7,0.89,0,'宝 塔 线:买入或持股,看多做多'),colorred;
drawtext_fix(islastbar and redflag=1 and ma5<=ref(ma5,1),0.7,0.89,0,'宝 塔 线:观望,看多不做多'),coloryellow;
drawtext_fix(islastbar and greenflag=1 and ma5>ref(ma5,1),0.7,0.89,0,'宝 塔 线:观望,看空不做空'),coloryellow;
drawtext_fix(islastbar and greenflag=1 and ma5<=ref(ma5,1),0.7,0.89,0,'宝 塔 线:卖出或持币,看空做空'),colorgreen;
上一指标公式:财务基本面指标公式详解 同花顺基本面
下一指标公式:摆脱股民跟风指标公式详解 同花顺股民摆脱
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文ZXF自动解盘指标公式详解 同花顺ZXF仅供学习研究。