兩儀四象TS進(jìn)場交易系統(tǒng)源碼代碼 [開拓者 TB]
- 參數(shù):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;
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 進(jìn)行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容