麻烦修改一下模型吧 [文华财经]
- 咨询内容:
TYA:=((((((((((LOW + HIGH) + CLOSE) + REF(CLOSE,1)) + REF(LOW,1)) + REF(HIGH,1)) + REF(CLOSE,2)) + REF(LOW,2)) + REF(HIGH,2)) / 9));
HDA:=(((((HHV(TYA,(17 * 2)) + REF(HHV(TYA,(17 * 2)),1)) + REF(HHV(TYA,(17 * 2)),2)) + REF(HHV(TYA,(17 * 2)),3)) + REF(HHV(TYA,(17 * 2)),4)) / 5);
LDA:=(((((LLV(TYA,(17 * 2)) + REF(LLV(TYA,(17 * 2)),1)) + REF(LLV(TYA,(17 * 2)),2)) + REF(LLV(TYA,(17 * 2)),3)) + REF(LLV(TYA,(17 * 2)),4)) / 5);
A1:=(REF(HDA,1) = (HHV(TYA,((2 * 21) + 0))));
A2:=(REF(LDA,1) = (LLV(TYA,((2 * 21) + 0))));
A:=(REF(HDA,BARSLAST(A1)));
B:=(REF(LDA,BARSLAST(A2)));
T1:=((BARSLAST(A1) < BARSLAST(A2)) && (NOT(A1)));
T2:=((BARSLAST(A1) > BARSLAST(A2)) && (NOT(A2)));
BF:=IF(T1,A,A);
HH:=MA(BF,1);
BG:=IF(T2,B,B);
LL:=MA(BG,1);HH1:=(BARSLAST((CLOSE > (REF(HH,1) * 1.003))));
LL1:=(BARSLAST((CLOSE < (REF(LL,1) * 0.997))));
PARTLINE1((HH1 < LL1),LL),COLORRED;
PARTLINE1((HH1 > LL1),HH),COLORGREEN;
DRAWTEXT(CROSS(HH1,LL1),HH,'空头');
DRAWTEXT(CROSS(LL1,HH1),LL,'多头');
STICKLINE((HH1 < LL1),OPEN,CLOSE,7,0),COLORRED;
STICKLINE((HH1 < LL1),HIGH,CLOSE,1,0),COLORRED;
STICKLINE((HH1 < LL1),OPEN,LOW,1,0),COLORRED;
STICKLINE((HH1 > LL1),OPEN,CLOSE,7,0),COLORGREEN;
STICKLINE((HH1 > LL1),HIGH,CLOSE,1,0),COLORGREEN;
STICKLINE((HH1 > LL1),OPEN,LOW,1,0),COLORGREEN;CROSS(HH1,LL1),SPK;CROSS(LL1,HH1),BPK;AUTOFILTER;这个模型加一个30均线 30均线以上红色开多 绿色改为黄色 是平仓信号 30均线一下绿色开空 红色改为黄色是平仓信号 谢谢 - 文华技术人员:
TYA:=((((((((((LOW + HIGH) + CLOSE) + REF(CLOSE,1)) + REF(LOW,1)) + REF(HIGH,1)) + REF(CLOSE,2)) + REF(LOW,2)) + REF(HIGH,2)) / 9));
HDA:=(((((HHV(TYA,(17 * 2)) + REF(HHV(TYA,(17 * 2)),1)) + REF(HHV(TYA,(17 * 2)),2)) + REF(HHV(TYA,(17 * 2)),3)) + REF(HHV(TYA,(17 * 2)),4)) / 5);
LDA:=(((((LLV(TYA,(17 * 2)) + REF(LLV(TYA,(17 * 2)),1)) + REF(LLV(TYA,(17 * 2)),2)) + REF(LLV(TYA,(17 * 2)),3)) + REF(LLV(TYA,(17 * 2)),4)) / 5);
A1:=(REF(HDA,1) = (HHV(TYA,((2 * 21) + 0))));
A2:=(REF(LDA,1) = (LLV(TYA,((2 * 21) + 0))));
A:=(REF(HDA,BARSLAST(A1)));
B:=(REF(LDA,BARSLAST(A2)));
T1:=((BARSLAST(A1) < BARSLAST(A2)) && (NOT(A1)));
T2:=((BARSLAST(A1) > BARSLAST(A2)) && (NOT(A2)));
BF:=IF(T1,A,A);
HH:=MA(BF,1);
BG:=IF(T2,B,B);
LL:=MA(BG,1);HH1:=(BARSLAST((CLOSE > (REF(HH,1) * 1.003))));
LL1:=(BARSLAST((CLOSE < (REF(LL,1) * 0.997))));
PARTLINE1((HH1 < LL1),LL),COLORRED;
PARTLINE1((HH1 > LL1),HH),COLORGREEN;
DRAWTEXT(CROSS(HH1,LL1),HH,'空头');
DRAWTEXT(CROSS(LL1,HH1),LL,'多头');
STICKLINE((HH1 < LL1),OPEN,CLOSE,7,0),COLORRED;
STICKLINE((HH1 < LL1),HIGH,CLOSE,1,0),COLORRED;
STICKLINE((HH1 < LL1),OPEN,LOW,1,0),COLORRED;
STICKLINE((HH1 > LL1),OPEN,CLOSE,7,0),COLORGREEN;
STICKLINE((HH1 > LL1),HIGH,CLOSE,1,0),COLORGREEN;
STICKLINE((HH1 > LL1),OPEN,LOW,1,0),COLORGREEN;MA30:MA(C,30);C>MA30&&HH1 < LL1,BK;HH1 > LL1,SP;C<MA30&&HH1 > LL1,SK;HH1 < LL1,BP;AUTOFILTER; - 文华客服:
还的麻烦你修改一下 K线颜色加个黄色 把这个模型加一个30均线 30均线以上红色开多 绿色K线平仓 平仓后绿色K线改为黄色K线 30均线以下绿色K线开空 红色K线平仓 平仓后改为黄色K线 谢谢
- 网友回复:
参考:
TYA:=((((((((((LOW + HIGH) + CLOSE) + REF(CLOSE,1)) + REF(LOW,1)) + REF(HIGH,1)) + REF(CLOSE,2)) + REF(LOW,2)) + REF(HIGH,2)) / 9));
HDA:=(((((HHV(TYA,(17 * 2)) + REF(HHV(TYA,(17 * 2)),1)) + REF(HHV(TYA,(17 * 2)),2)) + REF(HHV(TYA,(17 * 2)),3)) + REF(HHV(TYA,(17 * 2)),4)) / 5);
LDA:=(((((LLV(TYA,(17 * 2)) + REF(LLV(TYA,(17 * 2)),1)) + REF(LLV(TYA,(17 * 2)),2)) + REF(LLV(TYA,(17 * 2)),3)) + REF(LLV(TYA,(17 * 2)),4)) / 5);
A1:=(REF(HDA,1) = (HHV(TYA,((2 * 21) + 0))));
A2:=(REF(LDA,1) = (LLV(TYA,((2 * 21) + 0))));
A:=(REF(HDA,BARSLAST(A1)));
B:=(REF(LDA,BARSLAST(A2)));
T1:=((BARSLAST(A1) < BARSLAST(A2)) && (NOT(A1)));
T2:=((BARSLAST(A1) > BARSLAST(A2)) && (NOT(A2)));
BF:=IF(T1,A,A);
HH:=MA(BF,1);
BG:=IF(T2,B,B);
LL:=MA(BG,1);HH1:=(BARSLAST((CLOSE > (REF(HH,1) * 1.003))));
LL1:=(BARSLAST((CLOSE < (REF(LL,1) * 0.997))));
PARTLINE1((HH1 < LL1),LL),COLORRED;
PARTLINE1((HH1 > LL1),HH),COLORGREEN;
DRAWTEXT(CROSS(HH1,LL1),HH,'空头');
DRAWTEXT(CROSS(LL1,HH1),LL,'多头');MA30:MA(C,30);C>MA30&&HH1 < LL1,BK;HH1 > LL1,SP;C<MA30&&HH1 > LL1,SK;HH1 < LL1,BP;STICKLINE(BKVOL>0,C,O,COLORRED,0);STICKLINE(SKVOL>0,C,O,COLORGREEN,0);STICKLINE(BKVOL=0&&SKVOL=0,C,O,COLORYELLOW,0);DRAWLINE(BKVOL>0,H,BKVOL>0,L,COLORRED);DRAWLINE(SKVOL>0,H,SKVOL>0,L,COLORGREEN);DRAWLINE(BKVOL=0&&SKVOL=0,H,BKVOL=0&&SKVOL=0,L,COLORYELLOW);AUTOFILTER; - 网友回复: 还是不行 还的麻烦你修改一下 K线颜色加个黄色 把这个模型加一个30均线 30均线以上红色开多 绿色K线平仓 平仓后后续绿色K线改为黄色K线 30均线以下绿色K线开空 红色K线平仓 平仓后后续红色K线改为黄色K线 谢谢
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容