Why did you (re)declare _period in each subclass? This way the baseclass variable is not initialized with the correct timeframe. If you create FirstPullBack instances with different timeframes the IsThreeSoldier is still checked on each with _period=0, so all of them will be true at the same time. That's why they called SetPrice simultaneously.
Do you mean that all subclasses work with the period of the base class and do not need to keep their own instance of the period?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Why did you (re)declare _period in each subclass? This way the baseclass variable is not initialized with the correct timeframe. If you create FirstPullBack instances with different timeframes the IsThreeSoldier is still checked on each with _period=0, so all of them will be true at the same time. That's why they called SetPrice simultaneously.
Do you mean that all subclasses work with the period of the base class and do not need to keep their own instance of the period?
This way ?
Do you mean that all subclasses work with the period of the base class and do not need to keep their own instance of the period?
This way ?
Here you don't call the parent (CCondition) constructor, that is wrong:
Here you don't call the parent (CCondition) constructor, that is wrong:
It was solved in another way, but I still don't understand what the problem was!
Thank you for your time
It was solved in another way, but I still don't understand what the problem was!
Thank you for your time
Really ? and how ? Please share your solution when people tried to help you.
Really ? and how ? Please share your solution when people tried to help you.
Thank you again