Better Volume Indicator For MT5
Better Volume Indicator For MT5は、テクニカルトレーダーのユーザーとして知られています。主要な傾向の分析のために、SMAデータとともにボリュームインジケータのアルゴリズムを使用します。この手動取引方法に依存している人は、このツールを使用すると、価格動向を高精度で表示できるため、大きな利点があります。
価格が北に向かっている限り、インジケーターフレームに緑色のバーが頻繁に表示されます。反対に、売り手が価格を南に押している限り、頻繁に赤いバーがインジケーターフレームに印刷されます。重要な供給レベルまたは抵抗レベルで注文設定を見つける必要があります。その後、インジケーターのバーを使用する必要があります。
ただし、このツールとともにいくつかのボリュームインジケータを使用して、チャートを混乱させないようにしてください。物事をシンプルに保ち、D1フレームのバーを関連付けます。開始時に難しいと思われる場合は、練習用アカウントを使用してください。
Better Volume Indicator For MT5インストール
上記のフォームからインジケーターをダウンロードした後、zipファイルを解凍する必要があります。次に、ファイルMinions.BetterVolume.mq5をMT5インストールのMQL5Indicatorsフォルダーにコピーする必要があります。その後、MT5を再起動してください。そうすると、インジケーターのリストにインジケーターが表示されます。
Better Volume Indicator For MT5パラメーター
Better Volume Indicator For MT5は、構成する2 パラメーターがあります。
input ENUM_APPLIED_VOLUME inpAppliedVolume = VOLUME_REAL; // Volume Type
input int inpBarsToAnalyze = 20; // N past bars to analyze
Better Volume Indicator For MT5
Better Volume Indicator For MT5は、 2 バッファーを提供します。
SetIndexBuffer( 0, bufferVolume, INDICATOR_DATA );
SetIndexBuffer( 1, bufferColors, INDICATOR_COLOR_INDEX );
コードの主要部分
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 &tick_volume[],
const long &volume[],
const int &spread[])
{
int start=prev_calculated-1;
long SMA;
if (rates_total lt 2) { return(0); } // check for rates total
if (start lt 1) { start=1; } // correct position
// calculates the volumes histogram...
for(int i=start; i lt rates_total && !IsStopped(); i++) {
bufferVolume[i] = (double)(paramAppliedVolume==VOLUME_REAL ? volume[i] : tick_volume[i]); // calculates the indicator...
if(paramAppliedVolume==VOLUME_REAL) {
SMA = SMAOnArray(volume, paramBarsToAnalyze, i );
} else {
SMA = SMAOnArray(tick_volume, paramBarsToAnalyze, i );
}
// change candle colors accordingly...
if (open[i] lt close[i] && bufferVolume[i] gt SMA) { bufferColors[i]=1.0; }
else if (open[i] gt close[i] && bufferVolume[i] gt SMA) { bufferColors[i]=2.0; }
else { bufferColors[i]=0.0; }
}
return(rates_total);
}
//+------------------------------------------------------------------+
//| Calculates a SMA over an indicator array... |
//+------------------------------------------------------------------+
long SMAOnArray( const long &array[], int period, int position ) {
long sum = 0;
if (position-period lt = 0) { return false; }
for (int i = position-period+1; i lt =position; i++) {
sum += array[i];
}
return sum / period;
}
//+------------------------------------------------------------------+