Welcome To YOUR Stupendous Retirement Fund
July 29, 2024
Welcome To YOUR Stupendous Retirement Fund covers three aspects connected to the One Percent Per Week stock trading program: (1) the choice of the trading instrument, (2) a short walk forward on the strategy, and (3) ways of financing it all.
I want to improve on this program and find generalized and worthwhile methods to increase its longterm CAGR. The added code should increase its current highperformance level (>50%). I also want to reduce the impact of drawdowns, not eliminate them; I will not be able to do that, but I will reduce their drag on performance and overall impact on the system. That I can do, and you can too.
Parts I to VIII of my series of articles on the One Percent Per Week stock trading program were to understand this simple stock trading strategy better. The program (v5) has only three trading rules: all trades are limited to one week, the strategy takes a long position on Mondays if allowed, and will take a 7% or 8% profit target if it occurs before the week is over. That's it.
The One Percent a Week Stock Trading Program  Part VIII
July 15, 2024
Part VIII of the One Percent Per Week stock trading program will present more on the strategy's background, simulation results, and future potential. It is a prelude to directing program improvements and determining where and how they will apply within the program's structure.
In Parts I to VII of the One Percent Per Week stock trading program, I provided some background, simulations, math, and explanations for why this trading strategy can reach its highperformance levels.
Anyone could redo all the simulations performed using this free WealthLab trading program. I am not the author, but I can use and modify that program and appreciate the ideas on which it is built.
I hope you come to appreciate this program and its potential as much as I do. There is no hype, no secret sauce, no scam, just the application of simple logic anyone can replicate. For one thing, it could help you build your retirement fund much faster than you thought possible. But as I see it, it is always your choice whether to do such things or not.
The One Percent A Week Stock Trading Program  Part VII
July 8, 2024
Part VII of The One Percent a Week stock trading program is intended to cover finding ways to protect the strategy from itself. In the process, this will change parts of its trading procedures. While at it, I will also push to increase its market exposure with new code aiming for 100% exposure, presently at about 51%. It might be one of the easiest ways to improve the strategy's longterm outcome since, nearly half the time, the available capital is idle. Putting it to good use should be sufficient to increase total return.
But first, I want to demonstrate that the results shown in previous articles were simply the outcome of the trading procedures used. There was no secret sauce, no hype, just common sense.
You merely participated, half the time, in the market for 14.31 years and were rewarded for it.
Parts I to VI of this series covered a lot of ground. I first improved the One Percent Per Week trading strategy, then leveraged it and even set up a 130/30 marketneutral portfolio. At each step, I raised the portfolio's longterm CAGR to unprecedented heights while at the same time maintaining critical portfolio metrics stable. The demonstration was to first show the strategy's upward CAGR potential before curling it in, at least attempting to reduce the downside effects of shortterm trading. If I wanted to push the strategy further, I would know I could.
The One Percent A Week Stock Trading Program  Part VI
June 24, 2024
You want to win, and you want to win big.
You are on a mission to build an investment and retirement fund for yourself and your family.
The One Percent a Week Stock Trading Program  Part VI will unravel more of its hidden potential and show that the strategy is highly scalable. I will also cover leveraging the portfolio for higher profits and even go for marketneutral scenarios.
This series of articles should help you achieve your goals. The last article (Part V) ended with a CAGR of 56% over 14.31 years, and I would like this strategy to do even better. But first, you need to understand what the strategy does to gain the confidence and determination to make it work for you.
Part I to Part V of this series are the foundation for what follows. They provide the context to understand what the strategy can and cannot do. The primary purpose was to evaluate its return potential, validity, and viability based on historical market data and, more importantly, to set realistic expectations for the future.
The One Percent a Week Stock Trading Program  Part V
June 13, 2024
Part V of this series tries to answer why and how this One Percent Per Week strategy works and why it is expected to continue doing so. This program is technically playing a 3xleveraged QQQ, thereby increasing its potential return and volatility by a factor of three. The strategy is leveraging the top 100 companies on NASDAQ, and they are not going bankrupt any time soon.
The One Percent Per Week program says it all. Its math expectancy and objective are simple. That 1% per week is a 67.7% CAGR: (1 + 0.01)^{52} = 1.6777. Over the long term, it would be almost impossible to achieve by following conventional 60/40 investment portfolios.
IF, based on whatever your shortterm trading activities, you could get close to those results, you should be more than satisfied with your achievement. Currently, only a few might get close to that level. But things are changing. Skills and trading methods are improving all the time. Simple and brilliant methods are out there to help you achieve your goals.
The One Percent Per Week program is a simple trading strategy. You could execute it by hand in a few minutes a week. You could achieve a 50% CAGR for mostly sitting it out. One decision on Mondays, and possibly another on Fridays. In between, you let your limit order wait for its profit target exit. The trading script is simple enough that you could program it in most computer languages.
The One Percent A Week Stock Trading Program  Part IV
June 4, 2024
The One Percent a Week Stock Trading Program  Part IV will look closer at the strategy's stoploss and profit target settings. We will analyze these preset constraints and their impact on a portfolio's outcome. For shortterm traders, we will show that "Cutting your losses and letting your profits run" might not work as they thought it should.
Part I, II, and III unraveled a simple trading strategy anybody could use; it is free and available from WealthLab. With a few minor modifications to the program, I changed the strategy's trading outlook and behavior in what should be considered a continuously turbulent stock market.
It responded with an impressive 56.66% compounded annual growth rate (CAGR), and this, over the last 14 years.
The One Percent a Week Stock Trading Program  Part III
May 22, 2024
In PART II, I covered STEP 1 of the modifications I would like to make to the free WealthLab, One Percent Per Week stock trading script. In PART III, I will elaborate on the strategy's properties and demonstrate that applying a traditional stoploss will negatively impact the final results. Also, stating better drawdown protective measures will be needed.
With only a few minor and wellplaced program modifications, I changed the script's underlying trading philosophy and increased its CAGR to 56.66% over the last 14 years. This outcome far exceeds what we usually find in published trading strategies over the net. Yet, what was proposed was simply gaming a gambling strategy where the only reason to get in a trade was because it was a Monday.
The One Percent Per Week strategy is so simple that anyone with the means could do it. You don't even need a computer program. You could do it all by hand in a few minutes a week and be completely independent while building up your financial future. But I suspect you will still want to use the program.
The One Percent a Week Stock Trading Program  Part II
May 13, 2024
The One Percent a Week stock trading program's original mission was to buy at a 1% discount to each Monday's opening price. And sell at any time during the rest of the week with a 1% profit or liquidate the position at whatever price on Friday's close at the latest. Whether it be for a lower profit than 1% or a loss, which could occur often.
In the One Percent a Week Stock Trading Strategy  Part II, I will demonstrate a version of the program that can get close to it with no added effort. These modifications are also something you could do.
The 1% per week is ambitious; it's a yearly return of 67.7%, (1 + 0.01)^{52} = 1.677. It makes the strategy's theoretical objectives very appealing. Even getting close would be appreciated.
This free trading strategy will serve as our starting point and include the modifications outlined in the previous article (see Part I).
The One Percent a Week Stock Trading Program  Part I
May 2, 2024
This adventure starts with another trading program that is freely available on WealthLab. This one is interesting, but what's more, it's simple. Its trading method, despite its simplicity, could work for years, even a lifetime, especially when building a retirement fund that will also be your legacy fund. Lasting a long time is mandatory and an essential requirement, even a prerequisite to undertaking such a journey.
The One Percent a Week program places a limit buy order at one percent below the opening price every Monday. Once in a trade, it will liquidate its position after reaching its profit target of one percent at any time during the week. If not, it will close the position near the close on the last trading day of the week (meaning Friday near the close).
The question is: Are the rules of engagement sufficient to generate worthwhile profits?
The LongTerm Stock Trading Problem  Part II
April 22, 2024
My previous article, The LongTerm Stock Trading Problem  Part I, presented a table analyzing a 25yearold planning for a longterm stock trading portfolio to last a lifetime. He or she, intending to retire at age 65 and continue holding their stock portfolio while withdrawing a yearly income stream for their living expenses and more.
The calculations were from the reference point of a 25yearold living up to 95. The timeline was preset, as was the initial capital of $100k. The choices offered were the growth rates at which his or her portfolio might grow.
As the article referenced shows, some of those rates were easy to get. For instance, simply holding QQQ over the period could give an estimated 15% CAGR, which would already be more than reasonable once retired and leave an enviable legacy to their children.
The LongTerm Stock Trading Problem
April 15, 2024
The objective is simple: build a longterm investment fund to provide a steady and meaningful income stream once you retire and leave a worthwhile legacy for your children.
You can do all that by building a longterm stock portfolio. Such an endeavor can take decades. However, you are not limited to only using stocks to do the job; you could use other longterm appreciating assets such as real estate, building businesses, amassing collectibles, or whatever you like, including doing your job.
This article will only discuss selfmanaged stock portfolios as a tool for creating a multipurpose and longlasting investment and retirement fund.
The MoonPhaser Stock Trading Program
April 6, 2024
Way back in the day, on WealthLab (circa 2004), there was a MoonPhaser trading script. The general idea was simple: you bought shares on the full moon and sold them on the new moon. The program has been free and operational since then, and contrary to popular belief, it did not break down over time. It still makes money and outperforms SPY, even after what should be considered a 20year walk forward on market data it has never been aware of since its development stage 20 years ago.
Price market data was not considered in its design. The tradetriggering mechanics were unrelated to market prices, whether past or future market data. All it cared about was the phase of the moon. No one makes a 20year walk forward due to changing market conditions and the total waste of time it would represent. But here, the trading procedure is outside market conditions and could last centuries should there still be a market to trade in by then.
Anticipating A Stock Portfolio's LongTerm Outcome
March 26, 2024
After over ten years, I am switching back to WealthLab. It is an excellent program with all its new features. I will be able to do whatever I want, whether it be on single stocks, groups of stocks, or portfolios of strategies.
The primary objective of any stock trading strategy is to meaningfully outperform market averages and make you money, no matter which software you use. Otherwise, why go that route? You could buy a lowcost market index proxy and expect those longterm market averages.
Trend Or No Trend Revisited
February 2, 2024
In late 2011, I wrote an interesting article titled: Trend Or No Trend. It tried to answer the question: Do we need a trend to define the direction of our trade decision process? What if we did not use any?
The article compared eleven different trading strategies. Each has its procedures and trading rules. All the simulations used the same 43 stocks over the same time interval, from December 2005 to October 2011 (1,500 trading days or 5.83 years). The period includes the 20072008 financial crisis. None of the strategies escaped that market meltdown.
The 1,500 trading days were enough to gather information and worthwhile statistics. These simulations are more than ten years old. So, what do they have to teach us today?
An Old Trading Strategy Revisited: DEVX8
January 21, 2024
Over the last few weeks, I spent a lot of time fixing links in my articles that were causing 404 errors (file not found messages). These URLs had been changed for some reason or another. I have not determined the cause. Most of the job is now done: links to and within the 455 articles have been repaired. Some links within PDF and HTML files remain. These will take longer since I have to return to the programs that created them to correct the links. But I will get to it and do the job.
I write this note to apologize for any inconvenience it might have caused anyone.
While fixing the link problem, I reread articles from when I started this website in 2011. Over the years, I chronicled programs I was working on in my quest to find better longterm stock trading strategies. Trying to respond to the following: if a trading strategy cannot last or remain profitable, what is it good for since it could ultimately make you lose money? The answer was to design trading strategies with that in mind. They first had to last and be profitable.
The Big Open Project
December 13, 2023
I call it The Big Open Project because it is BIG. It is so big it could change the world's wealth distribution as we know it over the next halfcentury. And it is a wideopen invitation to anyone who can carry it out.
It will require entrepreneurs and their organizations to design stock trading software of significance. We have models like the Medallion Fund of Renaissance Tech, which has generated outstanding results for years and years.
The objective is to build some of the largest fund management organizations of modern times, all within 30 years or less.
It is an ambitious project, and it can be duplicated by many. I will provide the background, the methods, and the equations to guide you on your way. You be the entrepreneur you can be.
Reflexions On A Retirement Fund
December 4, 2023
In writing Reflexions On A Retirement Fund, my primary intent was to give anyone with the means the ability to build a meaningful retirement fund. That is, large enough to provide you with a prosperous and welldeserved retirement for as long as you may live while providing a more than worthwhile legacy for your loved ones. Or for any other purposes you might fancy.
I will show that it is relatively easy to build this retirement fund even though it is as hard as can be. Only a minority manages to do so, and I think anyone could be part of this should they have the conviction they can do it and give it enough time.
Your Investment And Retirement Plans
November 12, 2023
I want to cover two different investment plans. The first should be the most important to you, while the second is your backup plan – your retirement insurance policy.
You will have the advantage of knowing beforehand that executing your longterm retirement plan will succeed. It should give you more confidence to undertake your more risky investment plan. Knowing that whatever the outcome, whether it succeeds or not, you will win the game anyway. Due to your assured backup, your longterm retirement plan.
At the current pace, within 10 to 15 years, government pension plans might run out of money unless they can increase the return on their funds, increase contributions, raise the retirement age, or reduce benefits. They have not been able to remedy the situation over the last 20 years, so what would make you think they will be able to do so in the future? I have no confidence they will.
Catching Up On Your Retirement Fund
Oct. 2, 2023
Catching Up On Your Retirement Fund (Getting Near 45 Years Old. Time To Make Up For Lost Time).
My friend asked me, "How about people starting their retirement fund later in life, like at 45, rather than the 25 to 35yearold scenarios you already presented?"
My recent writings were on how anyone could build their retirement fund on their own. It was shown there were considerable advantages in doing so. The most valuable was providing a significant and increasing income stream for the rest of one's life once they retired. The emphasis is on the word increasing.
This paper, Catching Up On Your Retirement Fund, provides the underlying equations to rebuild and validate any of the presented scenarios. You can fire up your favorite spreadsheet and redo everything yourself. So, there is no secret sauce, only common sense stuff. If you do this, it will result in that kind of thing. The big question is: will you dare do any of it for yourself and your children? You will figure out ultimately that money spells freedom.
How To Make It Anyway
Sept. 18, 2023
This new article, How To Make It Anyway, or How To Retire With A Lot More Than Enough, is about how you could design your longterm investment portfolio such that:

It will survive for a long time, a very long time

Outperform usual market benchmarks like the S&P 500

Continue to grow while in retirement

Increase your monthly retirement income every year

Require little of your time

Provide a substantial legacy for your loved ones.
A complete recipe for doing so is provided. It is all explained and supported by mathematical equations. The emphasis is on your longterm retirement needs. All the while having it under your control before and after retiring. The primary objective is to give you the financial freedom and peace of mind you aspire to.
Impact Of Fees On Your Retirement Fund
Sept. 5, 2023
In a previous paper, Retire A MultiMillionaire, I made a case for an individual to selfmanage his/her retirement fund. It was proposed in that paper that building your fund around the QQQ ETF could be sufficient to outperform market averages.
The case was well documented and presented several scenarios on how a person could enhance performance. There is a difference between mutual funds, ETF funds, and market averages. For instance, mutual funds have higher fees than exchangetraded funds.
I will use Table #3, as presented in the abovecited article, as a base for comparison. Here it is again:
Retire A MultiMillionaire
August 29, 2023
RETIRE A MULTIMILLIONAIRE  A Roadmap On How You Could Do It gives you the understanding, the blueprint, and the methods on how you could do it, that is, retire a multimillionaire.
This paper has no hype, only ordinary stuff you can do yourself. Some of it requires a single decision. But that is up to you.
You will have two investment periods to consider. The first is up to retirement age, and the second starts after you retire. Simple equations govern both phases.
I propose you build your retirement fund using monthly contributions, except you will be the one to manage it to get better returns. An administrative decision could add millions to your retirement fund.
Sitting On Your Bunnies Might Be Your Best Investment Yet
August 14, 2023
This paper: Sitting On Your 'Bunnies' Might Be Your Best Investment Yet will show you have a choice in building a longterm stock portfolio designed to serve an increasing income stream of significance while in retirement and that your choice will be in the investment methods you will use. The emphasis is on an everincreasing income stream while in retirement.
The expected overall performance level of your stock portfolio will depend on the average rate of return you can achieve or extract over the entire investment period. Essentially, you will have to choose your rate of return from your available choices.
The big question is: how much will YOU need?
SelfManaged Retirement Funds
July 6, 2023
This short paper, SelfManaged Retirement Funds, makes the case that one should look beyond their retirement date and see the legacy they can leave behind to their loved ones or any other purpose or rationale.
There are two phases in building a retirement fund. The first is to build that retirement fund up to retirement age. And the second is to have that fund provide you with a sufficient income stream that leaves you worryfree with the ability to do whatever you want. Make your retirement fund so large that, whatever your lifestyle, you are only nibbling at it.
Make Yourself A Glorious Retirement Fund
May 29, 2023
This paper: Make Yourself A Glorious Retirement Fund, has a simple proposition. You manage your retirement fund in two stages. One: up to retirement age 65 (your choice). And two: the after retiring, where you can withdraw from your fund the income stream you want while your fund can continue to grow, thereby continuously increasing your retirement income.
Make Yourself A Glorious Retirement Fund is more than hinting that you have some work to do. And that it is in your best interest to set up and control your own retirement fund, even during retirement. It is a continuation of the previous paper titled: The Age Of The Individual Investor, which set the foundations for this one.
The Age Of The Individual Investor
April 18, 2023
This new and free paper,  The Age Of The Individual Investor  addresses the future of everyone. It makes the point that a single and simple equation will totally change the world we live in. Not because it is the nature of things to change but because of this notion of profit.
Since everyone having the means to do so will try to manage their longterm funds or at least preserve some of what they have earned, they will be looking for ways to select growing assets. This search for profit will be a significant societal driver of change for the next 50 to 100 years.
First, there is the basic need to make a buck for a living. But, more importantly, there is also the need to profit from one's investments, the necessity of building a nest egg, no matter the nature of those investments.
Make Yourself A Bigger Retirement Fund
March 13, 2023
My new book, Build The Retirement Fund You Deserve. Be Rich, Be Happy could help you build your retirement fund while leaving you in control of it all up to retirement age 65 and after that for as long as you live. You would do it yourself, so there would be no intermediaries, management fees, or intervention from anyone. Moreover, while in retirement, you could withdraw funds at your own pace without being dictated to or bothered by some financial organization or government regulation. You would be in charge, in control. It would be your funds, and no one could force you to do anything.
The Necessity of Your Retirement Fund
March 5, 2023
My new book: Build The Retirement Fund You Deserve. Be Rich, Be Happy deals mainly with the impact of the future value formula may have on your retirement and how it will change the world as we know it. All the ingredients needed for this massive societal transformation have never been gathered in this fashion before.
The Future Value equation is FV = PV (1 + g)^{t}. The formula is rather ordinary and has been around for centuries. It starts with the Present Value of some asset to which we apply a growth rate (g) over a number of years (t). This formula will significantly impact the world in the coming decades.
Build The Retirement Fund You Deserve
Feb. 28, 2023 NEW BOOK RELEASED
My new book: Build The Retirement Fund You Deserve. Be Rich, Be Happy is for either individuals wishing to build their retirement fund to enjoy the freedom and independence its proceeds can bring or for businesses and financial institutions having to build longterm funds for whatever purposes.
Build The Retirement Fund You Deserve will give you a recipe to grow your retirement fund over the long term while taking little of your time. So, get ready to be amazed by the wonderments of longterm compounding.
For individuals, this book could change your life and your children's lives. Large institutions could significantly increase their financial assets. But wait until you have read it all. It will change your mindset. Guide you in doing the stuff you need to do, not only for yourself but also for your loved ones.
Your Retirement Fund
Feb. 26, 2023
In my new book scheduled for an early March release: Build The Retirement Fund You Deserve. Be Rich, Be Happy. I cover a trading strategy based on the QQQ ETF and more.
Here is an equation from my book that should guide anyone in building their retirement fund:
We have a future value formula with five 20year periods at varying growth rates and independent withdrawal rates for each period after the first 20 years. As long as the growth rate is superior to the withdrawal rate, the fund will continue to increase over time, even after 100 years.
Your Retirement, Your Time, Your Money
Dec. 2, 2022 Also available in PDF
You know you should build a retirement fund to last you a lifetime since you also know that without it, your retirement might not be as pleasant as it could be, moneywise, that is. The first hurdle, evidently, is money. If you do not reach retirement with enough, you will probably be missing out. The second hurdle, not surprisingly, is your age. If you start too late, you might not have enough time to make it worthwhile. And the third hurdle is you. Will you have the skills and perseverance to build that investment portfolio in the first place?
You are the one to decide what you want to do. Find ways to execute the needed tasks to get there. You will always be at the center of it all, no matter how you want to look at it. Every investment decision will matter, but mostly, only to you, since you will be the one winning or losing your own money. You remain the one, under market uncertainty or whatever happens to make all those decisions, even if by proxy. Having someone else do the job for you is your decision too.
A Walkforward Example
Oct. 10, 2022
Here is a post I made (as is) about a walkforward on a QuantConnect thread. It should be to your benefit and, therefore, worthwhile.
The post presents one particular pitfall of automated trading, and that is no matter how promising a trading strategy might be, it could still go wrong and not perform as expected.
I would like to use a version of the "In & Out" strategy (frozen in time since October 2021) as a oneyear walkforward example.
The price data after October 2021 will be totally unknown to the strategy. It is assumed the strategy will continue to do what it was designed for and simply execute its code. After all, it was designed to do just that.
LongTerm Trading Strategy Planning
Oct. 3, 2022 Also available in PDF
Over the past year, I wrote a lot about a freely available trading strategy rebalancing QQQ's 100 stocks on a weekly basis.
It started with A Trading Strategy Of Interest (see the 13 related articles listed below). The strategy had nothing going for it in the sense that even if you used it as is, it would not outperform its Buy & Hold equivalent.
In fact, holding QQQ outright for the duration would have produced slightly better results than using that program. Not by much mind you, but still less than buying QQQ and holding. Regardless, the strategy could be improved performancewise.
The strategy provided a testing ground where general trading principles could be examined. Simulations (44 in all) managed to show CAGRs of 20%^{+} over a 12.4year period. You could technically choose the strategy's performance level based on the initial preset conditions provided. This should be viewed, at least, as noteworthy.
Stock Trading Skills
Sept. 26, 2022 Also available in PDF
In playing the stock market game, maybe the very first question should be: How much trading skills do you really need? To which I would venture, in many cases, practically none or very little. The game is simply too simple. Common sense might be your best asset ever.
What you might need, however, is sufficient capital, time, and some sustainable longterm method of play. You could even outsource the whole process should you not have the time to do it yourself. But that too, has its limitations.
For some reason or other, you buy stocks, one or many at a time, at the prevailing market price and then try to resell them or hold them, hopefully for a higher price. You repeat the process as many times as you want. But, it is more something like as often as you can, within your capital constraints, available time, and trading methods.
Your Stock Trading Game
Sept. 6, 2022 Also available in PDF
Your Stock Trading Game takes a look at trading stocks with a longterm perspective. It will use equations as a guiding light to higher portfolio returns. These equations will impose trading limitations as well as unleash a portfolio's longterm potential. If you do not plan your future or have no idea of where you are going, where do you think you will end up?
In my previous article, Basic Portfolio Math, we were shown 3 basic portfolio equations, all giving the same answer. From a world of shortterm quasirandomness, you could extract longterm expectations or at least some tools to estimate where it was all going based on your trading procedures and constraints.
You had choices to make from the start that would greatly impact the future outcome of your stock portfolio or retirement fund.
Basic Portfolio Math
Aug. 30, 2022 Also available in PDF
Basic Portfolio Math makes the case that certain stock portfolios can tell a lot about their future longterm outcomes based on their past simulated trading behavior.
It could help "predict" within a few percentage points their future value, even some 10 years hence and more.
This goes against many caveats we see about not knowing the future of an automated or discretionary trading system since its past is supposedly no guarantee of its future. True, but still, you could get pretty close to your forecasted expectations. Being able to make such an estimate or forecast is already a plus.
Recovering After A Bear Market
June 26, 2022 Also available in PDF
No matter how we trade stocks, our longterm objectives are pretty much the same as everyone else.
We want our portfolios to go up in value, not down.
We find the upside the most reasonable outcome for our investment strategies since it is why we made them in the first place.
Nevertheless, we have to plan for our portfolio's recovery after a significant decline, not by planning for what was or could have been, but for what will be coming our way.
We are averse to market drawdowns; no surprise there, we all are. Unfortunately, we have a really hard time avoiding them. The market can go down, but it is our job to recover from them and do even better. My recent articles (see related articles below) provided recovery equations to do just that.
Portfolio Drawdown Protection
June 7, 2022 Also available in PDF
Portfolio Drawdown Protection will cover how we can partially protect our stock portfolio from market drawdowns.
Will be shown that even a portfoliolevel trailing stoploss can limit the damage drawdowns can inflict on longterm performance.
Any drawdown should be considered a drag on any portfolio's overall return since we not only have to recuperate the downfall but also have to replace the lost opportunity that occurred during those market declines.
We need some more background on the process. First, we will consider how we can further raise the portfolio's longterm CAGR and then add protective measures. Doing the reverse, meaning adding protective measures first, will tend to curtail, from the start, our ability to increase performance beyond certain levels due to the very early limits we want to impose on our trading strategy.
Let the strategy rise as much as it can, and then set the limits you will find acceptable in your own trading scenario. If this makes your trading strategy produce a little less, so be it.
There is a price to pay for portfolio protection. We do not need to kill our future CAGR just because we want a little protection.
Compensate For Portfolio Drawdowns
June 1, 2022 Also available in PDF
My last article Surviving Market Drawdowns, which is also available as a PDF file, covered the need to exceed average market returns. It considered drawdowns and inflation which have longterm effects on stock portfolios. The article expressed the need to compensate, if not overcompensate, for these negative factors, which tend to dampen longterm returns and thereby act as a drag on performance.
I will extend that perception by examining the impact of 5 of the most significant drawdowns of the last 40 years.
Surviving Market Drawdowns
May 11, 2022 Also available in PDF
My last series of articles tried to cover a lot of ground. It was mentioned a number of times that the stock trading strategy used needed some protective measures since drawdowns could have quite a negative impact on longterm performance.
The following is mostly an extract from my upcoming book on building up your own retirement fund. It even covers generational funds made to last decades and decades.
Whatever type of stock portfolio you have or want, the objective is to generate longterm returns higher than just the market average.
The intention, no matter how you want to play the market, is to make as much as you can without giving it back.
QQQ To The Rescue
Jan. 5, 2022
There were still a few more things to share from the QuantConnect ETF Constituents Universe thread.
I have already written six articles on this freely available trading strategy, exploring its general behavior and showing the results of some 46 simulations where three variables controlled its outcome. Variables determined by administrative decisions before the program even started.
These variables were independent of the game being played but still determined how the strategy would play out. They were the initial capital used, which evidently would have a tremendous impact on the final result, the method of weighing stock positions, and the applied leverage.
The achievable growth rate was left to the strategy's trading mechanics.
Building Your Retirement Fund
Dec. 21, 2021
The purpose of the previous 5 articles was to show the relative ease of setting up your own indexed retirement fund, manage it and prosper even with little intervention of your own. Was given a recipe on how to do just that. A single commonsense decision could get it started, one you could make at any time of your choosing.
You simply copied an imitator of a market index and followed its weighted index. The QQQ ETF was used for that very purpose, an index tracker tracking the NASDAQ 100 index. It was demonstrated that you could trade QQQ's 100 highestvalued NASDAQ stocks or simply buy QQQ outright and hold it for the duration with a slightly better CAGR, as should be expected.
Build Your Own Indexed Retirement Fund
Dec. 2, 2021
My 4 previous articles dealt with a doityourself profitable and freely available stock trading strategy using the QQQ ETF over a period of 12.24 years. From its simple procedures, other generalized notions can be extracted.
First, a recall. We had this free trading strategy essentially mimicking the NASDAQ 100 index. Thereby making it a basis for your own indexed fund. Results on 44 simulations were shown. All having two components. One: a simple stock selection procedure (totally outsourced by using QQQ constituent stocks), and two: a weekly scheduled and automated rebalancing routine (trading on whatever happened and whatever was there in QQQ at the time).
Thus, having our machine automatically trade once a week and effectively only for a few minutes since all trades were market orders. Anyone with access to money could do this, not something you would call timeconsuming either.
Take the Money and Keep it – II
Nov. 15, 2021
There was more to extract from my previous article Use QQQ  Make the Money and Keep IT.
The presented free trading strategy in that article did two simple things. One, it completely outsourced its stock selection process, and two, it rebalanced weekly. That's it.
There are no trading signals, no technical indicators, no market timing routine, and no move to the sidelines in times of market turmoil. Not even a request for your opinion, feelings, state of mind, or market analysis. Quite a simple and productive "whatever happens" strategy of the suck it up type. This trading strategy is saying that you do not need anything special to win, in fact, you do not need anything at all (except access to money). It is interesting to see how this strategy could also apply to a lot of other strategies having similar trade mechanics. Much can be learned from this pure rebalancing play.
Use QQQ  Make the Money and Keep IT
Nov. 1, 2021
However you want to trade stocks, the objective is to extract money from the process and not give it back.
It might not matter much how it is done as long as it is done (honestly and safely, evidently).
The methods used will depend on your knowledge and understanding of the game you intend to play, your trading capital, and your trading skills. This free trading strategy (Creating your own index fund) is the same as used in Part I and Part II. As said, I found the strategy interesting for the simplicity of its stock selection process, its purerebalancing play, and its overall performance.
A Trading Strategy Of Interest  II
Oct. 20, 2021
As a followup to my last post, here are some additional observations. To put this in context, the last post presented a 12.16year trading strategy simulation on a pure rebalancing play using the 100 stocks in QQQ, a weightedbymarket capitalization ETF. The strategy generated a 19.01% CAGR over the period, turning 100k into 830k or 1 Mil into 10.0 Mil with a 20.6% CAGR. Something better than most longterm market averages. The abovementioned post also showed where to get a free copy of the program.
A Trading Strategy Of Interest
Oct. 9, 2021 Also available in PDF
Recently on QuantConnect.com, a trading strategy dealing with the QQQ ETF was published. You can find it HERE, where you can clone it and then test it for yourself if you want to.
The strategy caught my interest since all it did was rebalance QQQ on a weekly basis. It represented an opportunity to study the trade mechanics of a pureplay rebalancing in motion, something I wanted to revisit for some time.
QQQ is composed of the top 100 NASDAQ stocks by market cap. What could be the interest when you could just have bought QQQ and held on over the same time interval? Higher returns? Lower drawdowns? Something to do?
The Makings of a Stock Trading Strategy – PART II
Aug. 12, 2021
This HTML file can be very helpful to anyone designing automated shortterm stock trading strategies. It has deep implications. It deals with correcting for longterm portfolio return degradation, how to fix it, and even how to reverse it.
It builds on mathematical equations used in describing the outcome of our trading portfolios and shows how easy it is to improve on these designs with simple tradetriggering techniques. As if saying that your trading procedures can be greatly improved just by requesting more and letting longterm compounding do its job.
The Makings of a Stock Trading Strategy  PART I
Aug. 2, 2021
There is math and gaming in building a longterm automated stock trading strategy. Some of it is quite elementary, and ignoring it could be unwise. The math sets limits, boundaries, and constraints on what you can or could do in trading stocks over the short to long term.
I use math to describe the game and see its limits, and when programming trading procedures, I try to enhance strengths and alleviate weaknesses within the confines of limited capital, limited time, limited knowhow, and limited resources.
Your Automated Stock Trading Portfolio
July 18, 2021
The big word in the title is "automated". The process should start with your honed discretionary trading system using your trading rules, market knowhow, and trade logic which you simply automated.
There is a lot of software out there to help you do that, not only simulate your strategy but also trade live. Why do it? Who would have guessed? Evidently, for the money. It is there, available any day of the week. Doing it right, getting close enough to your longterm goals should be more than enough and relatively easy to achieve.
On The Use of a Rebalancer, a Flipper, and a Flusher
June 6, 2021
This is another continuation of the last few articles found on my website dealing with the freely available In & Out stock trading strategy. This one is about gaining a better understanding of its trade mechanics. Without it, how could you determine what is really going on, and maybe more importantly, how could you "control" what it does? Or even better, what it will do going forward?
Forward, that is the keyword; that is where the money is. There is no real money to be made on a simulation over past market data. A simulation can only serve as a kind of feasibility study sampled out of the gazillions of other choices that could be made. Why is this trading strategy profitable? How could you make it even more so going forward? Those are questions in need of answers.
Making Money with no Fault of Your Own
May 1, 2021
Of the published automated stock trading strategies, you are presented with a diamond in the rough once in a while. You either ignore it or recognize it as such and try to find out if, indeed, it will have some real value after being cut and polished. It is a choice you have to make. You will still have to work to extract that gem and then enhance its value. To your credit, this is a very simple strategy.
The In & Out Trading Strategy  Analysis
April 1, 2021
This is a followup to my last article Basic Stock Portfolio Math. Trying to provide a different look at the inner workings of the In & Out stock trading strategy, which is freely available on QuantConnect, where you can modify it at will. The intent is to show how this strategy is making its money. It should prove interesting. The strategy is composed of only a few parts: a stock selection process, a trend definition section, and a trade execution method. Nothing very complicated.
Basic Stock Portfolio Math
March 9, 2021
The following HTML file deals with some of the basic math of a longterm stock trading portfolio. It reduces the problem to two numbers, one of which is a simple counter. Because trading over the years can imply a lot of trades, we have to look at the problem in terms of averages. What will the average net profit per trade tend to be when you have a large number of trades? It is a basic question that appears difficult to solve, and yet it can be greatly simplified. Whether you trade automated or by hand, the equations presented will still hold. The final outcome of a trading strategy is the result of simple math, simple equations, nothing complicated.
Designing Successful Stock Trading Strategies
Feb. 19, 2021
Designing a successful stock trading strategy has about the same objectives as developing your own money printing machine. That you trade on a discretionary basis or use some elaborate trading program to execute your trades does not guarantee you to win at this game, but you can easily put the odds in your favor of doing so.
In reality, the problem is very simple: you buy some stock (whatever the reason) and resell it later at a profit. You do it often. That is it. That is all the game. You do not need much to understand the mechanics until you do more than a few hundred trades. Then, you get to realize that the “game” is a little bit more “complicated”.
On The Notion Of False Discoveries?
Feb. 6, 2021
You design an automated stock trading strategy and will use historical data for your simulations. Right off the bat, all the stock prices you will use are part of recorded history, and therefore, what kind of “discovery” are you going to make should be the question?
All the data is already there in plain sight. All you have to do is access it. Somehow, for some, it is as if the price of AAPL over the last 20 years has eluded them. As if they had never seen it before or did not know what it did or what it stood for? AAPL and its related data are there, and that is up to yesterday. Period. We can immediately see the hindsight problem this can create.
Winning The Automated Stock Trading Game
Jan. 24, 2021
Here is another post made on a QuantConnect forum. It could be viewed as a followup to the articles Stock Portfolio Backtesting and The In & Out Stock Trading Strategy.
Is there something in @Vladimir's In & Out strategy (version 1.5)? What I see is that there is money in there. But you have to determine that for yourself. What follows is not intended to convince you. You have to do your own homework.
Is there an edge that could persist going forward? Is it of any consequence what this strategy did over its simulated past? Is this strategy overfitted or not? In all simplicity: is it worth it? There is so much that could be said about this strategy.
Stock Portfolio Backtesting
Jan. 12, 2021
The following post is in reference to a question asked on overfitting in a QuantConnect forum.
Any stock trading strategy designer should have views on this subject since somehow it gets in the way if not at the heart of any such strategy that it be live or simulated. I find overfitting indirectly related to the law of diminishing returns. Meaning that going forward, your trading strategy will produce less over time. However, it can also be viewed in light of another problem, and that is to think that the market will strictly follow our often misconceived and poorly designed trading strategies. It should be forcefully noted that the market has no such obligation.
The In and Out Stock Trading Strategy
Nov. 16, 2020
Following Quantopian's shutdown, some of Quantopian's members moved the In & Out strategy to QuantConnect. I moved there too, and started reading the documentation. Also started analyzing this adapted strategy and doing some simulations of my own. The following is my first post on QuantConnect relating to this freely cloneable strategy.
Going For Better Portfolio Returns
Nov. 1, 2020
I was about to answer a question in a Quantopian forum when they opted to shut down their community website. Here is that post anyway. It is trying to answer the question: could someone use stocks based on the highest relative strength above a market average proxy? The strategy's code was given in the thread titled: New Strategy — “In & Out”, where anyone could make a copy of it and then modify it at will.
Playing a LongTerm Game  Part III
Oct 17, 2020
The previous post showed the outcome for longterm portfolios where returns were randomly generated. Even under randomness, it resulted in return degradation making the game not worth playing. Adding some alpha would make a portfolio profitable. And, if you added more alpha, the longterm CAGR could increase even more.
All simulations were unique. A new random return series would be generated for each and every one of the tests (over 300). We could anticipate that most tests would come out close to some average, whatever that average might be. This was illustrated in the charts, figures, and equations in the previous post.
Playing a LongTerm Game  Part II
Oct. 10, 2020
The previous notebook put some emphasis on having an edge to overpower builtin longterm return degradation. There are many ways of doing this. The payoff matrix equations can have gazillions of solutions. They all depend on how you deal with the ongoing inventory matrix H. Trading implies doing a lot of trades, and doing so brings along with it the Law of large numbers.
Playing a LongTerm Game – Part I
Oct. 8, 2020
Posted a Jupyter notebook on Quantopian. Here is a link to its HTML equivalent.
(Sorry for the Quantopian links, the community website has shut down)
In the notebook, random return series were generated using a normal distribution with a 3% standard deviation over 1, 2, 5, 10, and 20 years to show the impact of trading over the long term. Such a strategy will break down over time. In the beginning, it might not be that visible, but as the time interval increases, it becomes more and more apparent since return degradation is technically builtin.
Automated Stock Trading Strategies Basics
Sept. 16, 2020
The automation of a stock trading strategy appears at first glance as a simple process. You program what you think you might have done on a discretionary basis, except your computer can do it much faster and more often. You try to transfer to a program your acquired knowledge, understanding, logic, and trading methods by first simulating the outcome of your procedures over past market data.
Building Blocks For Your Stock Portfolio
Sept. 10, 2020
The following was posted in a Quantopian Forum, expressing
my point of view on the highlighted stock trading strategy.
No one seems to be much concerned by the stock selection process used when it has a major role to play over the long term. First, let's set “long term” as 15 years or more. I would prefer 20 to 30^{+} years, but we do not have that much data available.
Average Net Profit Per Trade
Sept. 1, 2020
A lot of emphasis was put on a payoff matrix equation (see my last article) to represent a longterm rebalancing stock portfolio. From it, we could estimate the number of trades the rebalancing might generate over the life of the portfolio. However, that was still only half of the solution. What was also needed was an estimate of the profitability of such a trading strategy. That part of the equation is more complicated and has a lot more than just one solution, even though it too, has a simple formulation.
Stock Portfolio Rebalancing
Aug. 17, 2020
You start a stock portfolio with the intention of using scheduled rebalancing, meaning that the stocks in your portfolio are readjusted to a fixed weight on a yearly, monthly, or weekly basis. This portfolio management decision is simple; however, it does have ramifications.
An equal weight is easy to determine; it can be made proportional to the number of stocks j in the portfolio w = 1 / j. It does not say which stocks will be in your portfolio, only that the actual number of stocks will tend to j or less: → ≤ j. Fixing the number of stocks to be traded will also set the initial bet size, which will depend on the available initial trading capital.
Another WalkForward
Aug. 4, 2020
The following was posted in a Quantopian forum on a trading strategy I greatly modified in order to have it follow its payoff matrix equation directives. It is also the fifth walkforward performed on this trendfollowing trading strategy over the past 3.5 months. The strategy used a leveraged adaptive exponential betting allocation function to increase its longterm performance.
On Leveraging A Portfolio
July 13, 2020
The following was posted in a Quantopian forum dealing with “Quality Companies in an Uptrend”. The original strategy template is (was) available free for anyone to copy and use as they see fit. The trading strategy itself is fairly basic: it selects a set of the highest momentum stocks from topquality companies that are estimated to be in an uptrend. The assumption is made that such a trend would continue forward. The portfolio is rebalanced at the end of each month. Thereby, continuously chasing the higher momentum stocks. Nothing unreasonable about that proposition.
The Stock Trading Unit Allocation Function
June 29, 2020
The way you design your stock trading strategy can force it to react in very specific ways. This points toward the need to gain a longterm portfolio management perspective since the primary objective of any strategy designer should be to structure these automated trading strategies so that they can not only survive but also generate aboveaverage returns over 20^{+} years. If you cannot achieve that, it is very simple: you failed. All you might have to help you is your skills, some math, and the analysis of past history.
Gaining A LongTerm Portfolio Perspective
June 25, 2020
The more you look at the stock market game, the more you realize you need to play for the long term, even when you are making shortterm trades. Also, the more you trade over the short term, the more those trades will be faced with randomlike outcomes, and the more trades you will need to reach your longterm goals, whatever they are. As if there was a contradiction in purpose and means to achieve those goals. Nonetheless, most often, it remains quantifiable. The presented equations will govern it all for some planned and preset strategies.
Toward Playing A Smarter Stock Trading Game
June 22, 2020
My last article, Stock Trading Game  Gambling It Out, made the point that stock prices could be considered as having the number of up and down days close to the equivalent of a coin toss. There was no need to look at thousands of stocks to validate this hypothesis. Even a small sample over an extended period of time would be more than sufficient to make that point. Nonetheless, some 21 years of data (5,473 trading days) were used to assess the general direction of the daily price movements and their longterm outcomes.
Stock Trading Game  Gambling It Out
June 15, 2020
If you knew that if you played the stock market game and that you would win no matter what, even if it took a long time, would you not find the time and resources to play your expected winning game if you could?
Trading Is Not That Simple, But
June 10, 2020
You want to win the stock trading game, even with all its uncertainty. However, it should not be just winning it. It should also be with a higher purpose. Maybe something like building up your own retirement fund or helping someone else build theirs. One thing you should want, no matter what you do in managing that stock portfolio, is to make sure you will win and make it so you outperform the expected longterm averages.
Outperforming the longterm averages is the only reason for you to undertake such a tasking endeavor yourself. Otherwise, simply buy a market average surrogate (such as SPY or some equivalent), or find someone that could do better than you which would have been more productive moneywise and with a lot less work.
Winning The Stock Trading Game
June 4, 2020
A stock trading strategy can often be simplified to its most basic components, and there are not that many of them. In fact, maybe just two. Those trading strategies cannot be considered that complicated either if, whatever their outcomes, they will end up as being the result of two numbers, namely, the number of trades executed over the life of the portfolio and the average net profit per trade. The continuous trading transforms the expected portfolio profit problem into a longterm, statistically driven, and dynamic inventory management problem under uncertainty.
The Inner Workings Of A Stock Trading Program – Part III
May 30, 2020
In this third installment, I would like to concentrate on the second part of the equation presented in my previous post. It is also where you can find an explanation for a trading strategy's overall return.
But first, a point to be made again, if your stock trading strategy is not built to last, what is it good for? Why build something and see it blow up in your face after a number of years? Wasn't your goal to build your retirement fund or someone else's or build a legacy fund for some reason or other, and that it would, at the very least, have a positive ending value?
The Inner Workings Of A Stock Trading Program  Part II
May 24, 2020
My last article (The Inner Workings Of A Stock Trading Program  Part I) stated that a single line of code was dictating the longterm behavior of a stock trading strategy. And that this scheduled rebalancing was sufficient to explain the number of trades that would be carried out over the life of this portfolio. In that article, the first part of the presented equation provided this estimate of the number of trades that would be performed over the years.
Other important observations could be directly extracted from the same equation. Having a portfolio's payoff matrix equation to explain an automated trading strategy implied that the outcome did, in fact, answer to mathematical functions. And that it is these mathematical functions that are driving the show.
The Inner Workings Of A Stock Trading Program
May 22, 2020
My last article admitted that the trading strategy used was effectively trading on market noise. Even under those conditions, it could win and win big. It is surprising that, after such a statement, system designers were not in an uproar and where they could have made all those points that could be made to rebuke the claims. The article went even further by providing a portfolio payoff matrix equation which enabled making longterm estimates of the portfolio's future value.
Lessons From The Portfolio Rebalancing Gambit
May 18, 2020
My last series of articles (The Portfolio Rebalancing Gambit, I, II, III) was about a trading strategy that dealt with its longterm payoff matrix as if playing a game where some randomness appeared to prevail, and a lot of it did. Even in that kind of trading environment, the strategy was doing more than quite well.
A stock trading strategy operates quite differently than a longterm investment strategy. The latter is awaiting capital appreciation from reasonable investments for periods of 2030+ years. Doing so, almost assuring itself of winning simply by holding most of the stock positions for long periods of time. As an example, see Berkshire Hathaway.
The Portfolio Rebalancing Gambit III
May 6, 2020
In my previous article, the point was made that you could win the game relatively easily simply by prescheduling your future trading activity based on your portfolio's initial setup. The portfolio value equation was put on the table with a reachable longterm objective giving a purpose to the whole process. You did it for your own retirement account, or as some legacy fund, you might want to leave behind or build a generational fund with philanthropic views. Those are things for you to decide. All I can do is help you design your longterm portfolio for whatever reason you may have.
I will build scenarios based on the portfolio payoff matrix equation presented in the prior two articles of this series (see related articles below). The purpose is to show the range of what you can do based on your own portfolio settings and longterm objectives and also show where's the money. I hope that with the examples provided, you will be able to build your own and know what to expect based on your numbers.
The Portfolio Rebalancing Gambit. Part II of III
May 3, 2020
Whatever your automated stock trading strategy, it needs a purpose, an objective. You need to plan for where you want to go and how you will get there. From my previous article, you can estimate how many trades will be executed without even writing a single line of code, knowing you will be scheduling a periodic rebalancing procedure over your portfolio's life cycle.
This article continues in the same direction as the preceding ones (see related articles below), going from the endpoints and designing a trading strategy backward from the perspective of its longterm objectives. And then redesign the trading strategy for going forward. All in the process of trying to answer the question:
What does my trading strategy have to do to reach its longterm objectives?
The Portfolio Rebalancing Gambit I
April 30, 2020
Often, we ignore the very structure we have given our automated stock trading strategies. We code them to behave in a certain way for as long as they will be executed. For example, in most Python programs showcased on Quantopian, we can find variants of the following line of code:
schedule_function(rebalance, date_rules.month_start(), time_rules.market_open())
It instructs the program to rebalance its portfolio on the first trading day of each month as the market opens. That single line of code will execute, on its preset schedule, no matter what. Other programming languages would use a different syntax and wording to accomplish the same task.
Design Your Trading Strategy And Retire
April 24, 2020
We often design stock trading strategy simulations by first programming them on some economic notion and then observing the outcome. As if the trading procedures, over the long term, would resolve the appreciation problem all by themselves, when a more global view should be taken. Where do you want to go, and how far will it take you?
Most of it could be determined beforehand. More planning and a better outlook as to what you really want to do.
ReverseEngineer For More Profits
April 20, 2020
We design stock trading strategies simply to make money. The more, the better. But it all has to be done within the constraints of available capital and minimizing overall risks. Trading has a number of differences when compared to longterm investing in many regards. A trade, almost by definition, is seen as a shortduration thing that can come out profitable or not. In the longterm setting of investing, durability, appreciation, and overall trends gain more importance. Shortterm fluctuations are practically ignored, while trading might live by them.
But whatever the trading strategy, it has some basic math to explain what it does. Not sophisticated math mind, as will be demonstrated here, but inherent structures nonetheless that are dependent on the how the trading is done. Most of the text that follows is about averages, and we can use these averages due to the large numbers that will be used. In all cases designing diversified portfolios with hundreds of stocks and thousands of other possibilities.
ReverseEngineer Your Trading Strategy
April 16, 2020
Usually, in designing automated stock trading portfolios, all the attention is put on the program's code. The trading procedures, the decisionmaking, and the gathering of relevant information need to be analyzed, interpreted and acted upon. Often, our initial capital is a limiting factor, just as our ability to extract a decent longturn return.
Here, I will go about it in reverse. The objective will be to break down the trading strategy into what needs to be done to achieve these longterm returns. Something like starting from the end results and asking the question: how did we get here? Or, more to the point: how could I get there? The “I” here is you.
Portfolio Doubling Times II
April 13, 2020
The following is a post made on a Quantopian forum related to my recent articles on the subject of a portfolio's doubling time (see related files below).
I like the notion of doubling times for a portfolio. It indicates, on average, how much time was required for the portfolio to double in value. It is all a matter of the strategy's CAGR, its compounding rate.
The Financing Of Your Stock Trading Strategy II
April 9, 2020
I thought it might be an appropriate time to make a walkforward test on the strategy presented in my January 8^{th }article, Financing Your Stock Trading Strategy, which showed a 16.9year simulation with an ending date of 19191129. It would make this new simulation a walkforward, outofsample test where the strategy would not have seen the last 3month of market data.
Stock Portfolio Doubling Time
March 31, 2020
My previous article dealt with The Making Of A Stock Trading Strategy's mathematical backdrop. Designing automated trading strategies with the objective of prospering over the long term. There are a multitude of ways of doing so. A trading portfolio, even with its shortterm vision, needs to view its final outcome in light of a longterm compounded return. This is where a portfolio's average doubling time takes some importance.
The Making Of A Stock Trading Strategy
March 28, 2020
The making of an automated stock trading strategy is relatively simple. It is made of 3 distinct processes: selecting some stocks on some reasonable quantifiable assumptions, determining the logical trading rules and procedures that will be applied, and executing them. The trading process can be enclosed in a single dowhile loop and be executed until reaching the end of the program, that it be up to a past or future date.
Dealing With Stock Portfolio Equations
March 16, 2020
We can represent stock trading systems with equations and not necessarily know that much about their future market returns except general expectations and/or educated guesses. However, with these equations, we can determine what is needed, over the long term, to trade and win.
Durability And Scalability
Jan. 24, 2020
This is a followup to my last article, an attempt to answer the question: can you do more?
Two of the most important traits of any stock trading strategy should be its durability and its scalability. The first so that the strategy does not blow up in your face during the entire trading interval, and the second so that a portfolio can grow big.
Financing Your Stock Trading Strategy
Jan. 8, 2020
My previous article showed 17 simulation results on a stock trading strategy found on the Quantopian website (the website shut down in October 2020). On that basic template, I added optional functions in order to increase and control performance.
This intermediary step is part of my analysis of the strategy's worthiness since I am still exploring its capabilities: limits, strengths, and weaknesses. I present 12 new simulations using 160 stocks.
Automated Portfolio Rebalancing II
Jan. 2, 2020
This article refers to the first trading strategy displayed and cloneable on this Quantopian website forum. The strategy makes a ranked selection of 20 stocks based on some fundamental data and equally rebalances its portfolio weights on a monthly basis. It uses a SPY 140day return to determine its trend and will switch to bonds as downside protection.
Automated Portfolio Rebalancing
Dec. 29, 2019
Portfolio rebalancing has been around for ages, whether it be a Sharpe ratio, Markowitz rebalancing, equal weighting of securities held, or something else; most were done at prescheduled time periods. This made them program timedependent. As such, it was almost independent of whatever the market was doing at the time. If you opted to rebalance at the start or end of the month, it was an arbitrary program choice that carried with it its own set of trading circumstances.
The Future Belongs To The Builders Of Mega Funds
Oct. 19, 2019 NEW BOOK RELEASED
My latest book available on Amazon, The Future Belongs To The Builders Of Mega Funds, is on the construction of  you guessed it  mega funds.
We have entered this age of super corporations, those with valuations exceeding 1 trillion dollars. The future will bring many more of these online. In their wake, it will create super conglomerates, super banks, and super investment funds, the size of which has never been seen before.
A Markowitz Attempt II
Oct. 6, 2019
The following simulation results were posted in a Quantopian forum as a followup to my last post (A Markowitz Attempt), in which I returned to the $10M initial capital scenario. I wanted the program and its subsequent tearsheet analysis to finish since, at times, some are too big to complete in the allowed time.
A "Markowitz" Attempt
Sept. 29, 2019
This is a peculiar trading strategy. The original author probably wanted it to be based on some Markowitz portfolio management principles, but it is not. Nonetheless, over part of its trading interval, it does make as much money doing nothing as it does trading.
Standard Deviation Space
Sept. 26, 2019
This new HTML file puts a few questions on the table. Even if the title sounds obscure, its understanding is relatively simple. Mostly, it says that stock prices are not normally distributed, and therefore, why apply that kind of math to the problem if it is not that representative?
Stopping Times
Sept. 25, 2019
This HTML file deals with stopping times. It is a notion related to stochastic processes where we try to determine where and when certain values will be hit, like a price target, for instance.
The note argues that it is not the first stopping time that should be the main interest but the last one where you might have no means to determine when and at what level it might be reached, if at all. Yet, getting closer to that last stopping time might have more merit since it should tend to increase profits.
Stock Portfolio Strategy Design
Sept. 20, 2019
This HTML file deals with stock portfolio strategy design problems associated with automated trading. We know that over the long term, most professional portfolio managers do not outperform market averages. However, using simple tools, one could do better than average.
The Automated Stock Selection Process
Sept. 16, 2019
The following HTML file deals with stock selection problems associated with automated processes. In particular, often, the mere fact of selecting stocks on some economic rationale is sufficient to reduce the immense set of potential portfolios to a unique and totally deterministic one. This is that we look backward or forward in time.
Structure of a Stock Trading Strategy
Sept. 11, 2019
The following HTML file combines two recent posts made in a Quantopian forum. It deals with the structure of a stock trading strategy and the steps that can be taken to enhance its performance over the long term. It should be viewed as a continuation of my Reengineering For More series of articles.
The Origin Of Stock Profits
Aug. 30, 2019
When designing automated stock trading strategies, it is mainly to outperform other available methods of portfolio management, including other automated strategies. You can go to outperform over the short term, where you will find a lot of what should be considered market noise (unpredictability or volatility or randomness or whatever you want to call it). Or, go for the longer term, where the prevailing longterm market trend will be more visible.
A LongTerm Perspective III
Aug. 24, 2019
We can design our stock trading strategies to do whatever we want. However, most often, it just turns out to be whatever we can. These strategies could be based on about anything as long as they remain relevant to our intended objectives. Also, they actually have to be feasible in the real world and be able to survive over the long term.
What is the use of a stock trading strategy that will blow up in your face
at some time in the near future and completely destroy your portfolio?
How about if it is not even designed to outperform market averages?
A LongTerm Perspective II
Aug. 22, 2019
A recent post was published in a Quantopian forum. (Sorry for the Quantopian links, the community website was shut down in 2020.)
The trading strategy described in my article, Reengineering For More, was designed to be controllable. We could be more aggressive by adding more pressure to its controlling functions or slowing it down at will if we considered it too much or felt it was going too fast. It is part of the advantage of having controllable portfoliolevel functions rather than having adaptive or fixed trading parameters. It remains a compromise between individual preferences and maximizing longterm objectives.
A LongTerm Perspective
Aug. 21, 2019
Improving overall portfolio performance over the long term might not be that hard to do. However, you will need a longterm vision of things to do so.
We all know the future compounding value formula: Cap. ∙ (1 + r)^{t}.
Say you want your longterm portfolio performance to produce twice as much as it could and wonder how much more return, or effort, would be needed to accomplish the task.
Followup to Reengineering For More
Aug. 18, 2019
Was posted in a Quantopian forum recently as a followup to my article Reengineering for More, which presented a remarkable trading strategy with outsized performance levels (Quantopian shut down in 2020).
The described trading strategy used the CVXOPT optimizer.
First, let it be said. It is extremely difficult to extract some decent alpha using an optimizer.
The optimizer can only give you what it sees, and you have no control over how it will trade.
On Momentum With Volatility Timing II
July 22, 2019
This is a followup to my last Quantopian post.
A more elaborate and detailed explanation for the equation used can be found in my third article of a series:
This is, I think, the 7th strategy I have enhanced or repurposed in Quantopian forums using parts of the equation given in that article. Another dozen or so simulations have been chronicled on my website over the years based on the same general equation.
On Momentum With Volatility Timing
July 19, 2019
This week there was this interesting notebook presented in a Quantopian forum. It is worth reading first so that what follows can be better understood. It is based on a free paper on momentum with volatility timing (link provided in the first post (Quantopian shut down in 2020)).
What I observed was that there was something in there that could apply to any wannabe marketneutral trading strategy. However, it still depended on the premises made about the market in general.
Reengineering For More V
July 11, 2019
In a Quantopian forum, someone cited a Will Rogers quote as a putdown to the fact I was suggesting people buy stocks that are going up and drop those that are going down. This old Will Rogers quote goes like this:
Don't gamble; take all your savings and buy some good stock and hold it till it goes up, then sell it. If it don't go up, don't buy it.
To which I replied.
Will Rogers was right. It was and still is excellent advice. I used that same quote on my website years ago, but I read it differently. And I think Mr. Buffett also adheres closely to that same pun.
Reengineering For More IV
July 8, 2019
Answering a question in a Quantopian forum about the variables used in the presented equation in my last article.
Those variable names expressed averaged out functions: dampers, boosters, accelerators, amplifiers, and controllers. As their names imply, they are made to increase or decrease the impact of the controlling functions as the strategy moves along. Each playing their part somewhere in the program with the meaning you would give to those names.
Reengineering For More III
July 7, 2019
I have absolutely no obligation to post anything on Quantopian forums, it is just like for anyone else. However, if I post something, I stand ready to explain and discuss within my own understanding and IP disclosure limits what a trading strategy does and for what reasons it does it.
The Value Of Alpha Over Time
July 6, 2019
The chart below shows the value of having some alpha over the long term. It can easily be reconstructed using the formula: Init. Cap. ∙ (1+ E[r_{m}] + α)^{t}, where r_{m} is the longterm expected historical market return, and alpha is the added performance over and above this average market return.
Reengineering For More II
July 6, 2019
Over the past 2 years, I have covered a lot of the inner workings of my trading methodology on my website and in posts on the Quantopian website forums. I find the methodology relatively simple and hope that from what has been presented, anyone could reengineer their own strategies to make them fly. This way everyone would be responsible for whatever they do.
Reengineering For More
July 6, 2019
Here is another followup post on Quantopian dealing with the same trading strategy as discussed before.
I stated previously in A Cloud & AI Strategy thread, that if you wanted more you could add a little bit more leverage, and since the leveraging is compounding, it would have a direct impact on the overall performance. Evidently, it would also have an impact on the portfolio metrics.
Reengineering A Trading Strategy II
July 6, 2019
As a followup to the last Quantopian post, I added the following:
Of note, the mentioned trading strategy started scalable by design. I could push on its pressure points in order to increase the number of trades and the average net profit per trade. These were modulated. Most of it was done by leveraging and adding protective measures for when the equity line decreased by either reducing position sizes or going short.
Reengineering A Trading Strategy
June 28, 2019
The following was posted on the Quantopian website.
I got interested in Stefan's trading strategy after seeing the “Cumulative Return on Logarithmic Scale” in a tearsheet. It showed alpha generation. This is represented by the steady widening of the spread between the algo and its benchmark.
I understand that this is a niche trading strategy specifically oriented toward cloud and AI computing. Nonetheless, we should look at the stock market from a longterm perspective. And forecasting that we will need more from our machines should be considered as an understatement. With the advent of G5, this trend will accelerate and enable all new kinds of devices (IoT) requiring even more storage and services. Therefore, such a niche market should continue to prosper over the years.
Automated Trading Skills?
June 23, 2019
The following Quantopian post was to comment on the following: “There is such a thing as skill, but my read is that proving it might take a lifetime.” To which I agreed and added:
That kind of study has been done. It turns out it would take some 38 years for a professional money manager to show skill prevailed over luck at the 95% level based on sufficient data (10 years and more). No one is waiting or forwardtesting for that long. And even if they did, they would again be faced with the right edge of their portfolio chart: uncertainty, all over again.
Selecting Stocks For A Trading Strategy
May 26, 2019
The following was posted on a Quantopian forum where I sometimes participate.
We should separate the problem into two parts. One for selecting over historical data and one where the data is forthcoming (some future data). These two will turn out to be quite different problems. Simulating the future should be viewed as either a walkforward or some form of paper trading. Both of these do not produce any money and, therefore, are just other forms of simulations. You could paper trade for years if you wanted to. But, in the end, you would still find yourself at the right edge of a price chart with an unknown future.
Reengineering Your Stock Portfolio – Questions
May 10, 2019
The following is an extract from my latest book (Reengineering Your Stock Portfolio), where I try to answer some probable and unasked questions related to the presented trading strategy. See my recent articles describing this strategy in more detail.
To give an inkling of the strategy's capabilities and to put it in some kind of context, the following equity chart (figure 8.16 from the book) shows some portfolio metrics for this remarkable trading script over its 14year simulation period.
Basic Stock Trading Strategy Tests
May 6, 2019
The trading strategy described in my latest book (Reengineering Your Stock Portfolio) has some singular longterm properties. It started with a trading strategy (published on Quantopian) which was modified, step by step, to enrich its final outcome. Instead of trying to optimize alpha factors or some of its parameters, equations and administrative procedures were used to direct and control this innovative strategy's trading behavior.
Reengineering Your Stock Portfolio  New Book
April 30, 2019 NEW BOOK RELEASED
Reengineering Your Stock Portfolio starts with a friend with whom I often discuss my trading strategies, saying: why not write a book on this one? A few days later, I sat down and started writing without needing a plan, knowing where I wanted to go and what I needed to do.
My take was, go ahead, simply do it. Modify the original program found on the web as need be and document what you see. At times, I even had a simulation running in the background while I was writing about the coming test results, knowing they would be positive. I would then take snapshots of the results I found interesting and document what I saw.
Reengineering Your Stock Portfolio
March 17, 2019
I am writing a new book. I do not have a title yet. Nonetheless, it is filled with simulations, charts, and graphics. For those that have read Beyond The Efficient Frontier, you should find it fascinating, and a musthave since this is the application of what was presented in that book. For those not having the book, here is a summary.
Beyond The Efficient Frontier used an optimizer library (CVXOPT for Python) to make all its stock trading decisions. The book showed that a simple longterm trend was sufficient to extract longterm profits from the market. It would do this for thousands of portfolios having hundreds of stocks.
Is A Black Box Running The Show?
March 2, 2019
The trading strategy illustrated in my last article goes on a simple premise. If there is cash in the trading account or its equivalent, it stands ready to buy shares for its stock portfolio according to its CVXOPT optimizer recommendations. It would also do so if you increased available cash reserves by either selling some shares, adding extra funds, or using leverage.
When you look under the hood, you do not see why a trade is taken. All you see is that it was executed. The optimizer took care of it all. You had no control over the prices or the quantities to be traded either. What you knew, however, was that the optimizer had for function to optimize for the best outcome should it find actionable data.
Managing Stocks For The Long Term
Feb. 26, 2019
The trading strategy referenced in my last article was the followup to the series of articles: Trading Stocks Generate Its Own Problems Part I – VI (See related files below), where the CVXOPT optimizer was used on randomly generated price series to illustrate how even a small trend could be detected and capitalized on for the benefit of one's stock portfolio.
The series of articles cited above, as well as my last book: Beyond the Efficient Frontier, were centered around this optimizer and on the use of randomly generated prices with trends.
Managing Basic Portfolio Math
Feb. 18, 2019
The following was posted on a Quantopian forum. It deals with a stock trading strategy transformed to have a longterm game plan and objectives. It also treats multistrategy portfolio scenarios where allocation distribution might matter more than one might expect. An example of the originating trading strategy is linked to in the Quantopian forum. Unfortunately, Quantopian shut down in 2020.
Somewhere along the line, you will have to mix trading strategies together, meaning playing more than one at a time. And the overall result will depend on their sum. Each strategy will be allocated some initial capital and ran simultaneously with the others in the group. This group of strategies could be of any size and will constitute the entire portfolio.
Trading Stocks Generate Its Own Problems – Part VI
Jan. 30, 2019
You already know you will be faced with a lot of uncertainty, not to call it randomness, stochastic behavior, or outright chaos. If you flip a fair coin to determine the next move on another fair coin, you should not be surprised if you get it right only about half the time.
Then why, when you see that you are getting about half of it right while trading, can't you see that the thing you are betting against might be quasirandom with close to 50:50 odds?
Trading Stocks Generate Its Own Problems – Part V
Jan. 28, 2019
Based on the literature on designing stock trading strategies, we should consider testing both an insample (IS) and an outofsample (OOS) trading interval before going live. Some even suggest another testing interval as an additional step after OOS to make sure that the trading strategy will not break down going forward.
But even that is not enough. As soon as a strategy will go live, its CAGR will start to decay. At the very least, trading strategies that are programmed to be linear will do so.
Trading Stocks Generate Its Own Problems – Part IV
Jan. 24, 2019
Reducing the Trading Interval
As you reduce the average trade interval for the average trade, its potential average return is also reduced. But this can be compensated by the sheer number of trades that can be made with positive results. There are a lot more 1% moves on a daily basis than there are 10% moves. In the first case, you will find hundreds of them every trading day, while in the second, you could count them with both hands. Also, those 10+% moves appear more as outliers and are much more difficult to predict or anticipate. Whereas, a 1% move can be had, on a daily basis, on about a quarter of the listed stocks, meaning opportunities abound.
Trading Stocks Generate Its Own Problems – Part III
Jan. 20, 2019
The stock market is not homogeneous. Therefore, why even think of treating it as such? All sectors are not equal, so why invest in each one equally? All stocks are not equal; then again, why use equal weights? At any one time, you can not predict that 50% of stocks will be going up while the other 50% will be going down and know which will do what. So, why go 50% longs and 50% shorts?
Trading Stocks Generate Its Own Problems – Part II
Jan. 16, 2019
In Part I, it was shown that a trading strategy could be expressed as a simple equation. The outcome of that equation gave the sum of all winning and losing trades. You would have a number of losing trades, and the rest would have an average profit, making the strategy worthwhile or not.
Trading Stocks Generate Its Own Problems – Part I
Jan. 15, 2019
What does it take to win the stock trading game? It is not just a rhetorical question, but nonetheless, it does encapsulate a whole gambit of related questions, from what the game is about to how to assure yourself you will, in fact, win the game.
First, the trading game is very, very simple. You repeat the same one thing over and over again under uncertainty.
Is It Overfitted Or Misfitted?
Dec. 30, 2018
The notion of overfitting and overoptimizing in automated stock trading strategies has been overdocumented in the financial literature for quite some time. What I often see, however, are poorly designed trading strategies that should be better classified simply as misfitted and using worthless concepts or trading procedures for the job.
In a nutshell, an “automated” stock trading strategy says: this is how I see the structure of this trading environment. My program will do this and that, ..., and will win the game.
Randomness In Stock Trading
Dec. 20, 2018
No one seems to want to consider how much randomness there is in stock prices. The question should be, why? It might be the most important question of all. Even if not, it would still be more than worthwhile to investigate how much there is. Depending on the answer, it could simply force us to rethink, remodel, or at least transform our trading strategies and the way we play the game.
The problem is: how should we define randomness in stock prices in the first place?
The Secular LongTerm Drift
Dec. 8, 2018
What was demonstrated in my latest book (Beyond the Efficient Frontier) was that the market's average secular trend could be considered sufficient to explain most of the general underlying longterm price movement in stock prices. To make the demonstration, price series were not decomposed into various factors but simply reconstructed from scratch using an old stochastic model that has been in use for decades.
Beyond the Efficient Frontier
Nov. 14, 2018 NEW BOOK RELEASED
I was preparing a followup to the last two articles (see related files). But then, from simulation to simulation, the article grew and grew. So much so that it is now a 160page book filled with charts and equations. One would think that the whole thing would be complicated, but in reality, it took all that complexity and reduced it to a few guiding equations.
A new book is always exciting. Especially when you put so much into it, this one is special.
The CAPM Revisited II
Oct. 7, 2018
This HTML file, The CAPM Revisited II, is the continuation of my last article, The Capital Asset Pricing Model Revisited. This new file makes the case that the use of a trading strategy optimizer might force us to consider not detrending price series since some of the information is lost in the process. It also makes the case that the alpha generation is important since it can make quite a difference in the end.
The Capital Asset Pricing Model Revisited
Oct. 2, 2018
The CAPM (Capital Asset Pricing Model) has been around since the 60s and is often found as a justification for the notion of the portfolio's efficient frontier. The following HTML file starts to question that argumentation. You usually see CAPM models showing a few securities in order to make the concept clear and easy to understand. You find them not only compelling but also reasonable as if a matter of fact it should not be any other way.
Randomly Trading Stocks and Winning
Sept. 24, 2018
My previous article concluded that it would be possible to design trading strategies that could “almost surely” win, in the aggregate, almost all the time, given time. It was also said that simply adding back the removed trend line to the presented stochastic equation would be sufficient. I would like to substantiate it so that it is not just a claim or an opinion but something that can be translated into facts.
Sector Contribution to Portfolio Performance
Sept. 2, 2018
This article is intended to be a followup to the previous article: Factoring Sector Risk Returns. Oftentimes, we analyze some data and then find that there is a lot more to it than expected. The more you dig in, the more you find, not in changing the data but by understanding more of its intricacies and interrelationships.
Factoring Sector Risk Returns
August 30, 2018
Recently, on Quantopian, one of the topics was: Common Factor Risk Snapshot Quantopian shut down in 2020). The provided notebook's intention was to give a quick snapshot of the performance of common risk factors over the past year.
The following chart (Cumulative Sector Factor Returns) is based on Maxwell Margenot's notebook, which can be found HERE. (Link no longer available).
On The Notion Of OverFitting
August 18, 2018
Recently, on a Quantopian thread, the debate touched on overfitting stock trading strategies. I tend to have a different point of view on this subject than most since I find the very definition of strategy overfitting as something that describes very little of what is. It resulted in the following post, which is replicated here.
The notion of overfitting a trading strategy might technically turn out to be quite a misnomer. It might require to do so many compromises that its very notion becomes almost irrelevant.
The Gaming of Stock Trading Strategies
August 8, 2018
Usually, we plan on having one portfolio playing a specific automated stock trading strategy. We find the best strategy we can and go from there. However, when looking at multiple trading strategies to be applied at the same time, the nature of the problem changes. You now have to take into account how these strategies will behave together. It is where you might have to game the strategies you have within your overall portfolio objectives and limitations.
The Math of the Stock Trading Game is Still Simple
August 2, 2018
Following my last article: The Math of the Stock Trading Game is Quite Simple, I thought it might be of interest to provide an example with numbers while keeping with the portfolio's payoff matrix equation as presented. You look at a problem long enough and you start to synthesize what it is all about. Not that you master it, but that you can somehow replicate its parts.
The Math of the Stock Trading Game is Quite Simple
July 29, 2018
A stock trader deals in standardized pieces of paper representing his share of ownership which can easily be auctioned in a public marketplace. You buy some shares of some company (q∙p) to resell them later, hopefully, at a better price (q∙p+), thus making money. Every merchant on the planet sees the same kind of problem.
Basic Portfolio Math VI
July 11, 2018
Uncertainty
One of the major concerns in stock trading strategy design is future price uncertainty. Unsure of about everything as to what is to come. As if unable to make assured predictions on what might or might not happen next. If it was not like that, you would be sure and ready to play that game every day of the week. Call it fun and lucrative.
The more randomness there is in stock price series, the more difficult it is to consistently extract predictable profits. As if the predictions were mere coincidences or luck
Basic Portfolio Math V
June 17, 2018
Basic Portfolio Math Part IV, made the point that the 505 listed stocks in the S&P500 price matrix were the same for everyone. Its past is recorded history, and there is only one iteration of it. The possible combinations of selectable stocks for a portfolio are so huge that there is not enough computing power on this planet to make an exhaustive search for the best possible trading strategy within a million lifetimes, let alone over the next few minutes.
Basic Portfolio Math IV
June 10, 2018
Part IV of this series considers what goes into building a stock portfolio for the long term. A look at the magnitude of the problem of finding the best portfolio mix possible to the acceptance of the best you can do which is designing a good trading system able to prosper for decades. In the end, it is the account balance that will really matter.
Basic Portfolio Math III
June 3, 2018
Part III of this series deals with a stock trading strategy's need to generate some longterm positive alpha in order to outperform expected market averages. And since alpha is also compounding over time, a small dose can go a long way.
MarketNeutral Strategies
May 29, 2018
Recently, Quantopian released its white paper, Quantopian Risk Model, where it discusses marketneutral and betaneutral stock trading strategies. The purpose of the paper was to show what is required, at least for them, or more likely, what their contest participants should seek when designing marketneutral trading strategies. That is if they wanted to be part of the small and select group that might see their trading program receive a funding allocation and get a participation in the generated profits.
Basic Portfolio Math II
May 24, 2018
The stock market game is relatively simple. You buy some shares, hold them, or resell them later. You intend to invest in worthwhile companies for the duration of whatever holding period you see fit. The main objective remains, in either case, to make a profit. However, this profit should be looked at from a longterm perspective. If you trade, it is not just one trade that you should be concerned with.
Basic Portfolio Math I
March 1, 2018
Some of the stuff in portfolio management is so basic that we often forget how really basic it is. The building block of a portfolio is the position taken in some shares of a listed company as an investment or as a shortterm speculative move. In both cases, the objective is to make a profit. We buy an asset and hold on to it or resell it later on for a profit. Trading is simply doing the latter more often.
The problem is not with the understanding of the game. It comes from asking very basic questions, like what, when, and how much. An even more basic question is: why initiate that trade at that time in the first place?
The Payoff Matrix Challenge
January 10, 2018
Portfolio management theory has had a lot of books written about it. However, few show how easy it can be to express the outcome of a large portfolio's total trading activity using a single mathematical expression.
I use a payoff matrix for simplicity and convenience. The outcome of a payoff matrix gives the total profit or loss of a stock trading strategy: Σ(H ∙ ΔP). It is a simple expression, and it carries a big punch.
What Is In Your Stock Trading Strategy?
November 9, 2017
My last article: Trading a Buy & Hold Strategy. A Game You Can Play might have had a better subtitle than A Game You Can Win. It was demonstrated that a wellplanned longterm stock trading strategy can be designed to survive and thrive for years and years. I had my preferred strategy (DEVX8) do its third walk forward, this time for almost a year. See the abovecited article for details.
Trading a Buy & Hold Strategy
November 3, 2017
A Game You Can Play
Imagine proposing to buy stocks in an upmarket. For over 6 years, my website has had a simple message: accumulate shares for the long term and trade over the process. Using trading profits as a source of added capital to accumulate more shares. A kind of selffinancing proposition. Over a dozen different stock trading strategies have demonstrated how it could be done.
Building Your Retirement Fund
October 18, 2017
You invest and trade in stocks not only to get richer but also to build up a retirement fund either for yourself, your children, or others, from which, at some point in time, you would want to extract cash for living expenses or whatever other purposes.
My last article (A Price Tag on Alpha  Part III) of a 3part series concluded with the realization that should one have a stock trading strategy that is generating some alpha, then he/she/they might be better off implementing it for themselves. Other benefits could be had. One I would like to address is the building of a retirement fund.
A Price Tag on Alpha III
October 12, 2017
... Part III of III
This 3part series, A Price Tag on Alpha, is trying to answer the question: What would people pay for a performance of over 25% on a yearly basis? Part I covered the basics, and Part II left some questions unanswered, especially concerning the price one should pay for this 15% alpha.
A 15% alpha starts to be interesting if, and, I would say only if, F_{0} (the initial capital) is large enough and the trading strategy is designed to maintain its CAGR for years. If not, the strategy is not worth as much.
A Price Tag on Alpha II
October 8, 2017
... Part II of III
In A Price Tag on Alpha  Part I of this series, we barely covered alpha generation. All we did was put on the table an expression for the future value of the most expected portfolio outcome, taken from the US stock market secular trend over durations of 20 and 30 years. We did provide a formula with the alpha considered but have not shown its longterm impact. Time to remedy that.
A Price Tag on Alpha I
October 4, 2017
... Part I of III
The other day, someone in a Quantopian forum, probably referring to his stock trading strategy, asked the question: What would people pay for the performance of over 25% on a yearly basis?
The answer evidently should be a lot, as this might put someone at the very top of the 0.1% of portfolio managers. For instance, to give this some perspective, Mr. Buffett has maintained a 20% CAGR over the years. And look at what he achieved for his shareholders and himself. Maintaining a 25% CAGR (compounded annual growth rate) would be nothing less than most impressive.
Stock Portfolio Alpha Definition
September 1, 2017
To a question asked by a Quantopian forum member wanting to clarify my use of the word alpha in a stock trading strategy, I replied with:
I use alpha as defined by Jensen in the late 60's. That is, as the premium return above market averages. Often also referred to as some added portfolio management skills. (Quantopian was shut down in 2020.)
A portfolio's expected return can have the expression: E[F(t)] = F(0)∙(1 + r_{m})^{t}, which represents some initial capital compounded over time. In the stock market, r_{m} is given away almost free.
Following the Math of the Stock Trading Game
August 14, 2017
After publishing my latest book: From ZeroBeta to Alpha Generation, Reshaping a Stock Trading Strategy, a few questioned the presented stock trading strategy as if it might be unrealistic. That we could not reach those kinds of numbers. When all this stock trading strategy did was follow the math of the game.
With everything provided in that book, I think anyone could rebuild something similar or better. The benefit: it would now be their own code. A strategy design they would understand well enough to maybe give them the confidence needed to apply it. Or find in it trading procedures that they could apply elsewhere.
From ZeroBeta to Alpha Generation
August 1, 2017 NEW BOOK RELEASED
Just released my new book, From ZeroBeta to Alpha Generation, Reshaping a Stock Trading Strategy.
It chronicles the remodeling phases of a stock trading strategy found on the web.
From its beginnings, where it could not really outperform market averages, to making it the most powerful trading strategy to have in a portfolio of strategies. So powerful, in fact, that over the long term, it could carry the day for the entire group.
PostStrategy Portfolio Analysis
July 21, 2017
Recently, I got interested in zerobeta stock trading strategies after reading about Quantopian's preference for such strategies. I always found them to be less productive profitwise than other methods that would correlate more closely with the market. I got to dig deeper and had to change my mind.
One of Quantopian's forum members put out a zerobeta trading strategy that I found interesting as having some potential for me to modify and improve. It took a few tests to appreciate the trading logic conveyed by this strategy and see how it behaved over time.
Where is the Alpha?
June 13, 2017
It might be hiding in plain sight. In my last article: No Alpha No Game it was stated it was a sufficient condition to have an upward bias in the price data to win a longterm stock market game.
Often times, people want to look at the game as if randomly set, meaning that the probability of going up is about the same as going down. As if playing a heads or tails game. A game known for centuries to be a zerosum game and unbeatable except by luck, when, in fact, the stock market game might be something quite different.
No Alpha. No Game.
June 9, 2017
My latest book, A Quest for Stock Profits If you want more, you will have to do more... mostly talked about an automated stock trading strategy that was described as gambling its way to the finish line over its 14.42year journey.
Playing the stock market game has no rerun buttons. It also has no refunds. As a trader, you win; good, it is yours. You lose, well, you lost, next, please.
So, it would sound more than reasonable to make as sure as possible that, over the long run, you end up a winner. And you can do this only with some alpha generation.
What Can an Automated Stock Trading Program Teach You?
June 4, 2017
Obviously, to program until there are no bugs left. The important word: program, is just that, a program. An understanding of what you want to do is nonetheless required.
A software program that trades stocks live is playing with real money. It is as if it was not enough for you to lose money on your own. You had to program a machine to do it for you. This is a way of saying that there are prerequisites.
A Stock Trading Strategy That Is Simply Gambling
May 30, 2017
My latest book: A Quest for Stock Profits. If you want more, you will have to do more... makes the point that the original stock trading strategy, on which it is based, was simply gambling. This automated gambling was somewhat camouflaged in code as if trying to persuade people that it was trading based on some fundamental market data.
When in fact, it was just playing market noise.
A Quest for Stock Profits – The Book
May 21, 2017 NEW BOOK OUT
My new book is out and available on Amazon:A Quest for Stock Profits.
if you want more, you will have to do more...
A Quest for Stock Profits describes a methodology that could be used by anyone. The same trading principles can apply going forward after having been shown to have been reliable and profitable over an extended period of time.
Is This Algo For Real?
May 6, 2016
I received the following short and direct question by email: "Is that algo for real? 40,000%?" It was referring to chart #11 in my last article: A Quest for Stock Profits – Part II
My reply was rather direct too:
Yes, and the trading procedures used are perfectly legitimate operations. They all survived within their coded limitations. There were no errors in the code, mathematical, logical, or otherwise. No gimmick or deception. Just plain Python programming.
A Quest for Stock Profits – Part II
April 9, 2017
From what was presented in A Quest for Stock Profits – Part I, one might conclude that there was very little there of interest. Most of it was almost ordinary. Nothing to make a fuss about. On the other hand, it might have been an appetizer, part one of a twopart series. There is definitely more to the story.
A Quest for Stock Profits – Part I
April 5, 2017
Over the last two weeks, I did some new tests using another trading strategy found on Quantopian. I only started modifying this strategy after someone made modifications to another version of the original program. The first time I looked at the original, I classified it as a throwaway. It could not even generate a speck of alpha. (Note: Quantopian shut down in 2020.)
A lot of time and work with nothing to show for it profitwise. It ended up not even beating the index over its 13year trading interval. At least it finished close to it, which is a lot better than most. But, nonetheless, not enough.
Not All Stock Trading Strategies Fail
February 28, 2017
You often hear academics and traders say: "all trading strategies fail over time". They don't provide proof but will provide examples to make their point. And usually, for the examples they present, I agree that those strategies should fail. It is as if their selected trading strategies were designed to fail in the first place, and therefore, no one should be surprised if, eventually, they do fail.
There are exceptions, but I do not see them as such.
A Stock Market's Driving Force
February 21, 2017
The stock market game is played under uncertainty. You are not totally certain of what the future may bring. However, if you take a longterm view of things, you could look for "stuff" that does make sense and might most assuredly continue in the future.
I do expect, with a very high probability, that tomorrow there will be more people on the planet. I cannot be certain on a daytoday basis, but I do know I will be right almost every day of the year since it will require a huge disaster for that statement not to hold. And those "events" do not happen every day.
The Leveraged Leveraged Portfolio
February 12th, 2017
This is part of my posttest analysis of the last three articles I wrote (see list below). All the tests were done on Quantopian servers using their data under the same conditions as everyone else. I used a slightly modified version of the program found on their site.
The original cloned program used (The SPY who loved WVF) showed a 22.43% portfolio CAGR over its 6year test. And this, while using 3x leveraged ETFs. If you did the math to convert the thing to a noleverage scenario, the CAGR would drop. There were no leveraging fees in this ETF scenario since leveraging is included by design. But this still made it a 3x leveraged portfolio.
A Trading Strategy's Search For Profits  Part 3
February 7th, 2017
The previous article made the point that you could increase a stock portfolio's performance by slightly increasing a single variable. The given portfolio equation was:
A(t) = A(0) + (1+g)^{t} ∙n∙u∙PT.
Based on this, in the previous test, g was raised by 1.5%. This time, it will be raised by 2.0%. And since g is part of a compounding factor, it should show its impact all over the strategy's timeline.
Once you have your trading strategy, meaning you have a longterm positive edge. There will remain one question. How can I do more of that?
A Trading Strategy's Search For Profits  Part 2
February 6th, 2017
My last article showed impressive test results.
Yet, my book states that one could do even better. One could start with a trading strategy having some builtin edge, as was presented in Part One. And build from there. The portfolio equation to be used would still be:
A(t) = A(0) + (1+g)^{t} ∙n∙u∙PT.
Raising g will increase the total output. You do not need to push by much since there is a compounding effect in place.
As a demonstration of the phenomenon, I used the same trading strategy as presented in the previous article. Raised its g value by 1.5%. A minor modification, yet, the impact is noteworthy.
A Trading Strategy's Search For Profits  Part I
February 4th, 2017
The HTML file at the end of this article relates to my transformation of a cloned trading strategy as found on the Quantopian website. It was first declared as not worth pursuing. But I like to take such strategies and make them do more. A kind of demonstration of what you can find in my book holds.
The premise is simple. If the stuff presented in my book works. Then, almost as a foregone conclusion, based on those principles, I should be able to make such a trading strategy outperform. And the applied trading procedures would have a positive impact on the overall performance level. That is what this HTML file is all about. Making do with what was ordinary stuff and making it great. You be the judge.
Building Your Stock Portfolio
January 27th, 2017 NEW BOOK OUT
My new book, Building Your Stock Portfolio, is out. It is available on Amazon.
Building Your Stock Portfolio has for sole purpose to help you make more money. It is about you building a longterm stock portfolio for whatever reason you might have and making sure you reach your goals.
It presents the making of a trading philosophy, a methodology which hopefully could become part of yours. My main objective is that you will not be copying what I do but doing what will be right for you going forward.
Stock Trading Strategy Math II
January 20th, 2017
In a previous article was put forward the notion of a trading strategy's signature. It was defined as the output of a longterm automated stock trading strategy that traded a lot. The result of a program that executed what it was programmed to do over an extensive period of time.
If a stock trading strategy is designed to generate thousands upon tens of thousands of trades, it will asymptotically approach a kind of law of large numbers. Meaning that the numbers in n∙u∙PT will become more representative of the whole due to the sheer size of n.
Stock Trading Strategy Math I
January 19th, 2017
In my last article, A Stock Trading Strategy Signature, I presented as model for a trading strategy, an equation. It is derived from the payoff matrix, another expression used to resume a portfolio's entire trading activity over its lifetime. This model has interesting properties.
It, too, resumes in just three numbers, the total outcome of any stock trading strategy:
A Stock Trading Strategy Signature
January 16th, 2017
This is the continuation of Playing the Stock Market Game: Time is All
Repeatedly applying an automated trading strategy to a bunch of stocks in a backtest will produce the same answer every time. It is the output of a program. It is a recipe, a set of trading rules, procedures, coded instructions, and software routines.
Since the output of a trading strategy can be expressed as a time function: A(t) = A_{0} + n∙u∙PT, then A_{0} + n∙u∙PT is its unique signature. Leaving us with 3 portfolio metrics of consequence.
Playing the Stock Market Game: Time is All
January 7th, 2017
People don't see how easy it could be to do more. If only they gave it more time. The ultimate objective is to outperform longterm averages and to make sure you do. So, here is back to the basics.
You give yourself the job to go from point A to point B. Nobody is forcing you on this, that is, to play this game. You already know your point A, that is where you are right now; with all your resources, knowhow, and expertise. You know where you want to go. The only thing left is to determine the path to get there. And here, Google Earth or a GPS won't help you.
Stock Trading Profits: Take Your Share
December 29th, 2016
My previous article (The WOW Factor) might appear at first glance as an exaggeration of some kind. For one thing, it is not a hoax or a data manipulation of some kind. It is just an aggressive trading program. It only needed deep pockets. The simulation was part of the development cycle where one tests for up and down limits. A lot of it is doable under more restrained methods. These added methods would have the sole purpose of reducing the strategy's volatility and drawdowns. They would still generate high returns, lower than what was shown, but still relatively quite high compared to market averages.
The WOW Factor – Added Notes
December 18th, 2016
In my previous post, it was said I would not trade in that fashion. For one, I do not have that kind of capital available. And two, I may be too chicken. I prefer a smoother ride. But that does not mean that this particular trading strategy is wrong or that we can not extract useful trading procedures from it. Even downplayed, the strategy could make quite an impact.
The strategy did give more than an indication of where upper trading limits might reside. And based on the strategy's code, it could do even more. I was exploring to find where these limits were, and even at the presented level, the program had not reached them yet.
The WOW Factor
December 16th, 2016
I will start with the conclusion since it is intended to raise eyebrows, and it can be given in one screenshot. The chart below comes from modifications to a program found in the Quantopian Lectures. To achieve such results, I modified the parts of the code that dealt with n, u, and PT since they are the only portfolio metrics of significance. For more explanations on the portfolio payoff: n*u*PT, please refer to recent articles.
Stock Trading: You Think, and The Machine Works
December 7th, 2016
Usually, when changing an automated stock trading strategy, it implies making changes to the trade selection process and trading rules resulting in changes to a portfolio's trading history. But, each time doing this brings changes to trading procedures, and these changes tend more and more to overfitting the data.
The very process intended to improve a trading strategy might be moving it further and further away from reality. Often even making it less valuable. Some go as far as actually destroying any chance a strategy might have had of ending with a profit.
Boost Your Stock Trading Performance
November 25th, 2016
My last series of articles started with setting up the mathematical backdrop to a stock trading methodology made to last. Putting a stock portfolio payoff matrix at the center of it all as the bean counter for any trading strategy: A(t) = A(0) + Σ(H.*ΔP). This time functions were to then reduce it to A(t) = A(0) + n * u * PT.
Three numbers of interest: the number of trades done, the trading unit used, and the average profit percent for trade. Three portfolio metrics provided by any simulated or live stock trading strategy, whatever its portfolio composition. One could view n * u * PT as a trading strategy's signature. How much did it do?
The Buy & Weak Hold
November 18th, 2016
The previous article: Controlling a Stock Trading Strategy was to show you could control a trading strategy to do more than it had before by using mathematical functions that could impact its 3 most important portfolio metrics: n, u, and PT, namely the number of trades, the trading unit used, and the profit margin.
Controlling a Stock Trading Strategy
November 16th, 2016
It was said in The Deviation X Strategy that it was controllable. When saying something like that, I like to provide some kind of evidence that what was said holds.
The DEVX8 stock trading strategy has nine controls that can be viewed as sliders or knobs. Each has its own purpose. Only six are shown on a chart (see chart #1 below: Control Setting, top left, second line).
The Deviation X Strategy
November 14th, 2016
For those that have followed this series of articles over the last two months starting with the Payoff Matrix, it is time to show how all of it can be applied in a trading strategy now that the mathematical background has been provided.
The last time I did a portfolio level simulation using the DEVX strategy was last November, not quite a year, but close enough. The one last shown was dated October, using a prior version (DEVX6 dated June 21, 2014) which was more aggressive.
Stock Trading System IV
November 11, 2016
In the previous 3 parts of this series was presented the output of any stock trading strategy using just 3 portfolio metrics: n*u*PT. The number of trades done, the bet size, and the profit margin, as if dealing with an inventory management problem. Only 3 numbers, two of which you can fix yourself, and the other, you can control to some extent.
Stock Trading System III
November 11, 2016
In A Stock Trading System – Part I, and Part II have analyzed some of the workings of the 3 metrics: n*u*PT, which summed up a portfolio's trading history. Part II ended with a question. It was not: can more be done? But will you do more?
Each stock trading strategy has its own "signature". It depends on the portfolio's stock composition and how trading is performed over time. In the end, at bean counting time, all you did trading will be explained by these 3 numbers: n*u*PT.
Stock Trading System II
November 8, 2016
In A Stock Trading System – Part I, was made the case that 3 stock portfolio metrics were sufficient and of major concern when making the analysis of a stock portfolio's end results.
Having only 3 metrics to describe the output of a portfolio management system, it then falls on those three metrics to explain what is going on.
A Stock Trading System I
November 6, 2016
In my last article, A Tradable Plan – Part I, it was expressed that only 3 numbers from three portfolio metrics are sufficient to summarize all the trading activity and trading history of any stock portfolio over any duration.
Those numbers were: n, the number of trades, u, the trading unit used (bet size), and PT, the average percent profit per trade, profit margin, edge, or, whatever you might like to call it.
A Tradable Plan I
November 2, 2016
This new HTML file is another step in this series of articles. Refer to the preceding articles, starting with the Payoff Matrix, to gain a better understanding of what is being put forward in this twopart installment.
Any automated stock trading strategy can be resumed by 3 of its performance metrics. Namely, the number of trades, average bet size, and net profit margin per trade (n, u, PT). Everything else is of lesser consequence, part of features, preferences, or descriptive properties.
Portfolio Core Position
October 22, 2016
This article shows what I consider the core of a trading strategy. Looks at the trading problem from a different angle than most. Starting from the end results metrics and then going back to design strategies that will affect these metrics over the entire trading interval. As if designing a strategy backward, but most certainly constructively, allowing for a multiasset, multiperiod view of the stock portfolio management problem.
Extracting Tradable Information
October 13, 2016
The HTML file below starts to elaborate on trading methodology infrastructure. It is part of the background information needed to go forward. It uses a MACD trading strategy as an example to set mathematical structure to trading procedures. It could have used something else; the whole point is not on the MACD but on trading strategies in general.
Prediction Dilemma
October 10, 2016
The HTML file below tries to elaborate on the predictability, not of stock price movements, but mostly on portfolio performance outcomes. It tries to do this using only two numbers, one of which is just a trade counter.
The objective is to show that those two numbers that characterize a trading strategy can add some understanding of a strategy's longterm goals. As if giving the ability to make napkin estimates of where a portfolio might be some 20+ years down the line, thereby providing a reasonable guesstimate.
Stock Trading Decisions
October 3, 2016
The HTML file below deals with the perception of trading decisions within the context of building a longterm stock portfolio. It is the continuation of a series of articles dealing with the underlying math behind a stock trading strategy.
Instead of looking for a trading strategy that tries to shift its portfolio weighs from period to period as in a Markowitz or Sharpe rebalancing scenario, the search is for longterm repeatable procedures that can affect a portfolio's payoff matrix over its entire multiperiod multiasset trading interval. The main interest is not in a trade here and there but in the possible thousands and thousands of trades over a portfolio's lifespan. All are influenced by the trading functions put on the table.
Trade Detection
September 25, 2016
What I see most often are stock trading strategies that operate on the premise of finding some kind of anomaly or pattern that the developer hopes will repeat in the future. He tries to select the best methods he has to do the job. But, it still is limiting in the sense that one is not looking to increase the number of trades but simply to accept the strategy's generated number of trades. As if looking only at one way to increase end results. It's okay, but one should want more and could do more.
Strategy Enhancers
September 15, 2016
The following article is part of a series. It deals with ways to enhance a stock trading strategy by incrementally increasing the number of trades to be executed over a longterm trading interval as well as increasing the average profit per trade. Thereby giving a higher performance at the portfolio level.
Strategy Design Defects
September 13, 2016
This article examines stock trading strategies with structural defects. Meaning strategies that are designed to fail even before they start trading. It is not because someone has designed a debugged stock trading program that it will make money. You need more than that. One thing is sure: you might as well learn not to include in your own programs trading procedures that are almost assured to obliterate your longterm portfolio performance. But then, anyone can design their trading strategies the way they want.
The Game Inside
September 8, 2016
Designing trading programs implies mathematical formulas. We all have a vision of what our trading programs should do. Presented in this article, as in the prior one (Payoff Matrix), are building blocks for what I want to do with Quantopian. As if putting on paper, preparing an overall plan on how I want to use its facilities. The process could help others. (Quantopian shut down in 2020)
The Payoff Matrix
September 6, 2016
The HTML file listed below is full of matrix formulas. You don't need math to understand the message. For me, putting an equal sign on something is a big statement. All one can do after is declare not equal and show why. It is not a matter of opinion anymore. It is a matter of proof.
The file looks at the trading problem from a payoff matrix perspective, which in itself can represent any trading strategy whatsoever. It concludes that any trading strategy could also be expressed as the number of trades times the average profit per trade, leaving only two variables to consider when designing trading strategies.
Simple Stock Trading III
August 27, 2016 Updated
The chart below is a simplified model of the SMRS where I've idealized market swings based on the setup premises in the trading program. The strategy's source code is available on the Quantopian platform and referenced at the start of Simple Stock Trading Strategy I. Further test results on some modifications to the program with their explanation can be found in Simple Stock Trading Strategy II. Note: Quantopian shut down in 2020; therefore, the strategy is no longer available.
Simple Stock Trading II
August 19, 2016
Can a selection process of tradable stocks work in the future as it did in the past? We are always able to rank stuff, past data, that is, since it is part of the information set available to us at the time. The objective is to find in the past dataset something to activate decision surrogates to generate marketable trades in the future.
For one, I am looking for tools to help me answer the following graph:
Simple Stock Trading I
August 16, 2016
Since I've returned to Quantopian, I've been busy getting reacquainted with their trading software. What follows are my first attempts at participating in their forums, even if I should have waited. But, the occasion presented itself. Anthony Garner, like many others, graciously posted his trading strategy results and the code for all to see (strategy no longer available. Quantopian shut down in 2020). It is the first strategy I looked at. I found it the easy way to review Python syntax as in learning by example.
Big Bucks Will Travel
August 5, 2016 Modified August 6. See bottom section
In a previous article, it was argued that it was not enough to generate profits over the long term but rather that it was necessary to generate positive alpha. This means that whatever stock trading strategy you might want to use, it had to ultimately outperform the averages. Otherwise, an index fund would have been a better choice. In fact, it's more like any set of investments that could at least beat market averages over the long term would prove to be a better choice.
Back to Quantopian
August 3, 2016
Over the past few days, I went back to the Quantopian website after some 3 years of absence to find that they had improved a lot, an impressive job, sufficient in fact to warrant not only a second look but enough to want to make it a strategy design platform. Sure, it will require that I refamiliarize myself with Python, its syntax, and its packages. But I think it will be worth it. I do like what they did, and it shows promise for what I want to do.
Generate Positive Alpha
July 28, 2016
A shortterm stock trader has a choice, and that is to participate, take a position, or not. It is always his/her prerogative. Participating and taking action is a deliberate act that can be discretionarily done or delegated to a trading script.
A trading program will do what it is programmed to do, nothing else, and therefore, it is about the same as if its designer had made those same trading decisions except much faster, without hesitation or secondguessing.
A CAGR Debate
July 23, 2016
An interesting recent article that appeared in MarketWatch had for introduction:
"Consider: The 30year annualized return for the S&P 500 average was 10.35% through 2015, but the average investor in the U.S. market pocketed just 3.66%, according to an analysis of investors by researcher Dalbar Inc."
We read this, understand and accept the numbers, but we just pass on with some comment approaching: so what! We have seen this before. But rarely put numbers to it. $1,000 at 10.35% for 30 years gives $19,194. That's it!
Trading Strategy Survival
July 11, 2016
Over the weekend, I was confronted with the problem of stock trading strategy survivability as I was reading Prado's book on optimization of trading strategies. Since a lot of what you see in the financial literature puts emphasis on that most trading strategies fail, I had to show that at least my preferred strategy was not designed to do so.
Trade Slicing Stocks
June 27, 2016
Here is an aspect of trading that I have not seen often discussed in stock trading strategy design. It starts with the concept of line segmentation, or the slicing of stock price time series, and deals with what might be considered stochastic stopping times.
Most aspects of it have been covered before in financial literature, but maybe not in this fashion. Hoping to provide a slightly different perspective.
Revisited Stop Loss III
June 22, 2016 Also available in PDF
(Part 3 of 3), (for Part I, Part II)
Should the picture change that much if I change the stock under the microscope?
I picked FDX from the same 10stock list I often use in testing trading procedures. If a stock can pass my preliminary tests, then I can go further with the exploratory analysis.
It is when you change the stock under study that you can better view common elements. And from there maybe extract further trading rules designed to help at the portfolio level and not just apply to a single stock.
Revisited Stop Loss II
June 20, 2016 Also available in PDF
(Part 2 of 3)
An Inquisitive Backtest
I opted to test the protective stop loss hypothesis starting with the notion of having a 10% trailing stop loss. The intention is to buy stocks on their way up and sell them later at higher prices (see the intro, Part 1). To execute a trailing stop, you first need to buy some shares, so I also put in a 10% trailing buy order from a bottom.
Revisited Stop Loss
June 20, 2016 Also available in PDF
(Part 1 of 3)
What is it you want? The money, the entertainment, recognition, or maybe just something to talk about as if you were in the know of worldly events. Just in case it is the money, then you might appreciate what follows since it is all about your longterm portfolio protection.
This is a 3part series that elaborates on the use of stop losses in stock trading strategies. I think you will be able to benefit from my observations. To skip the text, examine the charts for what they have to say.
You Don't Win All The Time
June 7, 2016
Last month, after a week of designing on paper a trading system, I spent another three trying to formalize in code its trading procedures. At its core, I needed a special derivative function as I thought it might enable a different perspective on trading cycles. On paper, it showed a huge profit potential.
On Portfolio Drawdowns
May 3, 2016
After reading the article: 180 years of market drawdowns, I thought I could add something to it. A different perspective, but nothing contradicting the author's point of view, on the contrary. I found his article most interesting.
Portfolio drawdowns are relative. They are relative to the trading strategy used. But one thing is sure, a lot of trades will see some drawdown, more than people think. I opted to use one of my programs to illustrate the point by doing a simple test on two stocks I have tested before (see DEVX8related programs). I just wanted to verify some numbers.
A Different Take
April 29, 2016
In a LinkedIn forum I participated from time to time there was this statement: Why it's not possible to teach most people to be successful (primarily related to automated trading). To see the thread follow the link. (Sorry, the link does not work anymore).
I somewhat disagreed with the initial appraisal. I did have a different take on it.
That thread initially implied that there is this 1% that made it (trading profitably, that is) when even that was not demonstrated. The other 99% were considered "rookies" from whatever profession they might have come from and who have somehow to learn the ropes, somehow.
The Value of a Stock Trading Strategy II (the analysis)
April 20, 2016
After doing the longterm simulation described in my last article. It was time to open the black box and analyze what was inside. What follows is my analysis of the strategy presented in the previous article, and I will reference it often. I want to extract what went wrong in that trading script to make it lose when, without really trying, it should easily have won the day, meaning that it could have ended positively, even if not by much.
The Value of a Stock Trading Strategy
April 13, 2016
Finding badly designed stock trading strategies is easy. I have hundreds of those on my machines. Took only a few minutes to locate one to illustrate my point. I didn't look at the code; technically, it was not required. But did perform a 20year simulation on a small group of stocks. The same 10 stocks I used in recent months to explore a strategy's strengths, weaknesses, and limitations. The main reason for using that group was to keep the ability to compare strategies and performance levels while seeking the answer to the question: is strategy A better than strategy B?
Retail Stock Trading Environment
April 8, 2016
There are millions of traders and millions of trading methods, but a lot more investors. At the end of the day, all financial assets are accounted for to the penny and in someone's hands. In the US, that's about $99 Trillion dollars worth; this includes real estate, stocks, and bonds. It's a big number. Some hold some of these assets for a short time, others up to multiple decades.
The shortterm retail trader is part of the minority and doesn't control anything.
Randomness in Stock Prices II
March 9, 2016
From the comments received over my last article on Randomness in Stock Prices, there appears to be some confusion for some in the terms used. I'll try to clarify my point of view.
Usually, the word random implies that you cannot predict the next move better than by chance, otherwise it would not be random. You can assign odds and probabilities to the outcome from observed statistics. For instance, in a random game like heads or tails, you can assign 0.50 as the probability of getting head on the next flip of a coin.
Randomness in Stock Prices
March 4, 2016
Will a game with 51:49 odds still show some randomness? YES, definitely, and a lot of it, even if it has a positive expected value. The same goes for a 52:48 game, there would still remain a lot of randomness. It might not matter much how the data might be distributed, it would still be mostly randomlike.
Does the classification of a quasirandom game require a Gaussian distribution? NO, not at all. It could be any other type of distribution with or without fat tails.
A Stock Trading Strategy Experiment V
February 8, 2016
My take on my Stock Trading Strategy Experiment.
The whole Strategy Experiment had two surprises. The first one is that the MACDv03 program managed to outperform one of my preferred strategies: DEVX8. The second is how unexpected it was since it was not my primary objective.
My objective was to show that you could take an ordinary trading script and transform it into a portfolio builder. I considered the task a worthwhile experiment, hence the title.
A Stock Trading Strategy Experiment IV
January 30, 2016
Time for some analysis. It took 2 days to design the first productive version of the program MACDv01. Another 3 to add the improvements that generated Strategy Experiment II (MACDv02). I made some minor improvements overnight, which resulted in MACDv03, the one used in Strategy Experiment III, where I ran the program once on the 10stock portfolio, and then reported the results.
All of it was being done live and recorded as I went along.
A Stock Trading Strategy Experiment III
January 26, 2016
In Strategy Experiment II, I presented a stock trading strategy based on the MACD, a technical indicator often used in developing strategies. In the Trading Strategy Experiment I article, it was shown that such a minimalistic trading strategy would not produce much over the long term. However, in a Linkedin forum, Strategy Experiment II, it was shown that it could be transformed and used to produce interesting results at the portfolio level and over the long haul.
Trading Strategy Experiment II
January 22, 2016
In my last article: A Stock Trading Strategy Experiment, I said it was time to do the portfolio level test. I would take the same trading script, or slightly improved, that generated ABT's results and then use it on the other 9 candidates in the dataset. The same stocks will be used as in the Delayed Gratification test. This way, I should be able to make some strategy comparisons.
Trading Strategy Experiment I
January 19, 2016
The objective is to design an endofday (EOD) stock trading strategy almost from scratch with, for background, an old trading script that did no trading at all. It was published in 2000, over 15 years ago, author's handle: Glitch. As given by the author:
"The indicator oscillates around zero and registers extreme ratings when prices are trending. Values above 100 indicate a bullish trend, and less than 100 indicate bearish trending. This ChartScript colors the bullish bars blue and the bearish bars red. Congestion bars are black."
Stock Trading Strategy Mechanics
January 2, 2016
My first book was released on January 1st, 2016, and made available on Amazon. Never thought I would ever do this. But there it is.
Stock Trading Strategy Mechanics
It's a major transformation for me. I usually put out stuff that is clearly free, with no strings attached. But then, you observe that because it is given free, people attach no value to it. So, maybe now they will think it is worth something.
Stock Trading Randomness
December 28, 2015
A stock price series is the same for everyone. Everyone trading it wants to profit from it. Anyone wishing to trade it, implying shortterm, understandably, will have some kind of method to do so. Trading one stock or instrument at a time might not be enough. One has to have some perspective and a longterm plan, not only to build up a portfolio but also how to manage it over time.
Delayed Gratification II
October 24, 2015
The article Delayed Gratification presented the 20year test results of running the trading script DEVX6 (last modified June 2014, over 16 months ago) to which were now added 4 lines of code made to insert a conditional oneday time delay before salable shares might be sold. This pushed the 10stock portfolio performance higher by $226M compared to the previous version of the program, and this with a 12week walk forward test where the market average declined by 3%.
Delayed Gratification
October 23, 2015
In my previous article: A Case Study, commenting on the DEVX6 strategy, I said: "...those added lines ...could be used in the trading process itself since they were pretty good at isolating most of the trade clusters". It raised questions: why not use them? Can you get something extra using that information? Visually, those lines seem to be doing a decent job.
So, I went back to the DEVX6 program (June 2014 edition) and started looking at what I could do to improve its trading in general.
A Case Study
October 22, 2015
Over the last week or so, I've had some discussions on my trading methodology. One of which centered around a demonstration of what it could do. In reply to a friend's statement, I said: "My program would have done that too on that stock", which was to buy shares during the last price decline about a month and a half ago or so. I realized afterward that it was very easy to say.
Strategy Design II
August 24, 2015
(see Part 1) The evolution of a portfolio is determined by its ongoing inventory composition. It can be written as a time function:
A(t) = A(0)*f(n, q, Δp, I, D, t).
The information set (I) can be independent of everything. It's just one's way of looking at things and reaching trading decisions or not (D).
Strategy Design I
August 23, 2015
Any stock trading strategy should be basic common sense. A stock portfolio does not grow instantaneously. It takes years to build it up and nurture it. It is not enough to make a trade here in there without considering the size of the portfolio or the time span under which it will have to grow.
Portfolio Building
July 26, 2015
In building a stock portfolio, the account size alone will more likely dictate the trading/investment management style, its constraints, and its conditions.
Also, it will depend on other things such as return objectives, acquired market knowledge, acceptable risks, available time, and temperament. I would say: "Ultimately, the portfolio manager will be the focal point, the only decision maker whatever approach one might want to use", be it automated or discretionary.
Still More DEVX
July 23, 2015
In my previous article, More DEVX V6 has shown a simulation of the program over 10 stocks over durations of 10 and 20 years. The point was to show that this particular stock trading strategy would easily survive not only over its first 10year trading interval but also over a 20year period, and this includes one year as a walk forward.
More DEVX V6
July 3, 2015
One of the hardest parts of managing a stock portfolio is designing a workable and profitable longterm trading strategy. It needs to be based on sound principles and provide a foundation as to how it will handle an unknown future. Trading automation presents an added dimension to the problem.
Connecting Dots
June 16, 2015
There is sufficient data to start connecting the dots. What follows are explanations given to tests performed over the last few weeks to answer some questions on a LinkedIn forum. The last two tests have not been presented yet, but they will shortly. The point was to show that the trading method used mattered more than the stock selection that could be made.
Trading Perspectives
June 1, 2015
A stock price series can be viewed as a stochastic, erratic, chaotic, and randomlike time function with shocks, gaps, and fat tails. Mostly unpredictable. Accepting this has a consequence: one can't predict with any significant accuracy the price of any stock, be it today, tomorrow, next week, next year, or 20 years from now, for that matter. Saying that a stock might be between $0.00, $10,000, or whatever with a 95% confidence level in some 20 years does not help at all.
Cheating by Spoofing
April 27, 2015
Navinder Singh Sarao was caught cheating by spoofing. It took 5 years to finally prosecute him. 5 years during which time he continued to cheat. Could one say that regulatory agencies were sleeping at the wheel? For sure. Could one add that brokers, exchanges, and secondary parties that observed the misconduct were turning a blind eye since they could benefit indirectly by doing so?
Portfolio Math I
January 30, 2015
When designing stock trading systems, it is a good idea to view the problem not only with a vision of what a trading program could or should do but also with an understanding of the environment in which this program will have to operate.
In a software trading program, in which we can make it do whatever we want it to do, we only have logical decisions, calculations, and statements in code to execute.
Trading Short Term?
January 2, 2015
Trading ShortTerm or Not? That is the question.
Whatever automated trading methods you might have used in the past, use now, or will use in the future, it has for unique purpose to make you money. It's not important that the code you use is well structured and nice or which software you will use. What's important, however, is the ultimate outcome of the trading strategy. One should understand what it really does and how it behaves under favorable and unfavorable conditions.
DEVX V6 Revisited
November 25, 2014
Recently, I made the remark somewhere that if my DEVX V6 random trading strategy simulation was performed again, it would achieve almost the same results as the one done on November 2^{nd}. It is always easy to make such a statement. But for me, when I express something like this, I need to show some proof or at least some evidence that it would be so. Expressing it, even if I know the end results before making such a test, might not be considered sufficient by others.
A Unique Approach
November 11, 2014
In my last paper: A Donor Within, it is explained how an existing trading strategy was modified to reach a higher performance level. The section: One More Thing, starting on page 30, goes through the process.
First, the desired expectations were put on paper before any testing: increase position size by a factor of 10 and then improve on the compounded annual growth rate (CAGR) for the 30stock portfolio over the last 25 years. Needed software procedures were determined, and then the program was modified and debugged on a single stock.
A Donor Within
November 6, 2014 New paper: A Donor Within
Just sent my pledge to the Bill & Melinda Gates Foundation. I found it to be the best outcome for my years of research. Over the last few years, I've developed a series of better and improved trading strategies. My best strategies should be considered sophisticated, designed for longterm appreciation, and should prove to be most profitable.
I view the offering of my bestperforming trading strategies as my way to help people more than I ever could alone. It is all explained in my latest paper: A Donor Within.
Winning by Default II
August 11th, 2014
As a followup to Winning by Default, I wanted to show intermediary test results. The objective is to show the evolution of such a trading strategy from day one. There was no need to enhance its performance level beyond the rudimentary settings as was done in Winning by Default. This is more of a whatif scenario analyzing a trading strategy's longterm behavior and system metrics.
One For All?
August 3, 2014
What follows is an experiment in strategy design.
Scenario: from one stock, over an 8month period of the past year, I predetermined trade entry and exit points by date. Therefore, this experiment is entirely fabricated. Nonetheless, there was something to learn from the process.
Using one stock (AXP), I hardcoded trade dates and produced the following for summary performance report:
Winning by Default
July 28, 2014
In the same vein as in previous articles, I'd like to present the following charts from a portfolio simulation done last weekend. It's huge, and I am still analyzing the details involved in such a big portfolio. Its payoff matrix has a size of 13,000 rows (days) by 985 columns (stocks); that's 12,805,000 data entries for each of the matrices involved.
Test Summary
July 20, 2014
As a summary, up to now, 4 longterm trading strategies have been analyzed. All four started as nonproductive, meaning that they could not even beat the Buy & Hold over the long term (read 20+ years). The trading strategies' original versions have been in public view on the legacy WealthLab site for 8 to 12 years. Each strategy was modified to gain a longterm perspective with, for a backdrop, the accumulation of shares.
Deviation X
June 24, 2014
Following my previous note, there was only one thing left to do, and that was to perform all the mentioned longterm tests. First, on the original program version as published on WealthLab in July 2002. Then, on one of my modified versions of this trading script, DEVX (version 3), and leave for the end improvements that could push performance results higher using general trading policies rather than trying to optimize parameters.
Swinging It
June 18, 2014
My next trading strategy to be analyzed is kind of another strange trading script. It buys and sells on about every price swing. It sets a notrade zone. Will buy below and sell above. Yet all entries are the result of random functions. It gives the illusion of perfect timing when, in fact, trades are coincidental. Meaning that, on purpose, they are not hitting the highs and the lows but are a side effect and a direct consequence of the methodology used.
Unorthodox Trading
June 8, 2014
Still in the process of reevaluating my old trading strategies. This time the selected strategy is the BBB System (BullPower and BearPower Balance). It was designed in 2003, and its author also published it in Stocks & Commodities magazine (October issue). This means at least 10 years of outofsample (OOS) data. One can do a 10year walkforward test on this one since it has been literally frozen in time.
Bizarre Trading Behaviors
June 3, 2014
About a week or so ago, I started doing the inventory of my trading strategies, a project that has been delayed for over a year due mostly to procrastination and lack of time. It's a big project. I'll have to go through over 200 trading strategies of mine and document what each trading procedure does. Then determine their relative importance and the reasons why they contributed to overall performance. Hopefully, this should translate into designing even better trading scripts or at least selecting the best of the crop.
This Crazy Game
April 30th, 2014
In my previous note, I presented a chart displaying the evolution of the stochastic differential equation SDE based on the length of the trading interval Δt (from Δt → 0 to Δt → T (longterm horizon). The SDE is an idealized and acceptable model to depict price action and has been widely documented in academic papers for over 60 years. It's a simple regression line over the considered data.
The Drift
April 22, 2014
This article starts with the conclusion of a few lines drawn on a piece of paper, a simple representation of what I had in mind. I knew that the two drawn sigmoids were the answer to what I wanted to express. It's not that it was saying anything new. These curves have been out there for ages. It's just that much information could be extracted from those 2 curves.
Leveraging II
March 24, 2014
This is a followup to my previous article on leveraging, where additional explanations were required to make my point clear. The formula presented lets one "control" an acceptable leveraging factor without changing much to the longterm output (as a matter of fact, less than 1%). And even there, it will be to one's advantage.
Leveraging I
February 19, 2014
Last weekend, I had to answer a question: < I have read all your posts, but I am a little unclear about the following where you said: " It does show the value of accumulating shares of a rising stock and letting the market pay for it. " >.
My answer might be of interest to some. I thought the easiest way to answer this question was to illustrate the point with a few charts.
A Trading Machine VI
December 9, 2013
In Designing a Trading Machine V, and previous notes in this series, the point was made, hopefully, that accumulating shares over the long term while trading profitably over the process was another way of looking for some kind of trading edge. This edge had for vision: nΔP, with ΔP > T > 0; producing, on average, a positive difference ΔP, a trade profit threshold T to be reached, and which was desirable to repeat many times (n), or else go for a larger ΔP on a small number of trades.
Trends?
October 22, 2013
Everyone seems to agree with the notion and existence of a "trend", but no one seems to agree on its definition. Some want a universal definition with no compromise, like in, this is "the" trend, period. Geez, it's evident, see, it starts here and stops there; it can plainly be seen by anyone of age on any chart of past stock price data, whatever the selected time frame.
A Basic View III
A Basic View II
August 18, 2013
When looking for a trading strategy, one usually starts with a search for methods and indicators that can identify trends, then proceeds to find triggers as decision surrogates to execute entries and exits. Looking at past stock data, trends of all lengths can be found with ease, even if one does not have a clear, precise, or universal definition of what a trend is.
A Basic View
August 14, 2013
However you want to look at your trading methods, some very basic math applies. For sure... It is not, and cannot be: those math things don't apply to me. I've got "my proprietary trading system" of play that circumvents all that. Sure...
Some seem to look at the stock market game as the same as a casino and play accordingly.
Optimization Revisited
August 1, 2013
Optimization of a stock trading script over past data is the process of finding optimum procedures, and parameter value sets that can produce the highest possible return over the testing interval. Robustness could be said of a system having wide ranges of values for each of the parameters in the set and still maintaining highperformance levels.
Old Routines II
June 5, 2013
As a followup to my previous article on the longterm simulated IBM performance results, I've opted to provide more details on the origin and makeup of the underlying trading strategy. That article concluded with the results of a prior simulation done almost 2 years ago, in July 2011, using almost the same trading script.
Old Routines
June 5, 2013
Last week, while I was looking for some software routines, I started trying out some of my old programs to see if visually it would be easier to locate them. These programs had not been executed for over two years, and out of curiosity I also wondered how they would have done. It would be like a walkforward test and an outofsample test at the same time since none of the data could possibly have been known to these programs outside their initial testing intervals.
On Randomness
April 28, 2013
When looking at stock price series, you often hear that such series are random or almost random in nature, and if such was the case, then such series would have little predictability, if any. However, some interesting observations could be made depending on the model used to mimic random stock prices.
The following chart shows a randomly generated price series.
On Cutting Losses
April 27, 2013
Over the past few weeks, I've been posting in a LinkedIn forum on the subject of trends, randomness, and designing outperforming trading strategies. It started as an attempt to answer the question: "Cut your losers and let your winners run". What I wanted to show was this type of market wisdom is not necessarily true.
A Trading Machine V
April 3, 2013
From the observations made in Designing a Trading Machine IV, it was said to find and select some n (ΔP > T) on a daily basis (or any trading interval for that matter) where n was the number of profitable trades exceeding a certain threshold T.
A Trading Machine IV
March 30, 2013
In Designing a Trading Machine III, I was making the point that ΔP > 0 was a sufficient condition to make a profit: P(out) – P(in) > 0. It says nothing about how the profit is made, but it does say that to have one, the relation must hold. This relation could be considered time and sizeindependent.
A Trading Machine III
Designing a Trading Machine II ended with the presentation of a simulation test where the objective was to increase the number of profitable trades over the trading interval. The selected script was transformed in order to increase its buying procedures and thereby increase its number of trades (some 40fold over the original) for the 6year trading interval.
A Trading Machine II
Following the previous article: Designing a Trading Machine, it's time to start designing it. Some considerations or constraints will first be addressed, and from there start to give a structure to a trading strategy that will or should survive over the years.
A Trading Machine
An Experiment II
January 19, 2013
In my previous note: An Experiment, I chronicled the process of modifying the Livermore Market Key trading script after having issued a challenge to anyone wishing to show their system development skills. What follows is the continuation of that article, starting with its ending.
An Experiment
In early June 2011, I had this great idea: take a known and publicly available trading strategy and offer a challenge to improve its performance level using whatever enhancements one could bring to the task. I figured it would be a simple way to showcase my own trading philosophy; if it was any good, it would easily show in the test results.
Winning the Game 1.1
December 5, 2012
To make the concepts in my trading methodology clearer and mainly to answer some recent criticism concerning the mathematical expressions used in my notes, short of maybe giving my programs away, I opted to revisit the foundations on which my methods rest and explain them in more detail.
Winning the Game
October 30, 2012
How can I win the stock market game? One asks this simple question and is bound to receive a million answers. Almost everyone has a piece of advice on this subject, with lots of investment folklore, hot tips, and unsubstantiated claims.
A Kind of Review
September 30, 2012
I have had this web page up for over 15 months now. Its prior version has been on since 2008, and during all that time, I have promoted the concept of trading over a stock accumulation process as a methodology that has more than the potential to outperform most trading methods out there.
Script Transform
September 8, 2012
I occasionally participate in the Automated Trading Strategies forum on LinkedIn. And over the past few weeks, I provided some comments which elaborate on the trading methods I use in my strategy design. The following observations are almost in chronological order.
On Compounding
August 19, 2012
Designing a very profitable trading system is all about compounding. And if there is one thing that any trading method should strive for is to acquire, as much as possible, longterm sustainable alpha points. Playing for a 40% return in one year has little value if it is lost the year after ($1.00 x 1.40 x (1  0.40) = $0.84).
A Changing Game
August 6, 2012
My latest paper, A Changing Game, is out. It summarizes some of my latest articles on random trading over randomly generated stock prices made to mimic real stock prices, including rare events or infrequent price gaps. An Excel file is provided for the more venturous. It contains a lot of lessons for those who want to look beyond what is there (file no longer available).
On Doubling Time
July 30, 2012
The stock market game is a compounding rate of return game. The main objective is to obtain a compounded annual rate of return as high as possible over the longest time interval within portfolio constraints of which the first is not to go bankrupt.
In one of its simplest forms, portfolio performance could be expressed as:
Changing the Game III
July 8, 2012
After the conclusion of my previous note: Changing the Game II, it was time to put the finishing touches on the Excel file.
Changing the Game II
July 4, 2012
In the previous chapter, Changing the Game, it was presented that even trading randomly over randomly generated stock prices could not only generate a positive outcome to the portfolio payoff matrix but that this outcome could generate exponential growth.
Changing the Game
June 25, 2012
The Setup
In my last commentary: Randomly Trading, I presented the execution of a randomly generated trading strategy over randomly generated stock prices. The original intent was to answer someone on a LinkedIn forum on how to build a payoff matrix: Σ(H.*ΔP). So Model 1 (a very basic Excel file) was provided to show how to set up all 4 of the needed matrices: P, ΔP, H, and H.*ΔP. Each matrix deals with an aspect of the payoff matrix used to simulate a portfolio of 10 stocks over 250 trading days (about a 1year trading interval).
Leftover Bollinger Band
June 1, 2012
After dumping the Ichimoku script and starting to transform a Bollinger Band trading system found on the old WealthLab 4 website, it was obvious that this new system had more potential. At least, it could keep part of its identity.
It turned out that this “new” 2008 system was a variation of a 2002 Bollinger Band system designed by Mark Brown, who participated in one of the forums I visited on LinkedIn. At times, the world may be very small.
On Optimal Portfolio IX
May 21, 2012
Designing Trading Rules
If you want to implement an “enhanced” trading strategy H^{+ }based on buying and selling functions and/or procedures, your primary objective, as before, is for your portfolio to exceed the Buy & Hold, performancewise.
On Optimal Portfolio VIII
May 6, 2012
Developing a Trading Philosophy
Usually, developers start by programming trading strategies based on some particular idea or concept they might have on market or price behavior. The objective is simply to design a better trading strategy. They will backtest past market data to see if the trading procedures generate profits or not. From there, they will start an iterative process to improve the structural design of their new preferred trading strategy.
Some observations
April 20, 2012
Over the past few months, I've been mostly involved in backtesting various concepts to see if they could enhance my trading methodology. The process is still ongoing. Meanwhile, I thought it might be interesting to respond to a post on the LinkedIn group Automated Trading Strategies, where the question was: why not show your methods live on Covestor or Collective2? This way, anyone would see your socalled “over”performance results and if your trading methods have any value.
A Single Equation
March 4, 2012
All I have written on this website is dedicated to a single equation, which translates into a single concept. This equation has evolved over the years but not in what it represents or its governing trading philosophy. The concept remained the same throughout, and that is trade over a longterm share accumulation program. In its latest iteration, it can serve as an explanation for the process. Its payoff matrix representation looks like this:
On Optimal Portfolio V
January 22, 2012
New Presentation: Alpha Power Trading Methods.
On Growth Optimal Portfolio IV ended with: “By adding a trading component to the above equation, one can push performance to an even higher level”.
On Trade Slicing
January 31, 2012
Recently, in a LinkedIn forum, I presented my latest research note: Optimal Portfolio V. The object was to show that designing holding functions that can increase exponentially in time had a secondary effect on increasing portfolio profitability at an exponential rate as well. Using a stock accumulative process, to which was added a trading component, could produce exponential alpha that went way beyond the Buy & Hold strategy.
On Optimal Portfolio VII
April 23, 2012
Conquering Compounding Power
Recently, doing some tests on some scripts that are still available on the old WealthLab 4 website, I noticed that I could select almost any script and push its performance level higher. And that raised the question: why? You should not be able to do this. All scripts are like trading philosophies, a modus operandi, a kind of recipe trying to print money. These trading strategies are not just some set of random buy and sell orders.
On Optimal Portfolio VI
March 22, 2012
After having added a covered call and a naked put program to the trading component applied to the share accumulation routine, we were left with the following payoff matrix:
On Optimal Portfolio IV
January 4, 2012
Programming trading strategies is a succession of transforming an idea or ideas into procedures that, when applied, perform better than the previous iterations.
I am always looking for the best performer. I also know that I can always do better. But there are some basics. First, I know that whatever effort I deploy, I must at least beat the longterm Buy & Hold strategy. If I can not do that, then why do all the work?
On Optimal Portfolio III
November 11, 2011
In my previous notes, I tried to make the case that by adopting administrative procedures, a portfolio manager could achieve an exponential Jensen ratio. All he/she had to do was to reinvest the portfolio's profits as they came in. Not that difficult a task! About the same as reinvesting the dividends as they came in. Nothing fancy, I would even say boring, but a task that needs to be done nonetheless.
On Optimal Portfolio II
October 26, 2011
I tried to show in my previous article that adopting a profit reinvestment policy was not only possible but also a simple way to achieve an exponential Jensen ratio. The conclusion was that skill matters, and it grows with age. It's part of the very nature of an exponential time function. So the question becomes: why aren't most investors adopting such a winning strategy? Or better yet: are there ways to improve on this exponential Jensen ratio?
On Optimal Portfolio
October 22, 2011
Academic financial literature is fond of the notion of No Free Lunch (NFL); which is the same as saying you can not do better than us. If there was a free lunch, we would have eaten it already. There might be some crumbs left but then again...
Trend or No Trend
October 18, 2011
Since last April, I have done numerous trading simulations looking for which of several trading methods I would like to adopt. It's a search not only for the best performer but also for the one I'll be most comfortable with, and which would become my trading platform for the coming years.
ITRADE Formula
October 15, 2011
This article is dedicated to Ian, who asked very pertinent questions concerning my trading methods on LinkedIn's forum: Automated Trading Strategies. But I did not have simple answers. I was aiming for a short reply, but it morphed almost into almost a thesis. I am sure he will recognize from the maze below answers to his questions.
On BackTesting II
October 7, 2011
My backtesting methods usually start the same. I locate a script for one reason or another, try it on a few stocks, then look at the script to explain what I saw on the generated charts and analyze the trading decisionmaking.
In this case, I started yesterday with the: “One Minute Bollinger Band System” chartscript listed on the old WealthLab 4 website. This script is presented as Technique 16 in the book: “Trade Like a Hedge Fund”. (Note: The old WealthLab 4 website has shut down).
On Seeking Alpha Part III
September 28, 2011
Trading over Accumulation Procedures
First, a Side Note:
All my writing is to show that by slightly changing one’s point of view, one can design automated trading systems that not only outperform the Buy & Hold but will leave it far behind performancewise. The first point being made is probably that the Buy & Hold and short to midterm trading are not mutually exclusive; however, combined, they can do wonders.
On Seeking Alpha Part II
September 14, 2011
Trading on What?
For the shortterm trader, trading on what basis becomes a major concern. Fundamental data is of little help in analyzing shortterm market activity. Technical data is good at saying what was but has little shortterm predictive power. Statistics seems to become the only source of filtered data that can bring an edge, but there again, all you will find will describe past price action.
On Backtesting
September, 08, 2011
Not everyone needs to do backtesting, and therefore, to some, it is not a worthwhile endeavor. There are thousands of ways to play the stock market game, and a lot of them do not require backtesting at all.
For instance, I am sure Mr. Buffett does not do any kind of backtesting, nor does his staff have any time for it.
On Seeking Alpha
August 27, 2011
The most concise mathematical formulation for profits generated from trading stocks that I have encountered is provided by Schachermayer's payoff matrix:
Profits = ∑ (H . * ∆S) Schachermayer's Payoff Matrix
where H is the holding matrix (the number of shares held in each stock over time), and ∆S is the matrix of price differentials from period to period.
Implemention: Still On
July 26, 2011
I have been in the implementation phase for over 6 months now. A lot of backtesting has been done, always improving on the trading model and pushing performance higher and higher. From the first implementation, where the compounded annual growth rate (CAGR) was around 50%, to the latest iterations, where the CAGR exceeds 100%, it has been a long journey.
My Trading Methods
July 6, 2011
This site is dedicated to a single concept, and that is: it is not only possible to beat the Buy & Hold strategy; it can be done easily and by a wide margin. Doing so requires changing slightly the point of view of the stock trading process, which is summarized in the graphic below:
Why Does It Work?
May 27, 2011
I am always looking for reasonable explanations for my trading scripts. What makes them work, what are the principles at play, and what is the main reason for their high or low performance? Are the improvements really real, operating at the portfolio level, or are they just curvefitting on a single stock? These are all legitimate questions, and if I can’t provide a reasonable answer, a common sense answer, then it should be back to the drawing board.
Alpha Power Overview
May 19, 2011
What is Alpha Power? Alpha Power is a trading methodology developed and refined over the years to become a total portfolio management solution. It was designed to meet several key objectives: 1 to greatly outperform the Buy & Hold strategy, 2 to accumulate shares over time while doing so, 3 to trade market swings over its accumulative functions, and 4 to accept other features that can boost performance.
Implementation Phase
May 8, 2011
Implementation Phase. At Last! Over three and a half years in the making, I was always sidetracked by the need to prove to myself that the methods that were used were worthwhile by setting the mathematical framework where they would have to survive. Had I not achieved to demonstrate mathematically that it was feasible to achieve some alpha trading stocks, I would have had to stop searching.
Enhanced Payoff Matrix
September 12, 2009
This article is a followup to the position sizing article. It is available HERE.
What preceded position sizing was the general mathematical framework where an optimal trading strategy was simply summarized as a shareholding matrix,, where the initial quantity held in inventory could grow at the portfolio's delayed average exponential rateThis "optimal" trading strategy is not unique; it depends on each stock's appreciation rate and as such will be different for each subset of stocks selected as a portfolio.
Total Solution
May 14, 2009
The Buy & Hold strategy will build equity V(t) at an expected rate of return that will be close to the expected average secular market return:
At least, that is what you should expect. It is, for instance, the whole idea behind index funds. However, the Buy & Hold, as is, is quite inefficient.
Trading Formula
November 27, 2008
My latest trading formula. Over the past few weeks, I have been working on ways to mathematically express some of the performance behavior of my underlying trading philosophy in an attempt to better understand the whole process. My trading methodology uses partial excess equity buildup to acquire more shares on the way up and consequently slightly leverages the portfolio. See my Jensen Modified Sharpe paper for a more elaborate exposé.
Another Trading Model
July 8, 2009
Another way of considering the optimal portfolio problem is as in Schachermayer^{1}, where he represents a trading strategy H(∙) as a matrix of size T x d:
H(∙) is the matrix of the quantities held in each stock (1,...,d) over the investment interval with a final time horizon T. Each H_{t} in this matrix is a time series.
Position Sizing
August 4, 2009
Before proceeding with this next section, I would like to make a few comments. This is not intended for commercial publication; for me, it is just a way of keeping a public record of what I think has an intrinsic value (the formula for the Jensen modified Sharpe ratio  equation (16) in my first paper). I write first for myself and sequentially, meaning from the top down, and when I miss something or other, I will go back to include what I think is missing to make the current passage more understandable.
Control Settings
May 11, 2011
I wanted to set one of the control settings, described in my Jensen Modified Sharpe paper, to the desired profit level. From the paper, it is said that you can preset the sum of profits generated. It is not said that you will reach them. The governing equation is dependent on the size and nature of the price fluctuations, and that cannot be guaranteed.