各位金字塔的客服們辛苦了,小弟麻煩大家看看下面程序哪里有問題!謝謝 [金字塔]
- 咨詢內容:
他老提示:語句末尾缺少分號 ,大哥大姐們幫忙看看哪里有問題,謝謝。
DIFF:=EMA(CLOSE,26) - EMA(CLOSE,12);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
EXMA:=EMA(CLOSE,20);
VARIABLE:yin6:=6;
VARIABLE:yin15:=10;
VARIABLE:yin20=20;
VARIABLE:yin30:=30;
VARIABLE:ying50=50;
VARIABLE:yin100=100;
duotou:LAST(CROSS(MACD,0),5,1) AND RANGE(CLOSE,EXMA+2.4,EXMA+4);kongtou:LAST(CROSS(0,MACD),5,1)AND RANGE(EXMA,CLOSE+2.4,CLOSE+4);
IF duotou THEN
BEGIN
BUY(duotou,30%,market ,market+0.2 );
END
SELL( kongtou,0,market ,marke+0.2 );
win:=0;
win6:=0;
win15:=0;
win20:=0;
win30:=0;
win50:=0;
win100:=0;
if holding > 0 and enterbars > 0 then
BEGIN
win:=close-enterprice
if win >= yin6 then
yin6:=win;
win6:=(yin6-win)/yin6*100;
if win >= yin15 then yin15:=win; win15:=(yin15-win)/yin15*100;
if win >= yin20 then yin15:=win; win20:=(yin15-win)/yin20*100;
if win >= yin30 then yin15:=win; win30:=(yin15-win)/yin30*100;
if win >= yin50 then yin15:=win; win50:=(yin15-win)/yin50*100;
if win >= yin100 then yin15:=win; win100:=(yin15-win)/yin100*100;
end
止損:SELL(win<=-6,0);
止贏1:SELL(win6 >= 80 and openprofit > 0, 0);
止贏2:SELL(win15 >= 40 and openprofit > 0, 0);
止贏3:SELL(win20 >= 35 and openprofit > 0, 0);
止贏4:SELL(win30 >= 30 and openprofit > 0, 0);
止贏5:SELL(win50 >= 25 and openprofit > 0, 0);
止贏6:SELL(win100 >= 20 and openprofit > 0, 0); - 金字塔客服:
各位大哥幫幫忙!!!
- 用戶回復:
樓主你不大概說明一下碰到什么問題么?
- 網友回復:
提示:語句末尾缺少分號
- 網友回復: 提示:語法末尾缺少分號
如果以上指標公式不適用于您常用的行情軟件
或者您想改編成選股公式,以便快速選出某種形態個股的話,
- 上一篇:怎樣去掉分時圖上的均線和紅綠線
- 下一篇:[求助]一個賬號只能圖標程序化交易一個品…
相關文章
-
沒有相關內容