請問debugfile2為何不生效 [金字塔]
- 咨詢內(nèi)容:
if tholding2=0 and TREMAINQTY(1,'','')=0 and TREMAINQTY(3,'','')=0 then extgbdataset('orderdone',0);
if extgbdata('orderdone')=0 and (TREMAINQTY(1,'','')>0 or TREMAINQTY(3,'','')>0) and tholding2=0 then extgbdataset('orderdone',1);
if abs(tholding2)>0 and not(extgbdata('orderdone')=3) then extgbdataset('orderdone',2);debugout('開多=%.0f',TREMAINQTY(1,'',''));
debugout('開空=%.0f',TREMAINQTY(3,'',''));
debugout('orderdone=%.0f',extgbdata('orderdone'));if Islastbar then DEBUGFILE2('D:\nTGAn.TXT',' 開多:'&numtostr(TREMAINQTY(1,'',''),0)&' 開空:'&numtostr(TREMAINQTY(3,'',''),0)&' orderdorderdone'),1);
- 金字塔客服:
您好,請仔細參考debufile2函數(shù)說明。或者您要輸出什么語句?
- 用戶回復(fù):
這可是對應(yīng)你們的例子來搞的
- 網(wǎng)友回復(fù):
1.使用的有全局變量extgbdata---請改為序列模式
2.考慮用DEBUGFILE,這個函數(shù)要注意兩個地方的大小寫,請嚴(yán)格按照下面紅色標(biāo)識的大小寫來寫
DEBUGFILE('D:\HLPYIF.TXT','IF外IFPKKD=%.0f',IFPKKD);
- 網(wǎng)友回復(fù):
謝謝,果然就是這個文件名必須得大寫,暈大,請在下版幫助文件中修正啊,真害人
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容