数値データ本体は PostgreSQL forex.trades テーブル (MT4 HTML Statementから取込)。 このWikiには集計・振り返り・気づきを記録する。
forex.trades
-- 月別損益 SELECT date_trunc('month', close_time) AS month, count(*) AS trades, round(sum(profit),2) AS pnl FROM trades GROUP BY 1 ORDER BY 1;