Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 22:30:40 +0000



Post From: Fair Value Gap indicator

[2024-07-19 01:10:50]
d9e5c763 - Posts: 108
gcUserStudies_2500.cpp in linux compilation
1.the code appears to use a modified version of json.hpp, it can directly use the official single-include version from the nlohmann/json repository: https://github.com/nlohmann/json/blob/develop/single_include/nlohmann/json.hpp
2.need to add the following lines before including sierrachart.h to ensure the M_PI constant is available:

#define _USE_MATH_DEFINES
#include <cmath>
3.the line

std::string JsonEventsString = sc.HTTPResponse
is missing the .GetChars() method
4.MinGW-w64 Compilation Flags:
-std=gnu++14: enables c++14 standard, which is required for struct FFEventToDraw
-lgdi32: links the GDI library, which is required for ForexFactory study