Forum

Problem with implementing a singleton pattern for multiple instances with Array

Hello friends The code below has two problems that I don't understand. 1. When I make the constructor private, the compiler gives an error. Even when I define a single pointer, it gives an error without instantiation. Shouldn't we do this for singletons?! 2. The array that I have defined to store

static behavioral of non static struct in class !!!

Hello friends Does anyone know why when I create several different objects with different timeFrames the CFirstPullBack class, if the condition of one of the objects is met with the Strategy() function, the SetPrice() function is called for the rest of the objects and sets the _OHLC structure for