-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathReportGenerator.hpp
More file actions
22 lines (18 loc) · 872 Bytes
/
ReportGenerator.hpp
File metadata and controls
22 lines (18 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2025 Chek Wei Tan
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
#pragma once
#include "../sierrachart.h"
#include "nlohmann/json.hpp"
#include <string>
#include <vector>
#include <fstream>
using json = nlohmann::json;
class ReportGenerator {
public:
static void WriteSummaryHeader(std::ofstream& log, const std::string& strategyName, const std::string& dllName, const std::vector<std::pair<std::string, double>>& params);
static void WriteTradesData(SCStudyInterfaceRef sc, std::ofstream& log);
static void WriteTradeStatisticsV2(SCStudyInterfaceRef sc, std::ofstream& log);
static json GetTradesData(SCStudyInterfaceRef sc);
static json GetTradeStatistics(SCStudyInterfaceRef sc);
static json GetCombination(const std::vector<std::pair<std::string, double>>& params);
};