/*********************************************************************************************** Title: TradeFlow Snapshot 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: =================== TradeFlow-Snapshot provides a color-coded, graphical view of buying pressure. Up to 5 segments can be defined where each segment contains the last X trades. The default segment sizes are 50, 250, 500, 1000 and 2000 but you can set these to whatever values you choose. Trade size filtering can also be applied so that, for example, you could restrict your analysis to only large-block trades. For each segment the buying pressure (i.e., the percent of those trades in the segment that went off at the Ask) is calculated and displayed in its own colored cell. The range will be from 0.00% to 100%, where 0.00% is very strong selling and 100% is very strong buying. A value of 50% would be neutral (i.e., buying matches selling). So using the default segment values you end up with a colored grid that displays the buying pressure over the last 50 trades, over the last 250 trades, over the last 500 trades, over the last 1000 trades, and over the last 2000 trades. This display allows you to see when the trend is changing (i.e., from buying to selling and vice-versa). When loaded, only the smallest segment you have defined will be displayed, which would be the segment size of the last 50 trades if you leave the settings at their defaults. As trades accumulate the additional segments will begin displaying (i.e., once the indicator has at least 250 trades to analyze the 2nd segment will appear, etc.) Filtering --------- The default filtering max and min sizes are from 1 to 10000, meaning that any trade with a size of between 1 and 10,000 shares/contracts will be included in the calculations. You can adjust these as needed to, for example, filter out the activity of smaller traders and focus on just what the big traders are doing. Usage Notes: =========== The TradeFlow-Snapshot 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. Define Segments: Segment #1: Define the size of the first analysis window. The default is 50 which means that the buying pressure calculation would be based off of the last 50 trades that meet the minimum and maximum trade size requirements. Segment #2: Define the size of the second analysis window. The default is 250 which means that the buying pressure calculation would be based off of the last 250 trades that meet the minimum and maximum trade size requirements. Segment #3: Define the size of the third analysis window. The default is 500 which means that the buying pressure calculation would be based off of the last 500 trades that meet the minimum and maximum trade size requirements. Segment #4: Define the size of the fourth analysis window. The default is 1000 which means that the buying pressure calculation would be based off of the last 1000 trades that meet the minimum and maximum trade size requirements. Segment #5: Define the size of the fifth analysis window. The default is 2000 which means that the buying pressure calculation would be based off of the last 2000 trades that meet the minimum and maximum trade size requirements. Cosmetics: Strong Buying Color: The background cell color to use to indicate strong buying pressure. This would be a buying pressure value over 75%. The default is lime. Buying Color: The background cell color to use to indicate moderate buying pressure. This would be a buying pressure value between 55% and 75%. The default is green. Neutral Color: The background cell color to use to indicate neutral buying pressure. This would be a buying pressure value between 45% and 55%. The default is yellow. Selling Color: The background cell color to use to indicate moderate selling pressure. This would be a buying pressure value between 25% and 55%. The default is orange. Strong Selling Color: The background cell color to use to indicate strong selling pressure. This would be a buying pressure value less than 25%. The default is red. Title Color: The color to use for the title area background in the grid. The default is light-grey. Text Color: The color to use to draw the cell text. The default is black. Font Size: The font size to use when drawing the text. Select a value between 8 and 55. The default is 11. Abbreviated Titles?: True or False. Select true and shorter titles will be displayed in the grid to save some screen space. Default is false. Display Vertical Offset: Select the vertical position on your chart where the grid should be drawn. The default is 14 pixels up from the bottom of the chart. Display Horizontal Offset: Select the horizontal position on your chart where the grid should be drawn. The default is 2 pixels over from the left of your chart. Logic: Select between "Analyze Volume" and "Analyze Trades". When "Analyze Volume" is selected (the default) the actual trade size is used in all of the calculations. When "Analyze Trades" is selected then a value of 1 is assigned for each trade, regardless of the actual trade size. Note that when "Analyze Trades" is used any filtering that you have specified is still operational and is based on the actual trade sizes. Disclaimer: For educational purposes only! Obviously, no guarantees whatsoever and use at your own risk. *******************************************************************************************************/