Skip to playerSkip to main content
  • 6 years ago
Program 80 uses a Time and Sales provider to analyze trade information. Since in TradeStation Time and Sales data is not available historically, program 80 stores and retrieves calculated values using Streamwriter and Streamreader writing to and reading from a text file on the user’s hard drive (the name and location of the file being defined by a user input.This means that once data has been processed and a calculation has been made, the result for those bars will be avaialble the next time the program is opened on a specific chart.

FIVE PERCENT VOLUME RATIO CALCULATION
On the closing tick of each bar an analysis of the vectors is made of the trades with the top five percent of size divided by the total volume for a bar. This is calculated for all trades, for trades at ask price, and for trades at bid price. The calculation is done using the AnalyzeVector method. A plot is made of these values. The negative value of the trades at ask price ratio is plotted.

LARGEST TRADE SIZE CALCULATION
Since all the trades are already sorted in the vector by size, it is a trivial matter to find the largest trade size by retrieving the value stored in the zero position of the respective vectors. This is done using the AnalyzeVector method. This is done on the last tick of the bar and the values are plotted. The negative value of the largest trade ask price is plotted.

The results or both the five percent volume ratio and the largest trade size calculations are written to a text file using Streamwriter with the BarDateTime as an index.'

Join the markplex email list: https://markplex.com/contact/join-markplex-email-list/

For more information about program 80 and for downloads go to: https://markplex.com/eas…/program-80-bid-ask-trade-analyser/

Category

📚
Learning
Comments

Recommended