后臺程序返回的無效值 [金字塔]
-
咨詢內容:
DEBUGFILE(FILE,'當前運行的bar時間%.0f',TIME);
IF ISLASTBAR THEN
BEGIN
DEBUGFILE(FILE,'行情時間%.2f',dynainfo(207));
DEBUGFILE(FILE,'當前價格%.2f',DQJ);
DEBUGFILE(FILE,'當前上軌%.2f',UP);
DEBUGFILE(FILE,'當前下軌%.2f',DOWN);
DEBUGFILE(FILE,'當前震蕩線%.2f',JZX);
DEBUGFILE(FILE,'當前震蕩線2%.2f',ZDX2);
DEBUGFILE(FILE,'前一收盤價%.2f',LASTBARCLOSE);
END
這是我的主要代碼,用的SIMNOW模擬賬戶,但是后臺程序化監控有時候返回的都是無效值,特別是TIME的時間戳為0,請問這個是數據問題?還是行情問題?還是模擬服務器問題?還是代碼問題呢?
后面是LOG
2020-10-13 14:58:51.103? ? 當前運行的bar時間1859002020-10-13 14:58:51.108? ? 行情時間185850.002020-10-13 14:58:51.114? ? 當前價格117040.002020-10-13 14:58:51.120? ? 當前上軌117530.002020-10-13 14:58:51.125? ? 當前下軌117030.002020-10-13 14:58:51.131? ? 當前震蕩線116986.502020-10-13 14:58:51.137? ? 當前震蕩線2116986.502020-10-13 14:58:51.143? ? 前一收盤價117060.002020-10-13 14:58:51.731? ? 當前運行的bar時間02020-10-13 14:58:51.737? ? 行情時間185851.002020-10-13 14:58:51.742? ? 當前價格117040.002020-10-13 14:58:51.748? ? 當前上軌-1.#R2020-10-13 14:58:51.754? ? 當前下軌-1.#R2020-10-13 14:58:51.760? ? 當前震蕩線0.002020-10-13 14:58:51.766? ? 當前震蕩線20.002020-10-13 14:58:51.777? ? 前一收盤價-1.#R2020-10-13 14:58:51.915? ? 當前運行的bar時間1859002020-10-13 14:58:51.921? ? 行情時間185851.002020-10-13 14:58:51.927? ? 當前價格117040.002020-10-13 14:58:51.933? ? 當前上軌117530.002020-10-13 14:58:51.939? ? 當前下軌117030.002020-10-13 14:58:51.945? ? 當前震蕩線116986.502020-10-13 14:58:51.950? ? 當前震蕩線2116986.502020-10-13 14:58:51.957? ? 前一收盤價117060.002020-10-13 14:58:52.735? ? 行情時間185852.002020-10-13 14:58:52.735? ? 當前運行的bar時間02020-10-13 14:58:52.740? ? 下單時趨勢延續狀態-1.002020-10-13 14:58:52.746? ? 行情時間185852.002020-10-13 14:58:52.751? ? 下單時狀態0.002020-10-13 14:58:52.757? ? 當前價格117030.002020-10-13 14:58:52.763? ? 當前價格117030.002020-10-13 14:58:52.773? ? 當前上軌-1.#R2020-10-13 14:58:52.779? ? 當前上軌117530.002020-10-13 14:58:52.785? ? 當前下軌-1.#R2020-10-13 14:58:52.791? ? 當前下軌117030.002020-10-13 14:58:52.797? ? 當前震蕩線0.002020-10-13 14:58:52.803? ? 當前震蕩線116986.502020-10-13 14:58:52.808? ? 當前震蕩線20.002020-10-13 14:58:52.814? ? 前一收盤價117060.002020-10-13 14:58:52.819? ? 前一收盤價-1.#R2020-10-13 14:58:52.825? ? 當前運行的bar時間1859002020-10-13 14:58:52.838? ? 行情時間185852.002020-10-13 14:58:52.843? ? 當前價格117030.002020-10-13 14:58:52.849? ? 當前上軌117530.002020-10-13 14:58:52.856? ? 當前下軌117030.002020-10-13 14:58:52.861? ? 當前震蕩線116986.502020-10-13 14:58:52.868? ? 當前震蕩線2116986.502020-10-13 14:58:52.873? ? 前一收盤價117060.002020-10-13 14:58:53.556? ? 當前運行的bar時間1859002020-10-13 14:58:53.562? ? 行情時間185853.002020-10-13 14:58:53.568? ? 當前價格117040.002020-10-13 14:58:53.574? ? 當前上軌117530.002020-10-13 14:58:53.579? ? 當前下軌117030.002020-10-13 14:58:53.586? ? 當前震蕩線116986.502020-10-13 14:58:53.592? ? 當前震蕩線2116986.502020-10-13 14:58:53.597? ? 前一收盤價117060.002020-10-13 14:58:53.729? ? 當前運行的bar時間02020-10-13 14:58:53.734? ? 行情時間185853.002020-10-13 14:58:53.741? ? 當前價格117040.002020-10-13 14:58:53.747? ? 當前上軌-1.#R2020-10-13 14:58:53.753? ? 當前下軌-1.#R2020-10-13 14:58:53.759? ? 當前震蕩線0.002020-10-13 14:58:53.765? ? 當前震蕩線20.002020-10-13 14:58:53.775? ? 前一收盤價-1.#R2020-10-13 14:58:54.353? ? 行情時間185853.002020-10-13 14:58:54.359? ? 下單時趨勢延續狀態-1.002020-10-13 14:58:54.365? ? 下單時狀態0.002020-10-13 14:58:54.370? ? 當前價格117030.002020-10-13 14:58:54.376? ? 當前上軌117530.002020-10-13 14:58:54.382? ? 當前下軌117030.002020-10-13 14:58:54.388? ? 當前震蕩線116986.502020-10-13 14:58:54.394? ? 前一收盤價117060.002020-10-13 14:58:54.400? ? 當前運行的bar時間1859002020-10-13 14:58:54.406? ? 行情時間185853.002020-10-13 14:58:54.411? ? 當前價格117030.002020-10-13 14:58:54.417? ? 當前上軌117530.002020-10-13 14:58:54.422? ? 當前下軌117030.002020-10-13 14:58:54.428? ? 當前震蕩線116986.502020-10-13 14:58:54.434? ? 當前震蕩線2116986.502020-10-13 14:58:54.439? ? 前一收盤價117060.002020-10-13 14:58:54.734? ? 當前運行的bar時間02020-10-13 14:58:54.740? ? 行情時間185854.002020-10-13 14:58:54.746? ? 當前價格117030.002020-10-13 14:58:54.752? ? 當前上軌-1.#R2020-10-13 14:58:54.758? ? 當前下軌-1.#R2020-10-13 14:58:54.764? ? 當前震蕩線0.002020-10-13 14:58:54.773? ? 當前震蕩線20.002020-10-13 14:58:54.779? ? 前一收盤價-1.#R2020-10-13 14:58:55.165? ? 當前運行的bar時間1859002020-10-13 14:58:55.171? ? 行情時間185854.002020-10-13 14:58:55.177? ? 當前價格117040.002020-10-13 14:58:55.183? ? 當前上軌117530.002020-10-13 14:58:55.188? ? 當前下軌117030.002020-10-13 14:58:55.194? ? 當前震蕩線116986.502020-10-13 14:58:55.199? ? 當前震蕩線2116986.502020-10-13 14:58:55.205? ? 前一收盤價117060.002020-10-13 14:58:55.735? ? 當前運行的bar時間02020-10-13 14:58:55.741? ? 行情時間185855.002020-10-13 14:58:55.748? ? 當前價格117040.002020-10-13 14:58:55.754? ? 當前上軌-1.#R2020-10-13 14:58:55.760? ? 當前下軌-1.#R2020-10-13 14:58:55.769? ? 當前震蕩線0.002020-10-13 14:58:55.775? ? 當前震蕩線20.002020-10-13 14:58:55.780? ? 前一收盤價-1.#R2020-10-13 14:58:55.978? ? 當前運行的bar時間1859002020-10-13 14:58:55.985? ? 行情時間185855.002020-10-13 14:58:55.990? ? 當前價格117040.002020-10-13 14:58:55.995? ? 當前上軌117530.002020-10-13 14:58:56.001? ? 當前下軌117030.002020-10-13 14:58:56.007? ? 當前震蕩線116986.502020-10-13 14:58:56.012? ? 當前震蕩線2116986.502020-10-13 14:58:56.017? ? 前一收盤價117060.002020-10-13 14:58:56.732? ? 當前運行的bar時間02020-10-13 14:58:56.737? ? 行情時間185856.002020-10-13 14:58:56.743? ? 當前價格117040.002020-10-13 14:58:56.750? ? 當前上軌-1.#R2020-10-13 14:58:56.756? ? 當前下軌-1.#R2020-10-13 14:58:56.762? ? 當前震蕩線0.002020-10-13 14:58:56.773? ? 當前震蕩線20.002020-10-13 14:58:56.786? ? 前一收盤價-1.#R?
?來源: www.kzuj.com.cn
-
金字塔客服:
2020-10-13 14:58:55.754? ? 當前上軌-1.#R2020-10-13 14:58:55.760? ? 當前下軌-1.#R這樣的無效值?
一般這種無效值就是你公式代碼上的計算問題,常見問題是計算的數據不夠,比如你后臺只加載了500根k線數據,那么你MA(C,600)這樣就會因為數據不夠而出現無效值,你嘗試改大后再試試。
還有就是你可以將公式在圖表上調試好,然后再移交到后臺,應該會更容易些。
有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友
可聯系技術人員 QQ: 262069696 或微信號:cxh99cxh99 進行 有償收費 編寫!
(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關文章
-
沒有相關內容