清醒买卖主图(源码、贴图)

 

清醒买卖主图


VAR1:=BARSCOUNT(CLOSE);
 VAR2:=HHV(HIGH,200);
 VAR3:=LLV(LOW,200);
 VAR4:=(VAR2-VAR3)/40;
 VAR5:=HIGH+VAR4;
卖:=STICKLINE(VAR1/30=FLOOR(VAR1/30),VAR5,VAR5+3*VAR4,3,0);
 DRAWTEXT(卖>0,H+0.1,'卖'),COLORGREEN;
 VAR6:=IF(YEAR>=2003 AND MONTH>1,0,1);
 VAR7:=REF(CLOSE-OPEN,2);
 VAR8:=REF(CLOSE,1);
 VAR9:=REF(CLOSE,2);
 VARA:=REF(CLOSE,3);
 VARB:=REF(CLOSE,4);
 VARC:=MAX(MAX(MAX(CLOSE,VAR8),VAR9),VARA);
 VARD:=MIN(MIN(MIN(CLOSE,VAR8),VAR9),VARA);

品红变盘:= STICKLINE(CLOSE=VARC AND VAR8=VARD,VAR9,CLOSE,5,1)*VAR6;
 DRAWTEXT(品红变盘>0,H+0.21,'变盘')COLORYELLOW;
黄色下跌:= STICKLINE(CLOSE=VARD AND (VAR8<VAR9 OR VAR8<VARA) OR VAR8=VARD AND (VAR9=VARC OR

VARA=VARC) AND CLOSE<VAR9 OR VAR9=VARD AND VARA=VARC AND CLOSE<VAR8 OR VARA=VARD AND

CLOSE<VAR8 AND CLOSE<VAR9,VAR8,CLOSE,5,0)*VAR6,COLORYELLOW;
绿色买:= STICKLINE(VAR8=VARC AND CLOSE=VARD,VAR9,CLOSE,3,0)*VAR6;
 DRAWTEXT(绿色买>0,L-0.21,'追涨')COLORMAGENTA;
买:=STICKLINE(VAR8=VARD AND CLOSE>=VAR9 OR (VAR9=VARD AND VAR8<=VARA OR VARA=VARD AND

VAR8<=VAR9) AND VAR9<VARB AND CLOSE>=VAR8,VAR8,VAR9,3,0)*VAR6;
 DRAWTEXT(买>0,L-0.11,'买')COLORCYAN;

VARE:=SAR(5,1,5);
 VARF:=EMA(CLOSE,30);
 VAR10:=IF(CLOSE>450,8,IF(CLOSE>=20 AND CLOSE<150,0.2,IF(CLOSE<20 AND CLOSE>=10,0.07,IF

(CLOSE<10,0.03,0.07))));
牛熊分界线:EMA(CLOSE,30)COLORCYAN,POINTDOT;
 STICKLINE(CLOSE>VARE,VARF,VARF+VAR10,1,0)*VAR6,COLORRED;
 STICKLINE(CLOSE<VARE,VARF,VARF-VAR10,1,0)COLORGREEN;


 {VAR1:=BARSCOUNT(CLOSE);
 VAR2:=HHV(HIGH,200);
 VAR3:=LLV(LOW,200);
 VAR4:=(VAR2-VAR3)/40;
 VAR5:=HIGH+VAR4;}
 STICKLINE(VAR1/30=FLOOR(VAR1/30),VAR5,VAR5+3*VAR4,8,0), COLOR0000FF;
 STICKLINE(VAR1/30=FLOOR(VAR1/30),VAR5,VAR5+2*VAR4,7,0), COLOR0000FF;
 {VAR6:=IF(YEAR>=2003 AND MONTH>1,0,1);
 VAR7:=REF(CLOSE-OPEN,2);
 VAR8:=REF(CLOSE,1);
 VAR9:=REF(CLOSE,2);
 VARA:=REF(CLOSE,3);
 VARB:=REF(CLOSE,4);
 VARC:=MAX(MAX(MAX(CLOSE,VAR8),VAR9),VARA);
 VARD:=MIN(MIN(MIN(CLOSE,VAR8),VAR9),VARA);
红色持股: STICKLINE(CLOSE=VARC AND (VAR8>=VAR9 OR VAR8>=VARA)
 OR VAR8=VARC AND (VAR9=VARD OR VARA=VARD) AND
 CLOSE>=VAR9 OR VAR9=VARC AND VARA=VARD AND CLOSE>=VAR8
 OR VARA=VARC AND CLOSE>=VAR8 AND CLOSE>=VAR9,VAR8,CLOSE,5,1)*VAR6,COLORRED;
品红变盘: STICKLINE(CLOSE=VARC AND VAR8=VARD,VAR9,CLOSE,5,1)*VAR6,COLORYELLOW;
黄色下跌: STICKLINE(CLOSE=VARD AND (VAR8<VAR9 OR VAR8<VARA) OR VAR8=VARD AND (VAR9=VARC OR

VARA=VARC) AND CLOSE<VAR9 OR VAR9=VARD AND VARA=VARC AND CLOSE<VAR8 OR VARA=VARD AND

CLOSE<VAR8 AND CLOSE<VAR9,VAR8,CLOSE,5,0)*VAR6,COLORYELLOW;
绿色买: STICKLINE(VAR8=VARC AND CLOSE=VARD,VAR9,CLOSE,5,0)*VAR6,COLORGREEN;}
 STICKLINE(VAR8=VARD AND CLOSE>=VAR9 OR (VAR9=VARD AND VAR8<=VARA OR VARA=VARD AND

VAR8<=VAR9) AND VAR9<VARB AND CLOSE>=VAR8,VAR8,VAR9,5,0)*VAR6,COLORBLUE;
兰色抛售: STICKLINE(VAR8=VARC AND CLOSE<VAR9 OR (VAR9=VARC AND VAR8>VARA OR VARA=VARC AND

VAR8>VAR9) AND VAR9>=VARB AND CLOSE<VAR8,VAR8,VAR9,5,1)*VAR6,COLORBLUE;
 {VARE:=SAR(5,1,5);
 VARF:=EMA(CLOSE,30);
 VAR10:=IF(CLOSE>450,8,IF(CLOSE>=20 AND CLOSE<150,0.2,IF(CLOSE<20 AND CLOSE>=10,0.07,IF

(CLOSE<10,0.03,0.07))));}


变色龙: STICKLINE(CLOSE>VARE,VARF,VARF+VAR10,6,0)*VAR6,COLORWHITE;
 STICKLINE(CLOSE<VARE,VARF,VARF-VAR10,6,0), COLORCYAN ;
 STICKLINE(CROSS(CLOSE,VARE),VARF,VARF-VAR10,6,0)COLORMAGENTA;
 STICKLINE(CROSS(VARE,CLOSE),VARF,VARF+VAR10,6,0)*VAR6,COLORMAGENTA;
 STICKLINE(RANGE(DAY,6,9) OR RANGE(DAY,27,30),VARF+0.01,VARF-0.01,6,0)*VAR6,COLORMAGENTA;
生命线: FORCAST(CLOSE,30)*VAR6, CIRCLEDOT;
支撑: MA(CLOSE,13)*0.955*VAR6;




来函数检测结果如下
该公式没有未来函数


解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

1赋值:[变量名错误]收盘价的有效数据周期数
VAR2赋值:200日内最高价的最高值
VAR3赋值:200日内最低价的最低值
VAR4赋值:(VAR2-VAR3)/40
VAR5赋值:最高价+VAR4
卖赋值:当满足条件VAR1/30=VAR1/30的向下舍入时,在VAR5和VAR5+3*VAR4位置之间画柱状线,宽度为3,0不为0则画空心柱.
当满足条件卖>0时,在最高价+0.1位置书写文字,画绿色
VAR6赋值:如果年份>=2003ANDMONTH>1,返回0,否则返回1
VAR7赋值:2日前的收盘价-开盘价
VAR8赋值:1日前的收盘价
VAR9赋值:2日前的收盘价
VARA赋值:3日前的收盘价
VARB赋值:4日前的收盘价
VARC赋值:收盘价和VAR8的较大值和VAR9的较大值和VARA的较大值
VARD赋值:收盘价和VAR8的较小值和VAR9的较小值和VARA的较小值
品红变盘赋值: 当满足条件收盘价=VARCANDVAR8=VARD时,在VAR9和收盘价位置之间画柱状线,宽度为5,1不为0则画空心柱.*VAR6
当满足条件品红变盘>0时,在最高价+0.21位置书写文字画黄色
黄色下跌赋值: 当满足条件收盘价=VARDAND(VAR8绿色买赋值: 当满足条件VAR8=VARCANDCLOSE=VARD时,在VAR9和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.*VAR6
当满足条件绿色买>0时,在最低价-0.21位置书写文字画洋红色
买赋值:当满足条件VAR8=VARDANDCLOSE>=VAR9OR(VAR9=VARDANDVAR8<=VARAORVARA=VARDANDVAR8<=VAR9)ANDVAR9=VAR8时,在VAR8和VAR9位置之间画柱状线,宽度为3,0不为0则画空心柱.*VAR6
当满足条件买>0时,在最低价-0.11位置书写文字画青色
VARE赋值:步长为1极限值为5的5日抛物转向
VARF赋值:收盘价的30日指数移动平均
VAR10赋值:如果收盘价>450,返回8,否则返回如果收盘价>=20ANDCLOSE<150,返回0.2,否则返回如果收盘价<20ANDCLOSE>=10,返回0.07,否则返回如果收盘价<10,返回0.03,否则返回0.07
输出牛熊分界线:收盘价的30日指数移动平均画青色,POINTDOT
当满足条件收盘价>VARE时,在VARF和VARF+VAR10位置之间画柱状线,宽度为1,0不为0则画空心柱.*VAR6,画红色
当满足条件收盘价 当满足条件VAR1/30=VAR1/30的向下舍入时,在VAR5和VAR5+3*VAR4位置之间画柱状线,宽度为8,0不为0则画空心柱., COLOR0000FF
当满足条件VAR1/30=VAR1/30的向下舍入时,在VAR5和VAR5+2*VAR4位置之间画柱状线,宽度为7,0不为0则画空心柱., COLOR0000FF
当满足条件VAR8=VARDANDCLOSE>=VAR9OR(VAR9=VARDANDVAR8<=VARAORVARA=VARDANDVAR8<=VAR9)ANDVAR9=VAR8时,在VAR8和VAR9位置之间画柱状线,宽度为5,0不为0则画空心柱.*VAR6,画蓝色
输出兰色抛售: 当满足条件VAR8=VARCANDCLOSEVARAORVARA=VARCANDVAR8>VAR9)ANDVAR9>=VARBANDCLOSE输出 变色龙: 当满足条件收盘价>VARE时,在VARF和VARF+VAR10位置之间画柱状线,宽度为6,0不为0则画空心柱.*VAR6,画白色
当满足条件收盘价 当满足条件收盘价上穿VARE时,在VARF和VARF-VAR10位置之间画柱状线,宽度为6,0不为0则画空心柱.画洋红色
当满足条件VARE上穿收盘价时,在VARF和VARF+VAR10位置之间画柱状线,宽度为6,0不为0则画空心柱.*VAR6,画洋红色
当满足条件日位于6和9之间ORRANGE(日,27,30)时,在VARF+0.01和VARF-0.01位置之间画柱状线,宽度为6,0不为0则画空心柱.*VAR6,画洋红色
输出生命线: 收盘价的30日线性回归预测值*VAR6, CIRCLEDOT
输出支撑: 收盘价的13日简单移动平均*0.955*VAR6

指标安装下载帮助  |   联系我们  |  乐淘公式网  |  公式网   |  指标公式  |   加入收藏   |  设为主页

@2005-2025 浙ICP备2024071487号-1 乐淘公式网公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:乐淘公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图