兩儀四象TS進場交易系統源碼代碼 [開拓者 TB]
- 參數:N1=10,N2=10
- 源碼:
if(currentbar>maxlist(N1,N2)+1) then begin
if Summation(absvalue(close-close[1]),N1)<>0 then begin
EF=maxlist(highest(close,N1)-Lowest(close,N1),absvalue(close-close[N1]))/Summation(absvalue(close-close[1]),N1);
end;
EFMA=Average(EF,N1);
MER=IntPortion(N1-(EFMA-0.5)*N2);
LY=Summation((close-close[1])*Volume,MER);
LYSX=Average(LY,N1);
end;
messagelog("LYSX",LYSX);
messagelog("EF",EF);
if (time>=opentime+maxlist(N1,N2)+1 and time<lasttime and marketposition=0 and tradeNumber<maxtime ) then
begin
if LYSX>0 then begin
buy 1 share next bar at Open;
end;
if LYSX<0 then begin
sellshort 1 share next bar at Open;
end;
end;
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 262069696 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容