Join our fan page
Tipu MACD - indicator for MetaTrader 4
- Views:
- 71815
- Rating:
- Published:
- 2017.05.11 10:43
- Updated:
- 2018.05.18 15:58
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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);
Test ChartEvent is an example demonstrating the various types of ChartEvent: keyboard keys events, mouse click & move events, custom events. The source code works both in MetaTrader 4 and MetaTrader 5.
TrailingStopTrailing stop allows you to automatically protect the profits with your positions. It adjusts itself according to the current market rate and the amount of pips you give it to trail behind.
This is a binary options simulated trading indicator on MetaTrader 4 client, novice traders can use to practice trading strategies, program interface have simplified Chinese and English.
Standard Deviation Channel MT4A channel based on standard deviation of close price.