[求助]在通达信用的指标如何转在赢智WH3上用 [文华财经]
- 咨询内容:
SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);
SR2:=FILTER(SR1,10);
SR3:=BACKSET(SR2,10+1);
HH:=FILTER(SR3,10);
前高:=REF(H,BARSLAST(HH));
DRAWICON(CROSS(C,前高),L-0.2,9);
DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));
DRAWBAND(MA(CLOSE,60),RGB(55,0,0),MA(CLOSE,120),RGB(0,91,0));
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
前高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;
STICKLINE(C,前高位,前高位,8,0),COLORYELLOW;
- 文华技术人员:
DRAWBAND函数是什么意思?
除了含有该函数的这两句,其他修改如下:
SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);
SR2:=FILTER(SR1,10);
SR3:=BACKSET(SR2,10+1);
HH:=FILTER(SR3,10);
QG:=REF(H,BARSLAST(HH));
DRAWICON(CROSS(C,QG),L-0.2,9);
//DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));//DRAWBAND(MA(CLOSE,60),RGB(55,0,0),MA(CLOSE,120),RGB(0,91,0));
H;
L;
O;
C;
MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
QGW:REF(C,BARSLAST(HD)),COLORRED;
STICKLINE(C,QGW,QGW,COLORYELLOW,0);
- 文华客服:
画出带状线.
用法:DRAWBAND(VAL1,COLOR1,VAL2,COLOR2),当VAL1>VAL2时,在VAL1和VAL2之间填充COLOR1;当VAL1<VAL2时,填充COLOR2,这里的颜色均使用RGB函数计算得到。
例如:DRAWBAND(OPEN,RGB(0,224,224),CLOSE,RGB(255,96,96)); - 网友回复:
DRAWBAND这两句,改写如下,您看看是否符合
STICKLINE(MA(C,5)>MA(C,10),MA(C,5),MA(C,10),RGB(155,50,50),0);
STICKLINE(MA(C,5)<=MA(C,10),MA(C,5),MA(C,10),RGB(83,123,68),0);
STICKLINE(MA(CLOSE,60)>MA(CLOSE,120),MA(C,60),MA(C,120),RGB(55,0,0),0);
STICKLINE(MA(CLOSE,60)<=MA(CLOSE,120),MA(C,60),MA(C,120),RGB(0,91,0),0);仅供参考
- 网友回复:
问题是这句如何改???
DRAWKLINE(H,O,L,C);
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容