站上均线主图公式

[复制链接]
查看34 | 回复0 | 2022-7-24 05:55:42 | 显示全部楼层 |阅读模式

站上均线主图公式

MA5:MA(CLOSE,5),COLOR0000FF;
 MA13:MA(CLOSE,13),LINETHICK0;
 MA21:MA(CLOSE,21),LINETHICK0;
 MC5:=(CROSS(MA5,C));
 T5:=BARSLAST(FILTERX(MC5,BARSCOUNT(C)));
 MC13:=(CROSS(MA13,C));
 T13:=BARSLAST(FILTERX(MC13,BARSCOUNT(C)));
 MC21:=(CROSS(MA21,C));
 T21:=BARSLAST(FILTERX(MC21,BARSCOUNT(C)));
 DRAWTEXT(FILTERX(MC5,BARSCOUNT(C)) AND T5<T13 AND T5<T21,H*1.03,'破5均卖出30%')COLORYELLOW;
 DRAWICON(FILTERX(MC5,BARSCOUNT(C)) AND T5<T13 AND T5<T21,H*1.01,2);

 DRAWTEXT(FILTERX(MC13,BARSCOUNT(C)) AND T13<T5 AND T13<T21,H*1.03,'破13均卖出40%')COLORYELLOW;
 DRAWICON(FILTERX(MC13,BARSCOUNT(C))AND T13<T5 AND T13<T21,H*1.01,2);

 DRAWTEXT(FILTERX(MC21,BARSCOUNT(C)) AND T21<T5 AND T21<T13,H*1.03,'破21均清仓')COLORYELLOW;
 DRAWICON(FILTERX(MC21,BARSCOUNT(C)) AND T21<T5 AND T21<T13,H*1.01,2);
 ML5:=(CROSS(C,MA5));
 TM5:=BARSLAST(FILTERX(ML5,BARSCOUNT(C)));
 ML13:=(CROSS(C,MA13));
 TM13:=BARSLAST(FILTERX(ML13,BARSCOUNT(C)));
 ML21:=(CROSS(C,MA21));
 TM21:=BARSLAST(FILTERX(ML21,BARSCOUNT(C)));
 DRAWTEXT(FILTERX(ML5,BARSCOUNT(C)) AND TM5<TM13 AND TM5<TM21,H*1.03,'站上5均买入30%')COLORYELLOW;
 DRAWICON(FILTERX(ML5,BARSCOUNT(C))AND TM5<TM13 AND TM5<TM21,H*1.01,2);

 DRAWTEXT(FILTERX(ML13,BARSCOUNT(C)) AND TM13<TM5 AND TM13<TM21,H*1.03,'站上13均买入40%')COLORYELLOW;
 DRAWICON(FILTERX(ML13,BARSCOUNT(C))AND TM13<TM5 AND TM13<TM21,H*1.01,2);

 DRAWTEXT(FILTERX(ML21,BARSCOUNT(C)) AND TM21<TM5 AND TM21<TM13,H*1.03,'站上21均满仓')COLORYELLOW;
 DRAWICON(FILTERX(ML21,BARSCOUNT(C))AND TM21<TM5 AND TM21<TM13,H*1.01,2);

 

717244213.png

717244213.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则