龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2019-1-3 11:19

大智慧压力支撑主图指标公式[大智慧公式]

[code]
input:P1(5,0,999,1),p2(10,0,999,1),p3(20,0,999,1),p4(30,0,999,1),p5(60,0,999,1),p6(120,0,999,1),p7(250,0,999,1);
MA5:MA(CLOSE,P1);
MA10:MA(CLOSE,P2);
MA20:MA(CLOSE,P3);
MA30:MA(CLOSE,P4);
MA60:MA(CLOSE,P5);
MA120:MA(CLOSE,P6);
MA250:MA(CLOSE,P7);
partline(MA5,MA5>=ref(MA5,1),rgb(255,0,0)),LINETHICK1;
partline(MA20,MA20>=ref(MA20,1),rgb(255,0,0)),LINETHICK1;
partline(MA30,MA30>=ref(MA30,1),rgb(255,0,0)),LINETHICK2;

V5:=MA(VOL,5);
V13:=MA(VOL,13);
VV:=V>V5 and V>V13 and V5>V13 and V>V5*1.1 and V5>V13*1.1;
Ss:=MA5>ref(MA5,1) and MA20>ref(MA20,1) and cross(MA5,MA20);
CC:=C>MA5 and c>MA10 and c>MA20 ;{本文 来源:'www.328588.com '}
ZF:=(c-ref(C,5))/ref(C,5)<0.04 and (c-MA5)/MA5>0 and (c-MA5)/MA5<0.04;

TP1:=Ss and CC and VV ;
TP:= FILTER( TP1 ,15);
STICKLINE(TP,C,O,4,0),Color00CCFF;
DRAWTEXT(TP,l*0.98,'可买了'),colorred;

买线:=ZIG(3,10);
卖线:=MA(买线,3);
BU:=cross(买线,卖线);
SEL:=cross(卖线,买线);
DRAWTEXT(bu,l*0.99,'买'),LINETHICK1,color00aaff;
DRAWTEXT(sel,h*1.01,'卖'),LINETHICK1,color00ff00;

{可调节KDJ:压力支撑线参数 n=1 100 9,m1=1 100 3,m2=1 100 3}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=3*K12-2*D12;
RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
压力位:IF(CROSS(j24,j),H,ref(H,BARSLAST(CROSS(j24,j)))),PRECIS2,coloryelLOW,LINETHICK3,pointdot;
支撑位:IF(CROSS(j,j24),L,ref(L,BARSLAST(CROSS(j,j24)))),PRECIS2,COLORred,LINETHICK3,pointdot;
{45度异动}
x1:=(C+L+H)/3;
bb13:=atan(eMA(x1,13)-ref(eMA(x1,13),1))*3.1416*10;
eMA8:=eMA(c,8);
DRAWTEXT(filter(bb13>1 and eMA(x1,13)>ref(eMA(x1,8),1),10),
eMA8,'∠45上升'),coloryelLOW;
{可视范围内最高价减今日收盘绝对幅度}
Ao:HHVall(o),LINETHICK0;
AC:HHVall(c),LINETHICK0;
ah:=if(ao>=ac,ao,ac);
ZFjd:ah-c,LINETHICK0;
ZFb:(ah-c)/c*100,LINETHICK0;
NN:= DISPSTATUS=2;
DRAWTEXT(nn,ah*0.98,'与最高开收盘差值: '+NUMTOSTRN(zfjd,2)+'元'),ALIGN2,Color00dd00,VALIGN0;
DRAWTEXT(nn,ah*0.95,'与最高开收盘比例: '+NUMTOSTRN(zfb,2)+'%'),ALIGN2,Color00dd00,VALIGN0;
[/code]

页: [1]