"unknown resource type" error while using an indicator as #resource in my expert

 

Hi. when I try to compile my ea ,I have the "unknown resource type" error.

I use the code bellow in my EA:

#resource  "\\Indicators\\ForexTrend_TSL.ex4"

I have this problem with the " ForexTrend_TSL "indicator. But  other indicators are ok. 

I send this indicator too. I appreciate if someone test this indicator and tell me why there is such error with this indicator. 

 

this is my EA code:

#property copyright "Copyright 2021, MetaQuotes Software Corp."

#property link      "https://www.mql5.com"

#property version   "1.00"

#property strict


#resource  "\\Indicators\\ForexTrend_TSL.ex4"



//+------------------------------------------------------------------+

//| Expert initialization function                                   |

//+------------------------------------------------------------------+

int OnInit()

  {

//---


   return(INIT_SUCCEEDED);

  }




and this is the indicator:

Discover new MetaTrader 5 opportunities with MQL5 community and services
Discover new MetaTrader 5 opportunities with MQL5 community and services
  • 2022.02.04
  • www.mql5.com
MQL5: language of trade strategies built-in the MetaTrader 5 Trading Platform, allows writing your own trading robots, technical indicators, scripts and libraries of functions
Files:
 
Yue Zhao #:

this is my EA code:

#property copyright "Copyright 2021, MetaQuotes Software Corp."

#property link      "https://www.mql5.com"

#property version   "1.00"

#property strict


#resource  "\\Indicators\\ForexTrend_TSL.ex4"



//+------------------------------------------------------------------+

//| Expert initialization function                                   |

//+------------------------------------------------------------------+

int OnInit()

  {

//---


   return(INIT_SUCCEEDED);

  }




and this is the indicator:

The indicator probably needs to be recompiled with a recent MT4 build.
 
Alain Verleyen #:
The indicator probably needs to be recompiled with a recent MT4 build.

thanks a lot