老师这个为什么通不过 [金字塔]
-
咨询内容:
input:N(3,1,6,1),P(2,1,6,1);
DRAWTEXTEX(((((TIME = 150000) OR (TIME = 113000)) AND (MONTH = 2)) AND (DAY > 27)),0,0,0,'
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,0,'使用本信号前请认真阅读使用说明:');
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,16,;
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,32,;
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,64,;
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,80,;
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,96,;
M:=IF((N = 3),198,IF((N = 2),180,IF((N = 1),171,IF((N = 4),252,IF((N = 5),270,288)))));
MP:=CEILING(((100000 / CLOSE) / MULTIPLIER));
UP1:=(((HHV(HIGH,M) - LLV(LOW,M)) * 0.618) + LLV(LOW,M));
DN1:=(((HHV(HIGH,M) - LLV(LOW,M)) * 0.382) + LLV(LOW,M));
UN:=((UP1 - DN1) / DN1);
PD:=((UP1 + DN1) / 2);
UP:=IF((UN <= 0.005),UP1,(PD * (1 + 0.0025)));
DN:=IF((UN <= 0.005),DN1,(PD * (1 - 0.0025)));
PARTLINE((CLOSE > UP),UP,255,2,0);
PARTLINE((CLOSE < UP),UP,65280,2,0);
PARTLINE((CLOSE > DN),DN,255,2,0);
PARTLINE((CLOSE < DN),DN,65280,2,0);
DRAWTEXTEX((MP = 1),0,0,60,'基本配置1手');
DRAWTEXTEX((MP = 2),0,0,60,'基本配置2手');
DRAWTEXTEX((MP = 3),0,0,60,'基本配置3手');
DRAWTEXTEX((MP = 4),0,0,60,'基本配置4手');
DRAWTEXTEX((MP = 5),0,0,60,'基本配置5手');
DRAWTEXTEX((MP = 6),0,0,60,'基本配置6手');
BT0:=BARSLAST((CLOSE < UP));
ST0:=BARSLAST((CLOSE > DN));
B1:=((((TIME <> 150000) AND (CLOSE > OPEN)) AND ALL((CLOSE > UP),BT0)) AND (BT0 >= P));
S1:=((((TIME <> 150000) AND (CLOSE < OPEN)) AND ALL((CLOSE < DN),ST0)) AND (ST0 >= P));
B11:=SFILTER(B1,S1);
S11:=SFILTER(S1,B1);
BT1:=BARSLAST(B11);
ST1:=BARSLAST(S11);
QB:=REF(LLV(CLOSE,(BT1 - ST1)),BT1);
QS:=REF(HHV(CLOSE,(ST1 - BT1)),ST1);
B2:=(B11 AND (LLV(CLOSE,ST1) > QB));
S2:=(S11 AND (HHV(CLOSE,BT1) < QS));
B21:=SFILTER(B2,S2);
S21:=SFILTER(S2,B2);
BT2:=BARSLAST(B21);
ST2:=BARSLAST(S21);
B3:=((((((ST2 < BT2) AND ALL((CLOSE > UP),P)) AND (CLOSE > OPEN)) AND (((REF(CLOSE,ST2) - LLV(LOW,ST2)) / LLV(LOW,ST2)) > 0.0168)) AND ALL(((CLOSE - LLV(LOW,ST2)) > ((REF(CLOSE,ST2) - LLV(LOW,ST2)) * 0.382)),2)) AND (COUNT((((((ST2 < BT2) AND ALL((CLOSE > UP),P)) AND (CLOSE > OPEN)) AND (((REF(CLOSE,ST2) - LLV(LOW,ST2)) / LLV(LOW,ST2)) > 0.0168)) AND ALL(((CLOSE - LLV(LOW,ST2)) > ((REF(CLOSE,ST2) - LLV(LOW,ST2)) * 0.382)),2)),ST2) = 1));
S3:=((((((ST2 > BT2) AND ALL((CLOSE < DN),P)) AND (CLOSE < OPEN)) AND (((HHV(HIGH,BT2) - REF(CLOSE,BT2)) / REF(CLOSE,BT2)) > 0.0168)) AND ALL(((HHV(HIGH,BT2) - CLOSE) > ((HHV(HIGH,BT2) - REF(CLOSE,BT2)) * 0.382)),2)) AND (COUNT((((((ST2 > BT2) AND ALL((CLOSE < DN),P)) AND (CLOSE < OPEN)) AND (((HHV(HIGH,BT2) - REF(CLOSE,BT2)) / REF(CLOSE,BT2)) > 0.0168)) AND ALL(((HHV(HIGH,BT2) - CLOSE) > ((HHV(HIGH,BT2) - REF(CLOSE,BT2)) * 0.382)),2)),BT2) = 1));
B31:=SFILTER(B3,(S3 OR S21));
S31:=SFILTER(S3,(B3 OR B21));
B4:=SFILTER((B21 OR B31),(S21 OR S31));
S4:=SFILTER((S21 OR S31),(B21 OR B31));
BT4:=BARSLAST(B4);
ST4:=BARSLAST(S4);
B5:=(B11 AND (LLV(CLOSE,ST1) > QB));
S5:=(S11 AND (HHV(CLOSE,BT1) < QS));
B51:=SFILTER(B5,((S5 OR S21) OR S31));
S51:=SFILTER(S5,((B5 OR B21) OR B31));
BT5:=BARSLAST(B51);
ST5:=BARSLAST(S51);
B6:=((((((ST5 < BT5) AND ALL((CLOSE > UP),P)) AND (CLOSE > OPEN)) AND (((REF(CLOSE,ST5) - LLV(LOW,ST5)) / LLV(LOW,ST5)) > 0.0168)) AND ALL(((CLOSE - LLV(LOW,ST5)) > ((REF(CLOSE,ST5) - LLV(LOW,ST5)) * 0.382)),2)) AND (COUNT((((((ST5 < BT5) AND ALL((CLOSE > UP),P)) AND (CLOSE > OPEN)) AND (((REF(CLOSE,ST5) - LLV(LOW,ST5)) / LLV(LOW,ST5)) > 0.0168)) AND ALL(((CLOSE - LLV(LOW,ST5)) > ((REF(CLOSE,ST5) - LLV(LOW,ST5)) * 0.382)),2)),ST5) = 1));
S6:=((((((ST5 > BT5) AND ALL((CLOSE < DN),P)) AND (CLOSE < OPEN)) AND (((HHV(HIGH,BT5) - REF(CLOSE,BT5)) / REF(CLOSE,BT5)) > 0.0168)) AND ALL(((HHV(HIGH,BT5) - CLOSE) > ((HHV(HIGH,BT5) - REF(CLOSE,BT5)) * 0.382)),2)) AND (COUNT((((((ST5 > BT5) AND ALL((CLOSE < DN),P)) AND (CLOSE < OPEN)) AND (((HHV(HIGH,BT5) - REF(CLOSE,BT5)) / REF(CLOSE,BT5)) > 0.0168)) AND ALL(((HHV(HIGH,BT5) - CLOSE) > ((HHV(HIGH,BT5) - REF(CLOSE,BT5)) * 0.382)),2)),BT5) = 1));
B7:=SFILTER(((B4 OR B51) OR B6),((S4 OR S51) OR S6));
S7:=SFILTER(((S4 OR S51) OR S6),((B4 OR B51) OR B6));
BT7:=BARSLAST(B7);
ST7:=BARSLAST(S7);
B8:=(B11 AND (LLV(CLOSE,ST1) > QB));
S8:=(S11 AND (HHV(CLOSE,BT1) < QS));
B81:=SFILTER(B8,(S8 OR S7));
S81:=SFILTER(S7,(B8 OR B7));
B9:=SFILTER((B7 OR B81),(S7 OR S81));
S9:=SFILTER((S7 OR S81),(B7 OR B81));
BT9:=BARSLAST(B9);
ST9:=BARSLAST(S9);
PB:=(((ALL((CLOSE < DN),2) AND (BT9 < ST9)) AND (((REF(CLOSE,BT9) - CLOSE) / CLOSE) >= 0.0158)) AND (COUNT((ALL((CLOSE < DN),2) AND (((REF(CLOSE,BT9) - CLOSE) / CLOSE) >= 0.0158)),BT9) = 1));
PS:=(((ALL((CLOSE > UP),2) AND (BT9 > ST9)) AND (((CLOSE - REF(CLOSE,ST9)) / REF(CLOSE,ST9)) > 0.0158)) AND (COUNT((ALL((CLOSE > UP),2) AND (((CLOSE - REF(CLOSE,ST9)) / REF(CLOSE,ST9)) > 0.0158)),ST9) = 1));
DRAWTEXT(B9,LOW,'多'),COLORRED;
DRAWTEXT((S9 OR S81),(HIGH * 1.001),'空'),COLORGREEN;
DRAWTEXT(PB,LOW,'平多'),COLORCYAN;
DRAWTEXT(PS,(HIGH * 1.001),'平空'),COLORBLUE;
ENTERLONG:B9;
ENTERSHORT:S9;
EXITLONG:(S9 OR PB);
EXITSHORT:(B9 OR PS);
DRAWTEXTEX(B9,0,0,0,'多头信号出现!3分钟K线走完确认');
DRAWTEXTEX(S9,0,0,0,'空头信号出现!3分钟K线走完确认');
DRAWTEXTEX((PB OR S9),0,0,16,'平多信号出现!3分钟K线走完确认');
DRAWTEXTEX((PS OR B9),0,0,16,'平空信号出现!3分钟K线走完确认');{
KD:=; //开多条件
PD:=; //平多条件
KK:=; //开空条件
PK:=; //平空条件
平空:SELLSHORT(PK,1,THISCLOSE); //平空信号
开多:BUY(KD AND HOLDING=0,1,THISCLOSE); //开多信号
平多:SELL(PD,1,THISCLOSE); //平多信号
开空:BUYSHORT(KK AND HOLDING=0,1,THISCLOSE); //开空信号}
{
信号语句排列规则——先平后开
“费率设置”按钮——用于合理设置模型“费率”,以便在图形上正确输出如下帐户信息:持仓:holding,linethick0;
资产:asset,noaxis;
可用现金:cash(0),linethick0;您可以在查看菜单->交易系统模板 中设置仔细需要的模板
} -
金字塔客服:
DRAWTEXTEX(((((TIME = 150000) OR (TIME = 113000)) AND (MONTH = 2)) AND (DAY > 27)),0,0,0,'
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,0,'使用本信号前请认真阅读使用说明:');
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,16,;
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,32,;
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,64,;
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,80,;
DRAWTEXTEX(((WEEKDAY = 1) AND (TIME = 101500)),0,0,96,;这几段代码不完整,你需要找原作者补足
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容