//--- Connection with the main file of the Expert Advisor #include "../../Experts/MultiSymbolExpert/MultiSymbolExpert.mq5" //--- Include custom libraries #include "../../Include/MultiSymbolExpert/Enums.mqh" #include "../../Include/MultiSymbolExpert/InitializeArrays.mqh" #include "../../Include/MultiSymbolExpert/Errors.mqh" #include "../../Include/MultiSymbolExpert/TradeSignals.mqh" #include "../../Include/MultiSymbolExpert/TradeFunctions.mqh" #include "../../Include/MultiSymbolExpert/ToString.mqh" #include "../../Include/MultiSymbolExpert/Auxiliary.mqh" //+------------------------------------------------------------------+ //| Getting agent handles by the specified symbols | //+------------------------------------------------------------------+ void GetSpyHandles() { //--- Iterate over all symbols for(int s=0; spos.last_deal_price+CorrectValueBySymbolDigits(VolumeIncreaseStep[symbol_number]*symb.point)) return(ORDER_TYPE_BUY); } //--- No signal return(WRONG_VALUE); } //+------------------------------------------------------------------+ //| Checking the condition and returning a signal | //+------------------------------------------------------------------+ ENUM_ORDER_TYPE GetSignal(int symbol_number) { //--- A Sell signal : if(indicator[symbol_number].value[1]indicator[symbol_number].value[2]) return(ORDER_TYPE_BUY); //--- No signal return(WRONG_VALUE); } //+------------------------------------------------------------------+