P:=55;S:=8;M:=3;
VAR1:=EMA(EMA(CLOSE,13),13);
VAR2:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
JJJJ:=DYNAINFO(11);
AAAA:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10;
BBBB:=EMA(AAAA,M);
BTJ1:=(C-JJJJ)/JJJJ<-0.03;
BTJ2:=VAR2>REF(VAR2,1) AND VAR2<-0.2;
BTJ3:=CROSS(AAAA,BBBB) AND AAAA<-0.3;
BTJ4:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);
买1:=IF(BTJ4,1,0),COLORRED;
买2:=IF(FILTER(BTJ1 AND BTJ2 AND BTJ3,55),1,0),COLORLIRED;
长线底部买点:IF(买1 OR 买2,1,0),COLORYELLOW;
九毛八公式解读
P赋值:55 S赋值:8 M赋值:3 VAR1赋值:收盘价的13日指数移动平均的13日指数移动平均 VAR2赋值:(VAR1-1日前的VAR1)/1日前的VAR1*1000 JJJJ赋值:均价 AAAA赋值:(收盘价的S日指数移动平均-收盘价的P日指数移动平均)*10 BBBB赋值:AAAA的M日指数移动平均 BTJ1赋值:(收盘价-JJJJ)/JJJJ<-0.03 BTJ2赋值:VAR2>1日前的VAR2 AND VAR2<-0.2 BTJ3赋值:AAAA上穿BBBB AND AAAA<-0.3 BTJ4赋值:BTJ1ANDBTJ2ANDBTJ3的13日过滤 买1赋值:如果BTJ4,返回1,否则返回0,画红色 买2赋值:如果BTJ1ANDBTJ2ANDBTJ3的55日过滤,返回1,否则返回0,画淡红色 输出长线底部买点:如果买1OR买2,返回1,否则返回0,画黄色