开平仓信号出现有闪动 [金字塔]
- 咨询内容:
如下代码开平仓信号出现有闪动.怎样改为不闪.耍求用固定轮模式下单.
IF ((((HOLDING > 0) AND COND111) AND (TIME >= TRADEBEGIN)) AND (TIME <= LASTTRADE)) THEN
BEGIN
DTFS1:=SELL(1,LOTS,LIMITR,(MIN(OPEN,(MYAVGENTERPRICE - FAILSAVESTOPLOSS)) - (SPLITRATE * MINDIFF)),1);
DTFS2:=BUYSHORT(1,LOTS,LIMITR,(MIN(OPEN,(MYAVGENTERPRICE - FAILSAVESTOPLOSS)) - (SPLITRATE * MINDIFF)),1);
END
ELSE
BEGIN
IF ((((HOLDING < 0) AND COND333) AND (TIME >= TRADEBEGIN)) AND (TIME <= LASTTRADE)) THEN
BEGIN
KTFS1:=SELLSHORT(1,LOTS,LIMITR,(MAX(OPEN,(MYAVGENTERPRICE + FAILSAVESTOPLOSS)) + (SPLITRATE * MINDIFF)),1);
KTFS2:=BUY(1,LOTS,LIMITR,(MAX(OPEN,(MYAVGENTERPRICE + FAILSAVESTOPLOSS)) + (SPLITRATE * MINDIFF)),1);
END - 金字塔客服:
IF ref(((((HOLDING > 0) AND COND111) AND (TIME >= TRADEBEGIN)) AND (TIME <= LASTTRADE)),1) THEN
BEGIN
DTFS1:=SELL(1,LOTS,LIMITR,(MIN(OPEN,(MYAVGENTERPRICE - FAILSAVESTOPLOSS)) - (SPLITRATE * MINDIFF)),1);
DTFS2:=BUYSHORT(1,LOTS,LIMITR,(MIN(OPEN,(MYAVGENTERPRICE - FAILSAVESTOPLOSS)) - (SPLITRATE * MINDIFF)),1);
END
ELSE
BEGIN
IF ref(((((HOLDING < 0) AND COND333) AND (TIME >= TRADEBEGIN)) AND (TIME <= LASTTRADE)),1) THEN
BEGIN
KTFS1:=SELLSHORT(1,LOTS,LIMITR,(MAX(OPEN,(MYAVGENTERPRICE + FAILSAVESTOPLOSS)) + (SPLITRATE * MINDIFF)),1);
KTFS2:=BUY(1,LOTS,LIMITR,(MAX(OPEN,(MYAVGENTERPRICE + FAILSAVESTOPLOSS)) + (SPLITRATE * MINDIFF)),1);
END - 用户回复:
增加了REF出现错误.请指教!
- 网友回复:
什么错误?
- 网友回复:
增加了REF出现错误.请指教!
此主题相关图片如下:7777.jpg
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容