AlgoMasterNNFX-V1/Symbols/Types/AllSufix.mqh
alexcercos f4618aba1a Refactor symbol processing
Only working in MT5, need to make changes to work in MT4 (remove namespaces, etc)
2023-05-23 18:21:42 +02:00

25 lines
801 B
MQL5

#include "../Base.mqh"
//+------------------------------------------------------------------+
//| All Symbols with Sufix Processor |
//+------------------------------------------------------------------+
class CSymbolProcessorAllSufix : public CSymbolProcessorBase
{
protected:
virtual void PreProcessString(string &symbol_string, string &custom_string);
virtual void PostProcessArray(string &array[], string &custom_string);
};
void CSymbolProcessorAllSufix::PreProcessString(string &symbol_string, string &custom_string)
{
SetStringToAllSymbols(symbol_string);
}
void CSymbolProcessorAllSufix::PostProcessArray(string &array[], string &custom_string)
{
TrimString(custom_string);
for (int i=0; i<ArraySize(array); i++)
array[i] += custom_string;
}