/******************************************************************************** Title: Volume SR Map Indicator for eSignal 10.x By: Chris D. Kryza (Divergence Software, Inc.) Email: ckryza@verizon.net, ckryza@sr-analyst.com Web: http://www.sr-analyst.com ================================================================================= Project Description: This indicator displays a cumulative volume/price histogram that gives a very clear picture as to the trading activity at each price level. You can quickly spot levels of likely resistance and support, as well as identify areas of least resistance. The plot itself is based on all of the bars available in your current chart. You will use the eSignal Time Template feature to control that. So if you are viewing a 5-min chart and you have created an eSignal Time Template to pre-load 30 days of data, then the histogram will be based on all price action over the last 30 days of trading. The eSignal Time Template will allow you to select up to 120 days of intraday data so, if desired, you could create a price/volume histogram based on the most recent 120 days of trading. For intraday use, typically a time template setting of 10 to 30 days of data will work well. During those times when price is reaching new highs or new lows, though, you may need to increase the number of days loaded to obtain historical information on price action at those levels (if, in fact, those levels were visited within the last 120 days). The indicator will operate on tick, intraday, and Daily/Weekly/Monthly charts and, in all cases, the scope of the histogram is controlled by the eSignal Time Template settings. If you are not familiar with eSignal Time Templates and how to use them, then please refer to the eSignal Knowledgebase on the eSignal web site for more information. The indicator has two modes of operation...profile based on volume and profile based on price (see the "Accumulate on" option below). If you happen to load the indicator into a symbol that does not report volume, the indicator will automatically switch to "profile based on price" mode. Indicator Parameters: ==================== Calculation Options: Calculation Type: Select from "All Volume" and "Swing Volume Only" If "All Volume" is selected (the default) then each bar in the historical data is analyzed and used in the creation of the histogram. If "Swing Volume Only" is selected then only the actual swing high and swing low bars (i.e., those bars representing actual turning points) are used in the creation of the histogram. If you use the "Swing Volume Only" option then you must set a Swing Strength (below). Swing Strength: Set the required swing strength. This option only applies if "Swing Volume Only" is selected as the Calculation Type. The Swing Strength is the number of required lower-highs to the right and to the left of a candidate swing high (reverse for swing lows). Default value is 4. Accumulate on: Select from "Volume" and "Price". If "Volume" is selected then each bar is divided into buckets based on the tick size and an equal portion of the total bar volume is allocated into each bucket. The volume at each of these "bucket" levels is then accumulated to create the histogram plot. If "Price" is selected then bar volume is ignored and the indicator simply keeps track of how many times a particular price level is touched (i.e., it creates a price profile rather than a volume profile). Buy/Sell Volume Definition: Select the logic that will be used to differentiate buying volume from selling volume. If "Above Open=Buying / Below Open=Selling" is selected then all activity above the bar open is assumed to be buying and all activity below the bar open is assumed to be selling. If "Close>Open=Buying / Close= than the bar open. If the close is below the open then all of the bar's volume is assumed to be selling volume. This information is only used for color-coding (see Color Code Histogram option below). Apply Time Filter?: Applies to intraday intervals only. Select true or false. If true then all activity that occurs between two times that you specify will be ignored for purposes of creating the histogram. For example, the activity during the first 1/2 hour after market open is often-times just noise. If you set the Time Filter to true and set the Start Time to 09:30 and the End Time to 10:00 then all bars and volume between those two times will be ignored for purposes of creating the histogram. Start Time: Set the start time for the period to be ignored. Only applies of Apply Time Filter is set to true. Must be formatted as HH:MM. End Time: Set the ending time for the period to be ignored. Only applies of Apply Time Filter is set to true. Must be formatted as HH:MM. Cosmetic Options: Window Size (%): Set the visible size of the histogram window (i.e., top to bottom) by specifying a percentage. A larger value will increase the size of the histogram while a smaller value will decrease the size of the histogram. The default is 2%. Apply Scaling?: Select true or false. If true then the histogram will be scaled based on the visible levels. If false then the scaling is based entirely on the highest volume level found in the entire histogram (i.e., the visible portion AND the portion of the histogram that is not currently visible). Color Code Histogram?: Select true or false. If true then the histogram plot will be color coded based on the logic set in the "Buy/Sell Volume Definition" menu option. Buying Volume Color: Select the color to be used to represent buying volume. The default is green. Selling Volume Color: Select the color to be used to represent selling volume. The default is red. Default Volume Color: Select the color to be used if color-coding is not applied. The default is purple. Box Outline Color: Select the color to be used to draw the box around the histogram. The default is grey. Thickness: Select the thickness for the volume histogram plot (1-10). Line Type: Line type to use when drawing the histogram plot. Select from Solid, Dot, Dash, DashDot and DashDotDot. Default is Solid. Histogram Offset: Set the number of bars to the right of the current bar that the histogram should begin drawing. The default is 2. Histogram Width: Select how wide the histogram should be drawn, in bars. The default is 30. Dislaimer: For educational purposes only! Obviously, no guarantees whatsoever and use at your own risk. **********************************************************************/