/*********************************************************************************************** Title: TradeFlow Pressure 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-Pressure indicator provides a filtered view of either trade volume (i.e., total number of shares/contracts) or trades (i.e., total number of individual trades) using a rolling window based on bars. Specifically, the TradeFlow-Pressure indicator calculates the ratio of buy volume to sell volume (or trades if "Number of Trades" is selected) over the number of bars specified and plots this value in an indicator pane. Because of the rolling window feature (which reduces noise) this indicator is very useful for identifying divergences (i.e., price forms a higher-high while the TradeFlow-Pressure indicator forms a lower-high and vice-versa. The 'filtering' aspect allows you to focus your attention on only those trades that fall between a minimum and maximum trade size, which you specify using the indicator menu. Using this tool you can, for example, filter out the noise of the smaller traders and focus on what the larger traders are doing. The default min/max trade sizes are set up with the S&P eMini in mind but, again, you can customize the values to work with most futures contracts and all stocks. This indicator will NOT work with currencies. The plot is implemented as a histogram. A value above the zero-line indicates a prepoderance of buying/ covering while a value below the zero-line indicates a preponderance of selling/shorting. Note that the indicator will not begin plotting until the number of bars specified in the window size parameter have completed. Usage Notes: =========== The TradeFlow-Pressure 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). IMPORTANT!!!: 1. If the indicator is refreshed or reloaded during the trading day, the plot will be cleared and will begin again from the current price bar. There is no way to restore the plot once the indicator has been refreshed or reloaded. Probably best to load the indicator into its own chart that you won't fiddle with during the trading day. If you are going to experiment with settings (which is a good idea) then do so after-hours using the eSignal Tick Replay feature, which allows you to walk through an entire trading day (tick-by-tick) at up to 200-times faster than 'realtime'. 2. Read #1 again. Recommended usage would be to load it into a lower-interval chart (perhaps a 1-min or 30-second chart or even a tick chart) before the market opens and then let it run. If possible, load the indicator before 9:00am EST and watch the pre-market activity. 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. Window Size: The number of bars over which to calculate the ratio of buying to selling. The default is 10. You can input a value between 1 and 500. Buy Pressure Color: The color to use for plotting the histogram bars that represent buying. Default is green. Sell Pressure Color: The color to use for plotting the histogram bars that represent selling. Default is red. Thickness: The plot thickness to use for the histogram. Default is 2. Range is 1-10. Line Type: Select from Solid, Dot, Dash, DashDot, DashDotDot. Default is Solid. Reference Line Color: The color to use for plotting the reference line (zero-line). Default is black. Thickness: The plot thickness to use. Default is 1. Range is 1-10. Line Type: Select from Solid, Dot, Dash, DashDot, DashDotDot. Default is Solid. Logic: Select between "Analyze Volume" and "Analyze Trades". When "Analyze Volume" is selected (the default) the indicator will calculate the ratio of buy volume to sell volume over the window size specified. When "Analyze Trades" is selected then each trade will be evaluated as a unit for purposes of the calculation of the ratio (i.e., each trade carries equal weight, regardless of the size of the trade). Disclaimer: For educational purposes only! Obviously, no guarantees whatsoever and use at your own risk. *******************************************************************************************************/