test_volume_v1

Download script
Author: Ron T
test_volume_v1

This script is designed to provide a visual representation of trading volume data on your platform. Instead of cluttering your main price chart, it creates a dedicated separate window at the bottom of your screen, making it easier to monitor market activity independently from price movements.

How it Works

The core logic of this tool centers on identifying and displaying the volume of trades for specific periods. Here is the step-by-step breakdown of how it processes information:

1. Data Selection The script automatically scans your historical trading data to locate the volume associated with each price bar. It focuses on a specific section of the chart, ensuring that the data displayed is relevant to the current timeframe you are viewing.

2. Visualization Style Rather than drawing a simple line, the tool renders the volume as a histogram. This creates a series of vertical bars where the height of each bar corresponds directly to the amount of trading activity. This format allows for an immediate visual comparison between high-activity periods (tall bars) and low-activity periods (short bars).

3. Dynamic Updating The script is programmed to run continuously. As new price bars are formed and closed, the tool updates the histogram in real-time. It systematically populates the visual buffer so that you can track whether trading momentum is increasing or decreasing as the market moves.

Summary of Usage

By isolating volume into its own window, this script allows you to see "the fuel" behind price movements. You can use it to verify if a significant price move is backed by high trading volume (indicating strong conviction) or low volume (which might suggest a weaker trend), providing an extra layer of confirmation for your technical analysis.

Miscellaneous
Implements a curve of type %1
10 Views
0 Downloads
0 Favorites
test_volume_v1
/*-----------------------------+
|			       |
| Shared by www.Aptrafx.com    |
|			       |
+------------------------------*/

//+------------------------------------------------------------------+
//|                                           MultiMovingAverage.mq4 |
//+------------------------------------------------------------------+
#property copyright "Ron T"
#property link      "http://www.lightpatch.com"

#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 White

//---- buffers
double VolBuffer1[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//|------------------------------------------------------------------|

int init()
  {

   SetIndexStyle(0,DRAW_HISTOGRAM);
   SetIndexBuffer(0, VolBuffer1);

   return(0);
  }


//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
   int i;
   
   for( i=0; i<Bars; i++ ) VolBuffer1[i]=0;

   return(0);
  }


//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   double curTYP=0;
   double oldTYP=0;
   double change=0;

   int pos=Bars/5;
   
   // Print ("Start SHOW5TICKS with bars=",pos);

   while(pos>=0)
     {
      VolBuffer1[pos]=Volume[pos];
 	   pos--;
     }

   return(0);
  }
//+------------------------------------------------------------------+

Comments