Price_Channel Indicator For MT5
Table Of Contents:
- Price_Channel Indicator For MT5
- Price_Channel Indicator For MT5インストール
- Price_Channel Indicator For MT5パラメーター
- Price_Channel Indicator For MT5
- コードの主要部分
Price_Channel Indicator For MT5のPrice_Channel Indicator For MT5
Price_Channel Indicator For MT5インストール
上記のフォームからインジケーターをダウンロードした後、zipファイルを解凍する必要があります。次に、ファイルprice_channel.mq5をMT5インストールのMQL5Indicatorsフォルダーにコピーする必要があります。その後、MT5を再起動してください。そうすると、インジケーターのリストにインジケーターが表示されます。
Price_Channel Indicator For MT5パラメーター
Price_Channel Indicator For MT5は、構成する1 パラメーターがあります。
input int InpChannelPeriod=22; // Period
Price_Channel Indicator For MT5
Price_Channel Indicator For MT5は、 3 バッファーを提供します。
SetIndexBuffer(0,ExtHighBuffer,INDICATOR_DATA); SetIndexBuffer(1,ExtLowBuffer,INDICATOR_DATA); SetIndexBuffer(2,ExtMiddBuffer,INDICATOR_DATA);
コードの主要部分
int OnCalculate(const int rates_total,const int prev_calculated, const datetime &Time[], const double &Open[], const double &High[], const double &Low[], const double &Close[], const long &TickVolume[], const long &Volume[], const int &Spread[]) { int i,limit; //--- check for rates if(rates_total lt InpChannelPeriod) return(0); //--- preliminary calculations if(prev_calculated==0) limit=InpChannelPeriod; else limit=prev_calculated-1; //--- the main loop of calculations for(i=limit;i lt rates_total && !IsStopped();i++) { ExtHighBuffer[i]=Highest(High,InpChannelPeriod,i); ExtLowBuffer[i]=Lowest(Low,InpChannelPeriod,i); ExtMiddBuffer[i]=(ExtHighBuffer[i]+ExtLowBuffer[i])/2.0;; } //--- OnCalculate done. Return new prev_calculated. return(rates_total); } //+------------------------------------------------------------------+