/*********************************************************************************************** Title: TradeFlow BarMap Indicator for eSignal By: Divergence Software, Inc. Web: http://www.sr-analyst.com ================================================================================================ Dislaimer: For educational purposes only! Obviously, no guarantees whatsoever and use at your own risk. ************************************************************************************************ Project Description: =================== The TradeFlow-BarMap indicator is an extremely useful tool for the intraday trader, regardless of the underlying methodology you use for trade entry and exit. It can be used on anything from 1-tick bars to 480-min bars, though typically it would be best used on bar intervals of 15-min or lower. In a nutshell, it tracks the buying/selling at each price increment of the currently-developing bar and displays this information in a color-coded fashion (i.e., green=buying red=selling). On the current bar it can also be configured to display either the net Delta at each price increment (i.e., contracts traded at Ask minus contracts traded at Bid) or to display contracts traded at the Ask AND contracts traded at the Bid. In addition, it has the same trade-size filtering logic as the other TradeFlow indicators. So, for example if you set the Minimum Trade Size to 50 and the Maximum Trade Size to 100 then the output of the BarMap indicator would be based solely on trades where the number of contracts/shares bought or sold was at least 50 and less than or equal to 100. A useful feature if you want to focus in on what the bigger traders are doing. The colors can be adjusted via the indicator menu, but the default color scheme is as follows: Bright Lime - For this price increment the net Delta is positive (more buyers than sellers) and this particular increment represents the highest absolute value Delta out of all the increments that currently comprise the bar (i.e., the imbalance between buyers and sellers was greatest at this price increment). Pale Green - Indicates that at this price increment the net Delta is positive in that there are more buyers than sellers. Pale Yellow - Indicates that at this price increment the net Delta is neutral in that there are an equal number of buyers and sellers. Pale Red - Indicates that at this price increment the net Delta is negative in that there are more sellers than buyers. Bright Red - For this price increment the net Delta is negative (more sellers than buyers) and this particular increment represents the highest absolute value Delta out of all the increments that currently comprise the bar (i.e, the imbalance between buyers and sellers was greatest at this price increment). On any given bar you will only have one "Bright" price increment (i.e., Bright Lime or Bright Red) so you can quickly see the price level that had the highest Delta (imbalance, or difference between Buyers and Sellers) as well as the direction (Bright Red - Selling and Bright Lime - Buying). TradeFlow-BarMap can be loaded into any intraday chart (tick or interval) at any time. The defaults are set with the SP eMini in mind so you may need to adjust the Min/Max trades sizes to values that make sense for the symbol you are using. Usage Notes: =========== The TradeFlow-BarMap indicator uses data that is available in realtime only and, as such, it provides no historical plot (i.e., it begins operating from the current price bar when it is loaded). Indicator Parameters: ==================== Define Trade Size to Monitor: Minimum Trade Size: The smallest trade size (in shares/contracts) for a trade to be considered for purposes of accumulating data. Default is 1. Maximum Trade Size: The largest trade size (in shares/contracts) for a trade to be considered for purposes of accumulating data. Default is 10000. Instrument Tick Size: Set the tick/pip size of the instrument you are charting. The default is 0.25 which is correct for the SP Emini. Very important that you set this value correctly. Cosmetics: Strongest Buying Color: See description of color codes and how they work at the top of this document. Default is lime. Buying Color: See description of color codes and how they work at the top of this document. Default is pale green. Neutral Color: See description of color codes and how they work at the top of this document. Default is pale yellow. Selling Color: See description of color codes and how they work at the top of this document. Default is pale red. Strongest Selling Color: See description of color codes and how they work at the top of this document. Default is red. Show Text? True or false. If true then text will be displayed to the right of each price increment on the current bar. Default is true. Text to Display: Select from "Ask/Bid" or "Delta (Ask-Bid)". If "Ask/Bid" is selected then to the right of each price increment of the current bar the total number of contracts traded at the Ask and the total number of contracts traded at the Bid will be displayed. If "Delta (Ask-Bid)" is selected then the net of contracts traded at Ask minus contracts traded at Bid will be displayed. Default is "Ask/Bid". Text Color: The color to use when drawing the text. Default is black. Text Font Size: The font size (from 8 to 55) to use when drawing the text. Default is 10. Text Offset: How far, in bars, to shift the text display to the right from the current bar. Default is 2. Disclaimer: For educational purposes only! Obviously, no guarantees whatsoever and use at your own risk. *******************************************************************************************************/