等级: 新手上路
- 注册:
- 2021-6-9
- 曾用名:
|
把文化改金字塔
B:=PB6-REF(PB6,1);
IF(B-1,PB6,NULL),COLORCYAN,LINETHICK2;
X:=BACKSET(ISLASTBAR,SUMBARS(CROSS(PB6>REF(PB6,1),0.5)||CROSS(PB6<REF(PB6,1),0.5),1));
DRAWSL(CROSS(PB6>REF(PB6,1),0.5)&&X,PB6,0,60,0,COLORRED);
DRAWSL(CROSS(PB6<REF(PB6,1),0.5)&&X,PB6,0,60,0,COLORGREEN);
C1:=IF(PB6>=REF(PB6,1),1,-1);
DRAWSL(REF(C1,1)=1,PB6,B,1,0,COLORRED),LINETHICK2;
DRAWSL(REF(C1,1)=-1,PB6,B,1,0,COLORBLUE),LINETHICK2;
金叉:=CROSS(PB1,PB4) ;
死叉:=CROSS(PB4,PB1);
DT:=PB1>PB4&&PB4>PB6;
KT:=PB1<PB4&&PB4<PB6;
DRAWCOLORKLINE(BARSLASTCOUNT(C>PB1&&DT)<=3&&BARSLASTCOUNT(C>PB1&&DT)>=1,COLORMAGENTA,0);
DRAWCOLORKLINE(BARSLASTCOUNT(C<PB1&&KT)<=3&&BARSLASTCOUNT(C<PB1&&KT)>=1,COLORYELLOW,0);
BARSLASTCOUNT(C>PB1&&DT)<=3&&BARSLASTCOUNT(C>PB1&&DT)>=1,SOUND('A');
BARSLASTCOUNT(C<PB1&&KT)<=3&&BARSLASTCOUNT(C<PB1&&KT)>=1,SOUND('B');
AA:=COUNT(金叉,PB6)>=1;
STEP1:=PB1/100;
MVALUE1:=PB4/100;
SARLINE:SAR(9,STEP1,MVALUE1),CIRCLEDOT;
DIFF : =EMA(CLOSE,6) - EMA(CLOSE,110);
DEA : =EMA(DIFF,9);
DRAWICON(CROSS(DIFF,DEA)&&C>PB6,L,4),VALIGN0;
DRAWICON(CROSSDOWN(DIFF,DEA)&&C<PB6,H,5);
DRAWCOLORKLINE(CROSS(DEA,0),COLORRED,0);
DRAWCOLORKLINE(CROSSDOWN(DEA,0),COLORYELLOW,0);
HH:=MAX1(PB1,PB4,PB6);
LL:=MIN1(PB1,PB4,PB6);
STICKLINE1(ISUP&&C>=HH&&O<LL,O,C,3,0),RGB(255,128,0);
STICKLINE1(ISDOWN&&O>=HH&&C<LL,O,C,3,0),RGB(0,0,255);
ISUP&&H>=HH&&L<LL,SOUND('A');
ISDOWN&&H>=HH&&L<LL,SOUND('C');
补充内容 (2021-6-10 12:33):
再帮忙加一个盘整过滤模型 |
|