Tipu MACD - indicator for MetaTrader 4




Tipu MACD - indicator for MetaTrader 4


Tipu MACD is one the popular indicators in the market. It is based on the MACD Oscillator that was devised by Gerald Appel in late 1970s. MACD is a Momentum Oscillator that is calculated by subtracting the two price moving averages calculated on the price. It is one of the simplest indicators that provides best of both trend and momentum. You may read about Tipu MACD here.

I have modified the original code for Tipu MACD published in the Market by removing the compatibility with Tipu Panel. This version of Tipu MACD is for learning purposes and is open for anyone who is interested in developing an Expert Advisor using this indicator.

Here is an example of how to use Tipu MACD in an Expert Advisor.

int iSignal, //signals iTrend; //trend //--Method#1 iSignal = iCustom(_Symbol,_Period,"Tipu MACD",2,12,26,9,PRICE_CLOSE,"",1,5,clrBlue,clrRed,true,true,"",1,false,false,false,7,0); iTrend = iCustom(_Symbol,_Period,"Tipu MACD",2,12,26,9,PRICE_CLOSE,"",1,5,clrBlue,clrRed,true,true,"",1,false,false,false,8,0); if (iSignal == OP_BUY) //for sell use OP_SELL { } if(iTrend == OP_BUY) //for sell use OP_SELL { }

//--Method#2 bool BuySignal = iCustom(_Symbol,_Period,"Tipu MACD",2,12,26,9,PRICE_CLOSE,"",1,5,clrBlue,clrRed,true,true,"",1,false,false,false,9,0); bool SellSignal = iCustom(_Symbol,_Period,"Tipu MACD",2,12,26,9,PRICE_CLOSE,"",1,5,clrBlue,clrRed,true,true,"",1,false,false,false,10,0);


Download Tipu MACD - indicator for MetaTrader 4




Related News




Latest News
U.S. women's veterans praise new era of Andonovski
08.03.2020 06:07
By Amy Tennery (Reuters) - Little more than four months on the job, U.S. women's soccer head coach Vlatko Andonovski is earning high praise from team veterans, as the squad looks to build off the momentum of its fourth World Cup win and shake off the demons of an early exit at Rio 2016. Andonovski, who took over in late October from longtime
Read more
Boca pip River to Argentine title with late Tevez screamer
08.03.2020 05:07
BUENOS AIRES (Reuters) - A dramatic late goal from Carlos Tevez gave Boca Juniors the Argentine league title on Saturday, as the Buenos Aires club overcame Gimnasia 1-0 to pip their arch rivals River Plate on an breathtaking last day of the season. River led the Superliga from Boca by a point going into their final round of games and could have
Read more
Boca pip River to Argentine title with late Tevez screamer
08.03.2020 05:04
BUENOS AIRES (Reuters) - A dramatic late goal from Carlos Tevez gave Boca Juniors the Argentine league title on Saturday, as the Buenos Aires club overcame Gimnasia 1-0 to pip their arch rivals River Plate on an breathtaking last day of the season. River led the Superliga from Boca by a point going into their final round of games and could have
Read more
Japan's 7-Eleven worker infected with coronavirus, another case likely caused meningitis
08.03.2020 04:06
TOKYO (Reuters) - A worker at Japan's 7-Eleven convenience store chain in Yamanashi prefecture, west of Tokyo, has contracted the new coronavirus, the company said on Sunday. 7-Eleven, a unit of Japanese retail group Seven & i Holdings said it temporarily closed the store for cleaning and disinfection after the case was confirmed on Saturday
Read more
U.S., Japan women's soccer teams keep focus on games as coronavirus fears swirl
08.03.2020 04:03
By Amy Tennery Harrison, NEW JERSEY (Reuters) - The U.S. and Japan women's national soccer teams said on Saturday they were laser-focused on preparing for the upcoming Olympics, even as a global coronavirus outbreak threatens the postponement or cancellation of the Tokyo Games. The two teams are expected to compete in the second of three
Read more