You are previewing Modeling Maximum Trading Profits with C++.
O'Reilly logo
Modeling Maximum Trading Profits with C++

Book Description

This ebook does not provide access to the CD-ROM files.

"Mr. Salov has taken one of my favorite creations – Perfect Profit – and provided an expanded description of his interpretation of it and put it in your hands with the included software. Like I said fifteen years ago, Perfect Profit is an important tool for the trading system developer. See for yourself."

—Robert Pardo, President, Pardo Capital Limited

"A very in-depth reference for programmers that should serve well into the future. The code herein lends itself well to other syntactically similar programming languages such as Java, PHP, and C#."

—Ralph Vince

The goal of trading is to make money, and for many, profits are the best way to measure that success. Author Valerii Salov knows how to calculate potential profit, and in Modeling Maximum Trading Profits with C++, he outlines an original and thought-provoking approach to trading that will help you do the same.

This detailed guide will show you how to effectively calculate the potential profit in a market under conditions of variable transaction costs, and provide you with the tools needed to compute those values from real prices. You'll be introduced to new notions of s-function, s-matrix, s-interval, and polarities of s-intervals, and discover how they can be used to build the r- and l-algorithms as well as the first and second profit and loss reserve algorithms. Optimal money management techniques are also illustrated throughout the book, so you can make the most informed trading decisions possible.

Filled with in-depth insight and expert advice, Modeling Maximum Trading Profits with C++ contains a comprehensive overview of trading, money management, and C++. A companion CD-ROM is also included to help you test the concepts described throughout the book before you attempt to use them in real-world situations.

Table of Contents

  1. Cover Page
  2. Title Page
  3. Copyright
  4. Contents
  5. Preface
  6. Acknowledgments
  7. CHAPTER 1: Potential Profit as a Measure of Market Performance
    1. PROFIT AND POTENTIAL PROFIT
    2. PRICE FLOW AND C++
    3. PARDO'S POTENTIAL PROFIT
    4. CONCLUSIONS
  8. CHAPTER 2: Potential Profit and Transaction Costs
    1. WHAT IS A TRADING STRATEGY?
    2. PROPERTIES OF POTENTIAL PROFIT STRATEGY
    3. TRANSACTION COSTS
    4. TRANSACTION COSTS AND C++
    5. PROFIT-AND-LOSS FUNCTION
    6. CONCLUSIONS
  9. CHAPTER 3: R- and L-Algorithms for Maximum Profit Strategy
    1. S -FUNCTION AND S -MATRIX
    2. S -INTERVAL AND ITS BOUNDARIES
    3. THE BEST BUYING AND SELLING POINTS ON THE S -INTERVAL
    4. POLARITY OF S-INTERVALS
    5. R -ALGORITHM
    6. L -ALGORITHM
    7. C++ IMPLEMENTATION
    8. C++ PROGRAM EVALUATING POTENTIAL PROFIT
    9. CONCLUSIONS
  10. CHAPTER 4: Money Management and Discrete Nature of Trading
    1. DENOMINATIONS
    2. INDUCTION AND TRADING ACCOUNT SIZE
    3. GROWTH FUNCTION AND OPTIMAL B
    4. DISCRETE NATURE OF TRADING
    5. Evolution of Account with Constant A w , A l , M , b
    6. Evolution of Account with Nonconstant A w and A l
    7. CONCLUSIONS
  11. CHAPTER 5: Money Management for Potential Profit Strategy
    1. THE BEST ALLOCATION FRACTION FOR POTENTIAL PROFIT STRATEGY
    2. SELF-FINANCING RESTRICTION
    3. MINIMAL A 0
    4. ACTIONS AND POSITIONS TEST4.CPP
    5. THE FIRST AND SECOND P&L RESERVES
    6. RULES FOR OFFSETTING POSITIONS
    7. CLASSES TRADE AND TRADES
    8. CLASS POSITION
    9. USING POSITION AND TRADES TEST5.CPP
    10. CONCLUSIONS
  12. CHAPTER 6: Best to Better
    1. ALGORITHM FOR THE FIRST PROFIT-AND-LOSS RESERVE STRATEGY
    2. ALGORITHM FOR THE SECOND P&L RESERVE STRATEGY
    3. PROGRAM APPLYING THREE ALGORITHMS
    4. CONCLUSIONS
  13. CHAPTER 7: Direct Applications
    1. ONLY IN THE PAST
    2. SLEEPING BEAUTY
    3. WAR AND PEACE
    4. CONCLUSIONS
  14. CHAPTER 8: Indicators Based on Potential Profit
    1. PERFORMANCE MEASURES AND INDICATORS
    2. STRATEGY EVALUATION
    3. CONCLUSIONS
  15. CHAPTER 9: Statistics of Trades and Potential Profit
    1. STATISTICAL PROPERTIES OF TRADES
    2. PROGRAM EVALUATING STRATEGY AND TRADES
    3. CONCLUSIONS
  16. CHAPTER 10: Comparing Markets
    1. TIME FRAME AND PRICES
    2. SELECTED CONTRACTS
    3. DATA FILE FORMAT
    4. RESULTS OF APPLICATION OF MAXPROF3 AND EVALUATE
    5. MULTIMARKET POTENTIAL PROFIT ALGORITHMS
    6. EPILOGUE
    7. CONCLUSIONS
  17. Bibliography and Sources
  18. About the CD-ROM
    1. INTRODUCTION
    2. SYSTEM REQUIREMENTS
    3. USING THE CD
    4. WHAT'S ON THE CD
  19. Index