首页 > > 详细

调试同花顺选股公式、MT4策略公式调试、进场减仓指标公式源码(分时图) 强弱界线-


进场减仓指标公式源码(分时图)

input:n1(5,0,30),n2(10,0,50),n(5,0,30);
rc:=DYNAINFO( 3);
s2:=SMA(CLOSE,2,1);
s6:=SMA(CLOSE,6,1);
dk:=2*(s2-s6);
{以下是主图青红柱线}
STICKLINE(dk>0,rc,rc+dk,0,1),COLORRED;
STICKLINE(dk 90),(AA * 0.998),AA),LINETHICK2,COLORYELLOW;
下支撑:IF((ZJ6 REF(SMA(zc2,3,1),1),zc2),ColorB400FF,LINETHICK2;

{以下是机构动向}
VAR1:=MA(CLOSE,5);
A线:=MA(CLOSE,13);
VAR5:=MA(CLOSE,34);
VAR6:=MA(CLOSE,60);
B线:=(((EMA(CLOSE,5) * 7) + (EMA(CLOSE,5) * 3)) / 10);
C线:=DMA(EMA(CLOSE,12),(SUM((VOL / CAPITAL),5) / 3));
VARA:=REF(CLOSE,1);
VARE:=((SMA(MAX((CLOSE - VARA),0),6,1) / SMA(ABS((CLOSE - VARA)),6,1)) * 100);
DRAWTEXT(((DATE > 700101) AND CROSS(84,VARE)),HIGH,☆减仓),COLORYELLOW;
VARF:=((((2 * CLOSE) + HIGH) + LOW) / 4);
VAR10:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
VAR12:=EMA((((VARF - VAR10) / (VAR11 - VAR10)) * 100),6);
VAR13:=EMA(((0.667 * REF(VAR12,1)) + (0.333 * VAR12)),4);
VAR14:=LLV(LOW,120);
VAR15:=HHV(HIGH,120);
VAR16:=(VAR15 - VAR14);
DRAWTEXT(IF((((((COUNT((CLOSE 0.3) AND COUNT((VAR12 > VAR13),3)) AND
(REF(LOW,1) = LLV(LOW,120))) AND (CLOSE > OPEN)),1,0),LOW,★出场),COLORYELLOW;

T:=BARSCOUNT(CLOSE);
TP:=FILTER(CLOSE>=HHV(HIGH,T) AND VOL>MA(VOL,OPENMINUTES(TIME))*2 AND DYNAINFO(17)>1 AND TIME0>39600,240) ;
DRAWTEXT(TP,LOW,★突破),COLORred;
TA:=IF((HHV(H,T)-LLV(L,T))/LLV(L,T)0.02;
BU:=BARSLAST(CLOSE=HHV(CLOSE,2000));
SE:=BARSLAST(CLOSE=LLV(CLOSE,2000));
DRAWICON((CROSS(SE,BU) AND AN AND SE-BU>40) ,OPEN*0.99,4);
DRAWTEXT((CROSS(SE,BU) AND AN AND SE-BU>40) ,OPEN*0.98,\n追\n涨),colorred;
//////////////
hh:=DYNAINFO(5);
//最高
q:=DATACOUNT;
LL:=DYNAINFO(6);
//最低
r:=DYNAINFO(3);
f:=MAX(hh-r,r-LL);
ff:=f/r*100;
//q1:=r-f*1.01;
//q2:=r-2*f*1.0125;
q1:=IF(ff93000,SUM((CLOSE=BIDPRICE(1))*VOL,0),q2),LINETHICK0;
//委买1成交量
a2:=IF(TIME>93000,SUM(BIDVOL(1),0),q2),LINETHICK0;
//
b1:=IF(TIME>93000,SUM((CLOSE=ASKPRICE(1))*VOL,0),q2),LINETHICK0;
//委卖1成交量
b2:=IF(TIME>93000,SUM(ASKVOL(1),0),q2),LINETHICK0;
//委卖1挂单
b8:=IF(TIME>93000,SUM(ASKVOL(2),0),q2),LINETHICK0;
//委卖2挂单
b9:=IF(TIME>93000,SUM(ASKVOL(3),0),q2),LINETHICK0;
//委卖3挂单
Var1:=(b2)*10 ;
Var2:=((b8+b9)/b2)*10 ;
r:=Var1;
rh:=HHV(r,0);
rL:=LLV(r,0);
rb:=(q1-q2)/(rh-rL);
ry:=(q1+q2-rb*(rh+rL))/2;
dp:r*rb[q]+ry[q],COLORred,LINETHICK2;
//////////
////////
q2h:IF(ff=0 or CLOSE<0,q2h,q2l),COLORGRAY;
////////
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
WEN:=3*SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5,1),3,1);
J1:=SMA(RSV1,3,1);
J2:=SMA(J1,3,1);
W1:=SMA(RSV2,3,1);
W2:=SMA(W1,3,1);
G1:=w1,LINETHICK2,COLORWHITE;
G2:=w2,LINETHICK2,COLORCYAN;
强弱界线:=49,POINTDOT,LINETHICK3,COLOR9966CC;
警戒线:=89.5,POINTDOT,LINETHICK1;
见顶信号:=95,COLORCCFF00;
底线:=5;
趋势线:=WEN,LINETHICK2,COLORMAGENTA;
局势:=EMA(趋势线,10);
aaa4:=趋势线;
aaa5:=局势;
mh00:=HHV(MAX(aaa4,aaa5),0);
mL00:=LLV(MIN(aaa5,aaa4),0);
mb00:=(q2h-q2l)/(mH00[q]-mL00[q]);
my00:=(q2h+q2l-mb00*(mH00[q]+mL00[q]))/2;
csx:=aaa4*mb00+my00;


 

联系我们 - QQ: 88652583
© 2014 www.93stock.com
代写选股公式网!
声明:警惕假冒分子冒充本站提供证券咨询服务,选股公式网为非证券咨询机构,本站不提供有关股评、投资分析报告、股市预测,证券咨询等服务。本站仅提供股票、期货、黄金、外汇的软件技术交流与分享。本站文章为互联网文章,其仅供参考,并不构成投资建议。