请教一个问题 [文华财经]
- 咨询内容:
老师请把下面程序转化成文化码:
N-3;
l2:=if(c<ref(c,1),
if(ref(l,1)>ref(l,2),ref(l,2),
if(ref(l,1)>ref(l,3),ref(l,3),
if(ref(l,1)>ref(l,4),ref(l,4),码
if(ref(l,1)>ref(l,5),ref(l,5),
if(ref(l,1)>ref(l,6),ref(l,6),
if(ref(l,1)>ref(l,7),ref(l,7),
if(ref(l,1)>ref(l,8),ref(l,8),c))))))),c);
l3:=if(c<ref(c,1),
if(l2>ref(l,3),ref(l,3),
if(l2>ref(l,4),ref(l,4),
if(l2>ref(l,5),ref(l,5),
if(l2>ref(l,6),ref(l,6),
if(l2>ref(l,7),ref(l,7),
if(l2>ref(l,8),ref(l,8),
if(l2>ref(l,9),ref(l,9),c))))))),c);
s:=bARSLAST(l3<l);
sl3:=ref(l3,s);
前低:sl3,POINTDOT,color00ff00;
h2:=if(c>ref(c,1),
if(ref(h,1)<ref(h,2),ref(h,2),
if(ref(h,1)<ref(h,3),ref(h,3),
if(ref(h,1)<ref(h,4),ref(h,4),
if(ref(h,1)<ref(h,5),ref(h,5),
if(ref(h,1)<ref(h,6),ref(h,6),
if(ref(h,1)<ref(h,7),ref(h,7),
if(ref(h,1)<ref(h,8),ref(h,8),c))))))),c);
h3:=if(c>ref(c,1),
if(h2<ref(h,3),ref(h,3),
if(h2<ref(h,4),ref(h,4),
if(h2<ref(h,5),ref(h,5),
if(h2<ref(h,6),ref(h,6),
if(h2<ref(h,7),ref(h,7),
if(h2<ref(h,8),ref(h,8),
if(h2<ref(h,9),ref(h,9),c))))))),c);
s1:=bARSLAST(h3>h);
sh3:=ref(h3,s1);
前高:sh3,coloryellow,POINTDOT;
cf:=ref(sh3,1)>=ref(c,1)and c>sh3;
cfs:=BARSLAST(cf);
v3:=if(c>sl3,ref(sh3,cfs)-sl3,9*1000);
持仓:n*10*0.02/v3,ColorFF0080,POINTDOT;
w22:wma(C,22),ColorFF4F33;
w26:wma(C,26),colorwhite;
w55:wma(c,55),ColorFFbCFf;
w110:wma(c,110),Color00B200;
w220:wMA(C,220),Color004DFF;
wma(C,8 ),ColorFFFF80;
wma(C,30),ColorFF00FF;
wma(C,10),colorFFf100;
wma(C,35),ColorFF43FF;
wma(C,12),colorFFa500;
wma(C,40),ColorFF65FF;
wma(C,15),ColorFF9500;
wma(C,45),ColorFF80FF;
wma(C,18),ColorFF8000;
wma(C,50),ColorFF9FFF;
w26,colorwhite;
w55,ColorFFbCFf;
w110,Color00B200;
w220,Color004DFF;
DRAWLINE(c>=sl3,sl3,c<sl3,sl3,0),color00ff00,linethick2;
DRAWLINE(sh3>c,sh3,c>sh3,sh3,0),coloryellow,linethick2; - 文华技术人员:
修改如下:
N:=3;L2:=IF(C<REF(C,1), IF(REF(L,1)>REF(L,2),REF(L,2), IF(REF(L,1)>REF(L,3),REF(L,3), IF(REF(L,1)>REF(L,4),REF(L,4), IF(REF(L,1)>REF(L,5),REF(L,5), IF(REF(L,1)>REF(L,6),REF(L,6), IF(REF(L,1)>REF(L,7),REF(L,7), IF(REF(L,1)>REF(L,8),REF(L,8),C))))))),C);L3:=IF(C<REF(C,1), IF(L2>REF(L,3),REF(L,3), IF(L2>REF(L,4),REF(L,4), IF(L2>REF(L,5),REF(L,5), IF(L2>REF(L,6),REF(L,6), IF(L2>REF(L,7),REF(L,7), IF(L2>REF(L,8),REF(L,8), IF(L2>REF(L,9),REF(L,9),C))))))),C);S:=BARSLAST(L3<L);SL3:=REF(L3,S);QL:SL3,POINTDOT;
H2:=IF(C>REF(C,1), IF(REF(H,1)<REF(H,2),REF(H,2), IF(REF(H,1)<REF(H,3),REF(H,3), IF(REF(H,1)<REF(H,4),REF(H,4), IF(REF(H,1)<REF(H,5),REF(H,5), IF(REF(H,1)<REF(H,6),REF(H,6), IF(REF(H,1)<REF(H,7),REF(H,7), IF(REF(H,1)<REF(H,8),REF(H,8),C))))))),C);H3:=IF(C>REF(C,1), IF(H2<REF(H,3),REF(H,3), IF(H2<REF(H,4),REF(H,4), IF(H2<REF(H,5),REF(H,5), IF(H2<REF(H,6),REF(H,6), IF(H2<REF(H,7),REF(H,7), IF(H2<REF(H,8),REF(H,8), IF(H2<REF(H,9),REF(H,9),C))))))),C);S1:=BARSLAST(H3>H);SH3:=REF(H3,S1);QH:SH3,COLORYELLOW,POINTDOT;
CF:=REF(SH3,1)>=REF(C,1) AND C>SH3;CFS:=BARSLAST(CF);V3:=IF(C>SL3,REF(SH3,CFS)-SL3,9*1000);CC:N*10*0.02/V3,POINTDOT;
W22:EMA2(C,22);W26:EMA2(C,26);W55:EMA2(C,55);W110:EMA2(C,110);W220:EMA2(C,220);EMA2(C,8 );EMA2(C,30);EMA2(C,10);EMA2(C,35);EMA2(C,12);EMA2(C,40);EMA2(C,15);EMA2(C,45);EMA2(C,18);EMA2(C,50);W26;W55;W110;W220;
DRAWTRENDLINE(C>=SL3,SL3,C<SL3,SL3,COLORRED);DRAWTRENDLINE(SH3>C,SH3,C>SH3,SH3,COLORYELLOW); - 文华客服:
指标加载后,看不清楚,K线都挤在一起
- 网友回复:
是什么原因啊?
- 网友回复:
找到CC那一行,改为如下形式再加载
CC:=N*10*0.02/V3,POINTDOT;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容