Indicators: Classic Moving Averages with colors

mohsen moisen  

Hello, thank you for your efforts. I have a problem with some indicators. When I copy to the indicators folder, the mql5 program file does not create

Discover new MetaTrader 5 opportunities with MQL5 community and services
Discover new MetaTrader 5 opportunities with MQL5 community and services
  • 2021.01.17
  • 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
amando  
mohsen moisen:

Hello, thank you for your efforts. I have a problem with some indicators. When I copy to the indicators folder, the mql5 program file does not create

You habe to compile it

Mike Pascal Plavonil  
mohsen moisen:

Hello, thank you for your efforts. I have a problem with some indicators. When I copy to the indicators folder, the mql5 program file does not create

Open Metatrader Editor and compile the file

bongani1999  
Hi how do I get code for this MA
Vladimir Karputov  
bongani1999 # :
Hi how do I get code for this MA

The link is in the first post:

Patricio  

Hello, excellent indicator. I'm trying to add the Symbol parameter so I can use it from an EA that iterates over the symbols. Is this possible?, I tried to make the following modification but I was not successful:

double getPrice(ENUM_APPLIED_PRICE  tprice,const double &open[],const double &close[],const double &high[],const double &low[],int i,int _bars,int instanceNo=0)
  {
   switch(tprice)
   {
         case PRICE_CLOSE:     return(iClose(Simbolo,PERIOD_CURRENT,i));
         case PRICE_OPEN:      return(iOpen(Simbolo,PERIOD_CURRENT,i));
         case PRICE_HIGH:      return(iHigh(Simbolo,PERIOD_CURRENT,i));
         case PRICE_LOW:       return(iLow(Simbolo,PERIOD_CURRENT,i));
         case PRICE_MEDIAN:    return((iHigh(Simbolo,PERIOD_CURRENT,i)+iLow(Simbolo,PERIOD_CURRENT,i))/2.0);
         case PRICE_TYPICAL:   return((iHigh(Simbolo,PERIOD_CURRENT,i)+iLow(Simbolo,PERIOD_CURRENT,i)+iClose(Simbolo,PERIOD_CURRENT,i))/3.0);
         case PRICE_WEIGHTED:  return((iHigh(Simbolo,PERIOD_CURRENT,i)+iLow(Simbolo,PERIOD_CURRENT,i)+iClose(Simbolo,PERIOD_CURRENT,i)+iClose(Simbolo,PERIOD_CURRENT,i))/4.0);
   }
   return(0);
  }