私たちのファンページに参加してください
- ビュー:
- 71118
- 評価:
- パブリッシュ済み:
- 2017.05.11 10:43
- アップデート済み:
- 2018.05.18 15:58
-
このコードに基づいたロボットまたはインジケーターが必要なら、フリーランスでご注文ください フリーランスに移動
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);
![ChartEvent Test Example](https://c.mql5.com/i/code/expert.png)
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.
![TrailingStop](https://c.mql5.com/i/code/expert.png)
Trailing 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.
![Binary Options Simulated Trading Indicator for MT4](https://c.mql5.com/i/code/indicator.png)
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 MT4](https://c.mql5.com/i/code/indicator.png)
A channel based on standard deviation of close price.