Simple_Volume

Download script
Author: Copyright � 2009, MT-Coder.
Simple_Volume

Overview

This custom technical indicator is designed to provide traders with a visual representation of the relationship between market price and trading activity. Rather than looking at these two factors in isolation, the tool combines them into a single metric to help identify the underlying weight or "effort" behind specific price movements.

Core Logic

The primary function of this script is to calculate a value based on the interaction between the Opening Price of a candle and its Trading Volume.

To achieve this, the indicator performs the following steps:

  • Data Synthesis: For every specific time period on your chart, the tool identifies the price at which the market opened and multiplies it by the total volume recorded during that same period.
  • Visual Representation: The result of this calculation is displayed as a histogram in a separate window below your main trading chart. This allows you to observe fluctuations in "Simple Volume" without cluttering your primary price action view.
  • Smoothing and Context: The indicator utilizes a defined period (defaulting to 100 bars) to ensure that the data being presented is processed contextually, helping to filter out noise and provide a clearer picture of the historical data.

How to Interpret the Data

By looking at this indicator, you are essentially seeing the "magnitude" of price action. A high bar indicates a period where a significant amount of market activity occurred at a specific price level. Conversely, smaller bars suggest lower participation or less aggressive movement.

This tool serves as a foundational visual aid for traders who want to gauge how much "weight" is behind current market trends, helping to distinguish between minor price fluctuations and significant moves backed by high market participation.

Miscellaneous
Implements a curve of type %1
3 Views
0 Downloads
0 Favorites
Simple_Volume
//+------------------------------------------------------------------+
//|                 This has been coded by MT-Coder                  |
//|                                                                  |
//|                     Email: mt-coder@hotmail.com                  |
//|                      Website: mt-coder.110mb.com                 |
//|                                                                  |
//| For a price I can code for you any strategy you have in mind     |
//|            into EA, I can code any indicator you have in mind    |
//|                                                                  |
//|          Don't hesitate to contact me at mt-coder@hotmail.com    |
//+------------------------------------------------------------------+

//+------------------------------------------------------------------+
//|        This indicator shows the interaction between price open   |
//|        and the market volume                                     |
//+------------------------------------------------------------------+


#property copyright "Copyright © 2009, MT-Coder."
#property link      "http://mt-coder.110mb.com/"

#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 LimeGreen


//---- input parameters
extern int SVPeriod=100;
//---- buffers
double Buffer[];


//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
   string short_name;
   //---- 1 additional buffer used for counting.
   IndicatorBuffers(1);
   //IndicatorDigits(Digits);
//---- indicator line
   SetIndexStyle(0,DRAW_HISTOGRAM);
   SetIndexBuffer(0,Buffer);
  
   
//---- name for DataWindow and indicator subwindow label
   short_name="Simple Volume - -by MT-Coder@hotmail.com";
   IndicatorShortName(short_name);
   SetIndexLabel(0,"Simple Volume");
  
//----
   SetIndexDrawBegin(0,SVPeriod);


//----
   return(0);
  }
//+------------------------------------------------------------------+
//| FAC low n high                                                   |
//+------------------------------------------------------------------+
int start()
  {
   int i,counted_bars=IndicatorCounted();
//----
   if(Bars<SVPeriod) return(0);

//----
   i=Bars-SVPeriod-1;
   if(counted_bars>SVPeriod) i=Bars-counted_bars-1;
   while(i>0)
     {
     
Buffer[i] = Open[i] * Volume[i] ;


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

Comments