求助如何统计数据 [文华财经]
-
咨询内容:
RSV:= ((C+H+L)/3-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
FASTK:=SMA(RSV,3,1);
K:=SMA(FASTK,3,1);
D:=SMA(K,3,1);
KD:=3*(K-D);
//STICKLINE1(C>0,0,KD,4,1),RGB(0,150,0);
//
PT := REF(HIGH,1)-REF(LOW,1);
CDP := (REF(HIGH,1) + REF(LOW,1) + REF(CLOSE,1))/3;
AH := MA(CDP + PT,3),COLORRED;
NH :=MA(2*CDP-LOW,3),COLORWHITE;
NL :=MA(2*CDP-HIGH,3),COLORGREEN;
AL := MA(CDP - PT,3),COLORCYAN;
WP:=(NH+NL)/2,COLORWHITE;////////////////
//
DAA:=3;
FYA:=3;
CTA:=1;
PA:=0;
YYA:=3;
AMOUNTA:=AVPRICE*VOL;
NSA:=IF((HHV(ABS(((HHV(CLOSE,DAA)/LLV(CLOSE,DAA))-1)),DAA)>(10/100)),5,DAA);
XXA:=NSA;
MMA:=IF(((PA=0) OR (VOL=0)),MA(CLOSE,XXA),((SUM(AMOUNTA,XXA)/SUM(VOL,XXA))/100))+C*0.012;
M1A:=REF(MMA,1),COLORLIGHTGREEN;
MMY:=IF(((PA=0) OR (VOL=0)),MA(CLOSE,XXA),((SUM(AMOUNTA,XXA)/SUM(VOL,XXA))/100)),COLORRED;
SS1:=EMA(MMY,3),COLORYELLOW,DOT;SS2:=EMA(MMY,41),COLORGREEN;
SS3:=IF(ISCONTRACT('指'&&PERIOD<=7,SS1+191,NULL),COLORYELLOW,DOT;
SS4:=IF(ISCONTRACT('指'&&PERIOD<=7,SS1-191,NULL),COLORYELLOW,DOT;
RSS3:=IF(ISCONTRACT('指'&&PERIOD>7,SS1+500,NULL),COLORYELLOW,DOT;
RSS4:=IF(ISCONTRACT('指'&&PERIOD>7,SS1-500,NULL),COLORYELLOW,DOT;
BB:=EMA(C,3)-SS1;MBB:=EMA(BB,5);
N1:=BARSLAST(BB>MBB&&O>=WP);
N2:=BARSLAST(BB<MBB&&O<=WP);
CROSSDOWN(N1,N2),BPK;
CROSS(N1,N2),SPK;
AUTOFILTER;QL:IF(CROSSDOWN(N1,N2),-40,-50),RGB(150,0,0),LINETHICK3;
QH:IF(CROSS(N1,N2),40,50),RGB(150,0,0),LINETHICK3;
LL:=VALUEWHEN(CROSSDOWN(N1,N2),O);
HH:=VALUEWHEN(CROSS(N1,N2),O);
//DRAWNUMBER1(CROSSDOWN(N1,N2),-40,LL,0),FONTSIZE18,ALIGN1,VALIGN2,COLORWHITE;
//DRAWNUMBER1(CROSS(N1,N2),40,HH,0),FONTSIZE18,ALIGN1,VALIGN0,COLORWHITE;DRAWNUMBER1(CROSSDOWN(N1,N2),-45,HH-LL,0),FONTSIZE18,ALIGN1,VALIGN0,RGB(150,0,0);
DRAWNUMBER1(CROSS(N1,N2),45,HH-LL,0),FONTSIZE18,ALIGN1,VALIGN2,RGB(150,0,0);DRAWNUMBER1(N1>N2&&ISLASTBAR&&KD<0,10,HH-C,0),FONTSIZE25,ALIGN0,VALIGN2,RGB(150,0,0);
DRAWNUMBER1(N1<N2&&ISLASTBAR&&KD<0,10,C-LL,0),FONTSIZE25,ALIGN0,VALIGN2,RGB(150,0,0);
DRAWNUMBER1(N1>N2&&ISLASTBAR&&KD>0,-10,HH-C,0),FONTSIZE25,ALIGN0,VALIGN0,RGB(150,0,0);
DRAWNUMBER1(N1<N2&&ISLASTBAR&&KD>0,-10,C-LL,0),FONTSIZE25,ALIGN0,VALIGN0,RGB(150,0,0);DRAWTEXT(ISLASTBAR&&KD<0,10,'利= '0),RGB(0,125,0),ALIGN2,VALIGN2,FONTSIZE23;
DRAWTEXT(ISLASTBAR&&KD>0,-10,'利= '0),RGB(0,125,0),ALIGN2,VALIGN0,FONTSIZE23;
从某个时间开始统计所有A加B之和.如何编写?
文件名:睿期大户室截图20181208175137.jpg来源:程序化99
-
文华技术人员:
某个时间,需要用确定的条件来定位的,也就是给一个统计A B之后的起始点
您整理下思路来源: WWW.CXH99.COM
-
文华客服:
比如从20160101开始,或者前1000周期开始.
-
网友回复:
分析了下指标,添加下面指标即可
SUM(QL+QH,1000),NODRAW; - 网友回复: 老师我的要求是:比如8周期它们的和应当是48+(-118)+(-54)+(-26)=-150
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 或微信:cxhjy888 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容