买卖宝塔1公式 指标 选股 源码[同花顺公式]
指标公式源码分析及使用说明:
源码:
MA1 : MA(CLOSE,5);
MA2 : MA(CLOSE,10);
MA3 : MA(CLOSE,20);
MA4 : MA(CLOSE,10000);
MMM:=MA(CLOSE,20);
//www.cxh99.com
CXH1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
CXH2:=REF(CXH1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
CXH3:=REF(CXH2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
CXH4:=REF(CXH3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
CXH5:=REF(CXH4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
CXH6:=REF(CXH5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
CXH7:=REF(CXH6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
CXH8:=REF(CXH7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
CXH9:=REF(CXH8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
CXHA:=REF(CXH9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
CXHB:=REF(CXHA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
CXHC:=REF(CXHB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
CXHD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
CXHE:=REF(CXHD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
CXHF:=REF(CXHE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
CXH10:=REF(CXHF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
CXH11:=REF(CXH10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
CXH12:=REF(CXH11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
CXH13:=REF(CXH12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
CXH14:=REF(CXH13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
CXH15:=REF(CXH14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
CXH16:=REF(CXH15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
CXH17:=REF(CXH16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
CXH18:=REF(CXH17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
CXH19:=REF(CXHD OR CXHE OR CXHF OR CXH10 OR CXH11 OR CXH12 OR CXH13 OR
CXH14 OR CXH15 OR CXH16 OR CXH17 OR CXH18,1) AND CXH1;
CXH1A:=REF(CXH1 OR CXH2 OR CXH3 OR CXH4 OR CXH5 OR CXH6 OR CXH7 OR
CXH8 OR CXH9 OR CXHA OR CXHB OR CXHC,1) AND CXHD;//www.cxh99.com
STICKLINE(CXH1A,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLORFF3300;
STICKLINE(CXH1A,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLORFF5500;
STICKLINE(CXH1A,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLORFF7700;
STICKLINE(CXH1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORFF9900;
STICKLINE(CXH1A,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORFFBB00;
STICKLINE(CXH1A,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORFFDD00;
DRAWTEXT(FILTER(CXH19=1,5),LOW,'买'),COLORFF00FF;
DRAWTEXT(FILTER(CXH1A=1,5),HIGH,' 卖'),COLOR00FF00;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容