Tipu MACD - MetaTrader 4 Script | Forex Indicator Download - MT4/MT5 Resources

Tipu MACD is one of the popular indicators in the market. It is based on the MACD oscillator designed by Gerald Appel in the late 1970s. MACD is a momentum oscillator calculated by subtracting two moving averages of price calculated from price. It is one of the simplest indicators and provides the best trend and momentum. You can read about Tipu MACD here .
I modified the original code of the Tipu MACD released on the market, removing the compatibility with the Tipu panel. This version of Tipu MACD is intended for learning purposes and is open to anyone interested in developing Expert Advisors using this indicator.
Below is an example of how to use Tipu MACD in Expert Advisor.
integer i signal, //signal trend; //trend //--method #1 signal = custom ( _symbol , _period , "tipmacd" , 2 , 12 , 26 , 9 , PRICE_CLOSE , "" , 1 , 5 , clear blue , red blood cells , true , true , "" , 1 , false , false , false , 7, 0 ); trend = custom ( _symbol , _period , "tip_macd" , 2 , 12 , 26 , 9 , PRICE_CLOSE , "" , 1 , 5 , clearblue , red blood cells , true , true , "" , 1 , false , false , false , 8, 0 ); if (i signal == OP_BUY ) // for selling use OP_SELL { } if (i TREND == OP_BUY ) // for selling use OP_SELL { }
//--Method #2 Boolean Buy Signal = iCustom( _symbol , _period , "tip_macd" , 2 , 12 , 26 , 9 , PRICE_CLOSE , "" , 1 , 5 , clearblue , red blood cells , true , true , "" , 1 , false, false , false , 9, 0 ); Boolean Sell Signal = iCustom( _symbol , _period , "tip_macd" , 2 , 12 , 26 , 9 , PRICE_CLOSE , "" , 1 , 5 , clearblue , red blood cells , true , true , "" , 1 , false, false , false , 10, 0 );
Attachment download
📎 tipu_macd.mq4 (17.89 KB)
Source: MQL5 #18270
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •