利用 LastBarOnChart_s 及 messagelog 看績效
本帖最後由 minime 於 11-9-6 01:56 PM 編輯網路看到的
把以下程式碼插入 signal 策略中就可以在 PowerEditor output 直接看到策略修改後的performance 績效once(LastBarOnChart_s) begin
cleardebug;
messagelog(" Initial Capital: ", InitialCapital);
messagelog(" Net Profit: ", netprofit);
messagelog(" Gross Profit: ", grossprofit);
messagelog(" Gross Loss: ", grossloss);
messagelog(" Max Drawdown: ", maxiddrawdown);
messagelog("Max Contracts Held: ", MaxContractsHeld);
messagelog(" MaxConsecWinner: ", MaxConsecWinners);
messagelog(" MaxConsecloser: ", maxconseclosers);
messagelog(" Commission: ", commission);
messagelog(" Largest Win Trade: ", LargestWinTrade);
messagelog("Largest Loss Trade: ", largestlostrade);
end;=============
有人知道LastBarOnChart 和 LastBarOnChart_s的差別嗎? 回復 1# minime
看函數定義,
一個以秒單位運算, 一個以分鐘單位運算:
LastBarOnChart_s = Date = LastCalcDate AND Time_s = LastCalcTime_s;
LastBarOnChart = Date = LastCalcDate and Time = LastCalcTime ; 回復minime
看函數定義,
一個以秒單位運算, 一個以分鐘單位運算:
LastBarOnChart_s = Date = LastCalcDate AND Time_s = LastCalcTime_s;
LastBarOnChart = Date = LastCalcDate and Time = LastCalcTime ;
tedwang 發表於 11-9-6 02:15 PM http://coco-in.net/images/common/back.gif
沒想到去查函數定義, 謝謝啦. 謝謝大大分享...又學到新的東西了{:4_82:} 多謝大大無私分享~ 回復 4# chyu1019
直接看書學光光比較快吧!!
KWAY出那本不事亂出的.
頁:
[1]