本帖最後由 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 的差別嗎? |