© 2017 by theAlgoLab.com  |  Privacy policy  |  Contact us

theAlgoLab.com trade execution assistance software is only available to residents of CANADA.


AlgoLab by theAlgoLab.com is trade execution assistance software. theAlgoLab.com company, software, or it's principals do not provide trading advice or recommendations. If you require personalized professional trading / investing advice, please consult with a licensed broker/CTM. Actual past performance, or simulated past performance does not guarantee future results. Trading futures assumes a high level of risk. theALgoLab.com and it's principals are not registered as investment advisors. Consult with a CPA or financial advisor, or broker to ensure that your strategy utilized is suitable for your investment profile before trading in an actual funded live brokerage account.


Some trading performance results posted at this web site are from back-testing systems during the dates indicated, using specific settings, from a basket of different futures contracts. Some performance results shown here benefit from hind-sight. Some results shown result not from actual funded trading accounts, but from simulated accounts which have certain limitations. Actual results will differ given that simulated results could under, or over compensate the impact of certain market conditions. Actual draw downs could exceed back-testing draw downs when traded on actual trading accounts.  While back-tested results might show profitable returns, once commission, slippage, and fees are considered, actual returns will vary. 

Futures trading has large potential rewards, but also large potential risk. You must be aware of the risks and be willing to accept them in order to invest in the futures markets. Don't trade with money you can't afford to lose. This is neither a solicitation nor an offer to Buy/Sell futures. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this website or on any reports. The past performance of any trading system or methodology is not necessarily indicative of future results. 

August 22, 2019

Please reload

Recent Posts

Low capital vs. high capital account performance continued. Trade by trade analysis

January 14, 2019

Please reload

Featured Posts

Use AlgoLab to hedge against stock loses in the case of a stock market down turn

February 16, 2017

Use AlgoLab to hedge against stock loses in the case of a stock market down turn

 Let say the value of my current stock portfolio is $100,000, and I'm worried about the next bear market. An average bear market loss is 27% and lasts for about 1 year (14 months to be exact, but lets just estimate 1 year for simplicity). In my case, I would want to protect against a $27,000 stock portfolio loss.


So how can I use AlgoLab to hedge, or to possibly offset some of those potential losses, and how much would that "insurance" cost?


1. Open the Performance Viewer and open the "SuperSystem" multisystem, and specify only the three stock index symbols "Sp500 E mini", "NASDAQ index", and "DOW index". Also, since Gold is sometimes correlated with stocks, and sometimes negatively correlated, lets include Gold in the mix as well.


Note, that with $50,000 of capital, the SuperSystem multisystem trading these 4 symbols only on both the long and short sides would have earned a theoretical $416,000 in just over 10 years.



2. Now specify "SHORT" bias only, and open the "Filters" panel. Copy and paste the following text block into the field under "Specific Dates Filter":





These are the dates for all BULL MARKETS from 2007 to 2017 for the 3 stock index futures contracts plus the Gold futures contract.


Select the radio button "disallow trades between" and the results shown in the Performance Viewer will be results OUTSIDE of the BULL MARKET periods. In other words, they will be results from BEAR MARKET ONLY PERIODS.



What we are trying to accomplish here, is find capital and risk settings that would provide us with an average annual profit during bear market periods of about $27,000 to cover our estimated stock market losses. So, we can just take the profit and divide by 10 periods (there were 10 bull market periods in our pasted text file) to calculate what our average annual bear market profit might be for short positions only.


Using a capital amount of $50,000 and a risk setting of .5 results in total profits over the 10 year back test period of $200,698 which would be an average annual bear market profit of about $20,000, which, for our purposes, is close enough to our $27,000 goal.


So how much does this hedge lose during bull markets? Well, we can just switch the radio button to "allow trades between" and we can see that these short-only trades would have lost $10,000, which is an average of only $1000 per year. Therefore, our "insurance" cost is $1000. This $1000 "insurance premium" would ensure that if there was a bear market, we should earn profits approximately equal to our stock losses of around $27,000.


So to put this another way, with this hedge using AlgoLab, if the next year turns out to be a bull market, this hedge would probably lose around $1000 because AlgoLab would be placing short trades in an up-moving market. However, presumably your stock portfolio would be earning a profit. If the next year does turn out to be a bear market, then you will probably lose around $27,000 in the stock market, but those losses would be offset by your $20,000 profit from AlgoLab trading short-only during that time frame.


The more traditional 'hedge' against a bear market would be selling short futures contracts worth the exact same value as your stock portfolio - which would mean that your hedge would never gain you anything because in a bear market your futures gains would always be exactly equal to your stock losses, and in a bull market, your futures losses would be exactly the same as your stock gains. At least this AlgoLab hedge has a net profitable end result.


To close, I just need to say that I did these calculations very quickly, and there is quite a bit of estimating, and rounding going on here. But.. this isn't an exact science anyhow.







Share on Facebook
Share on Twitter
Please reload

Follow Us
Please reload

Search By Tags