白银易经(通达信公式 主图 源码 测试图)

[复制链接]
查看48 | 回复0 | 2022-6-27 15:07:15 | 显示全部楼层 |阅读模式

 {白银易经}

{技术指标} {其他类型} {主图叠加}
{参数填入: { N:(1,100,6); P1:(1,100,5); P2:(1,100,13);  }
 
{参数精灵: 请设置计算参数:
N: PARAM#0 (1.00--100.00)
P1: PARAM#1 (1.00--100.00)
P2: PARAM#2 (1.00--100.00) }
 
 
止盈价:(((XMA(XMA(H,25),25) - XMA(XMA(L,25),25)) * 1) + XMA(XMA(H,25),25)),COLOR70706F;
买入价:(XMA(XMA(L,25),25) - ((XMA(XMA(H,25),25) - XMA(XMA(L,25),25)) * 1)),COLOR70706F;
BS:(((XMA(XMA(H,60),60) - XMA(XMA(L,60),60)) * 2.2) + XMA(XMA(H,60),60)),DOTLINE,LINETHICK2,COLOR556688;
BD:(XMA(XMA(L,60),60) - ((XMA(XMA(H,60),60) - XMA(XMA(L,60),60)) * 2.8)),DOTLINE,LINETHICK2,COLOR556688;
TR1:=MAX(MAX((HIGH - LOW),ABS((REF(CLOSE,1) - HIGH))),ABS((REF(CLOSE,1) - LOW)));
ATR:=MA(TR1,13);
AR1:=(REF(CLOSE,1) - REF(ATR,1));
LSX:HHV(AR1,13),COLORGREEN;
LSX1:IF((C >= LSX),LSX,DRAWNULL),LINETHICK3,COLORMAGENTA;
VAR1:=(C - REF(C,1));
VAR2:=((100 * EMA(EMA(VAR1,6),6)) / EMA(EMA(ABS(VAR1),6),6));
MA5:=EMA(C,P1);
MA13:=EMA(C,P2);
UP:=DRAWLINE((L = LLV(L,(BARSLAST(CROSS(MA13,MA5)) + 1))),LLV(L,(BARSLAST(CROSS(MA13,MA5)) + 1)),(H = HHV(H,(BARSLAST(CROSS(MA5,MA13)) + 1))),HHV(H,(BARSLAST(CROSS(MA5,MA13)) + 1)),0);
DOWN:=DRAWLINE((H = HHV(H,(BARSLAST(CROSS(MA5,MA13)) + 1))),HHV(H,(BARSLAST(CROSS(MA5,MA13)) + 1)),(L = LLV(L,(BARSLAST(CROSS(MA13,MA5)) + 1))),LLV(L,(BARSLAST(CROSS(MA13,MA5)) + 1)),0);
BT:=(((((LLV(VAR2,2) = LLV(VAR2,7)) AND COUNT((VAR2 < 0),2)) AND CROSS(VAR2,MA(VAR2,2))) AND (REF(DOWN,1) < REF(DOWN,2))) AND (UP > REF(DOWN,1)));
BT1:=(((((HHV(VAR2,2) = HHV(VAR2,7)) AND COUNT((VAR2 > 0),2)) AND CROSS(MA(VAR2,2),VAR2)) AND (REF(UP,1) > REF(UP,2))) AND (DOWN < REF(UP,1)));
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=(HR * HRY);
HRY33:=SQRT(HRY11);
TJ2:=(((REF(DOWN,1) < REF(DOWN,2)) AND (UP > REF(DOWN,1))) AND (C < HRY33));
TJ3:=(((REF(UP,1) > REF(UP,2)) AND (DOWN < REF(UP,1))) AND (C > HRY33));
卖出:=(((XMA(XMA(H,25),25) - XMA(XMA(L,25),25)) * 1) + XMA(XMA(H,25),25));
买入:=(XMA(XMA(L,25),25) - ((XMA(XMA(H,25),25) - XMA(XMA(L,25),25)) * 1));
出下轨:=(LOW < 买入);
出下轨1:=(LOW < BD);
QQ:=(COUNT(出下轨,5) >= 1);
QQ1:=(COUNT(出下轨1,2) >= 1);
出上轨:=(H > 卖出);
出上轨1:=(H > BS);
KK:=(COUNT(出上轨,5) >= 1);
KK1:=(COUNT(出上轨1,2) >= 1);
DRAWBMP((TJ2 AND QQ),(L * 0.999),1);
DRAWBMP((TJ3 AND KK),(H * 1.005),2);
DRAWBMP((BT AND QQ),(L * 0.999),1);
DRAWBMP((BT1 AND KK),(H * 1.005),2);
BSB:=EMA((((CLOSE + HIGH) + LOW) / 3),3);
BSM:=EMA(((SLOPE((((CLOSE + HIGH) + LOW) / 3),24) * 20) + (((CLOSE + HIGH) + LOW) / 3)),48);
DRAWBMP(((BSB >= BSM) AND QQ1),(L * 0.995),3);
DRAWBMP(((BSB < BSM) AND KK1),(H * 1.009),4);
TYP:=(((HIGH + LOW) + (2 * C)) / 4);
均线:=EMA(TYP,3);
均线上轨:=HHV(均线,26);
均线下轨:=LLV(均线,26);
角度:=((ATAN((((均线 / REF(均线,1)) - 1) * 100)) * 180) / 3.1416);
DRAWKLINE(H,O,L,C);
 
{-----------------------------------};
 

202242233768061.png

202242233768061.png

2022422325214101.rar

3.71 KB, 下载次数: 0

售价: 1 金钱  [记录]  [购买]

2022422325214101.rar

回复

使用道具 举报

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

本版积分规则