//+------------------------------------------------------------------+ //| LowFractalContainer.mqh | //| Copyright 2023, MetaQuotes Ltd. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2023, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #include "LowFractal.mqh" #include #define SIZE 700 double input arrowDistanceLows ; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class LowFractalContainer { private: LowFractal* lowFractals[SIZE]; int freeIndex ; double range ; ENUM_TIMEFRAMES timeFrame ; public: LowFractalContainer(ENUM_TIMEFRAMES _timeFrame); ~LowFractalContainer(); //GETTERS LowFractal* getLowFractal(int _index) {return lowFractals[_index] ;} // returns the fractal using its index in the array int getFreeIndex() {return freeIndex ; } //SETTERS void setRange(double _range) {range = _range ;} // OTHER FUNCTIONS void addLowFractal(LowFractal* _lowFractal); // adds low fractal to the low fractals array void printLowFractals(); // prints all low fractals data }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ LowFractalContainer::LowFractalContainer(ENUM_TIMEFRAMES _timeFrame) { timeFrame = _timeFrame ; freeIndex = 0 ; } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ LowFractalContainer::~LowFractalContainer() { for(int i=0; i 0) { for(int i=0 ; i