Better Volume Indicator For MT5
Better Volume Indicator For MT5 นั้นเป็นที่รู้จักในฐานะผู้ใช้ของผู้ค้าทางเทคนิค จะใช้อัลกอริทึมของตัวบ่งชี้ปริมาณพร้อมกับข้อมูล SMA สำหรับการวิเคราะห์แนวโน้มที่สำคัญ ผู้ที่ใช้วิธีการซื้อขายด้วยตนเองนี้สามารถได้เปรียบอย่างมากกับเครื่องมือนี้เนื่องจากสามารถแสดงแนวโน้มราคาด้วยความแม่นยำระดับสูง
ตราบใดที่ราคาขึ้นไปทางเหนือคุณจะได้พบกับแถบสีเขียวบ่อยครั้งในกรอบตัวบ่งชี้ ในทางตรงกันข้ามแถบสีแดงที่พบบ่อยจะถูกพิมพ์ในกรอบตัวบ่งชี้ตราบใดที่ผู้ขายผลักราคาลงไปทางใต้ คุณต้องค้นหาการตั้งค่าคำสั่งซื้อของคุณในระดับอุปทานหรือระดับความต้านทานที่สำคัญแล้วควรใช้แถบของตัวบ่งชี้
แต่ให้แน่ใจว่าคุณไม่ได้ทำให้แผนภูมิยุ่งเหยิงโดยใช้ตัวบ่งชี้ปริมาณเพิ่มอีกสองสามตัวพร้อมกับเครื่องมือนี้ ทำสิ่งต่าง ๆ ให้เรียบง่ายและเชื่อมโยงแท่งต่าง ๆ ในเฟรม D1 ใช้บัญชีฝึกหากสิ่งต่างๆดูลำบากในช่วงเริ่มต้น
การติดตั้ง Better Volume Indicator For MT5
หลังจากคุณดาวน์โหลดตัวบ่งชี้ผ่านแบบฟอร์มด้านบนคุณจะต้องทำการแตกไฟล์ zip จากนั้นคุณต้องคัดลอกไฟล์ Minions.BetterVolume.mq5 ลงในโฟลเดอร์ MQL5Indicators ของการติดตั้ง MT5 ของคุณ หลังจากนั้นโปรดรีสตาร์ท 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;
}
//+------------------------------------------------------------------+