Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

Recommended Posts

The Perfect R Portfolio

 

I was recently watching a short video hosted by Market Club. This particular video was a presentation on their “Perfect R Portfolio”. The Perfect R Portfolio is a portfolio of four ETFs (SPY, USO, GLD, and FXE) that are traded based upon Market Club’s “Trade Triangles” technology. The system rules are simple and clear. For each trade you dedicate 25% of your trading capital. Go long when you see a green Trade Triangle and close the position on the red Trade Triangle. These green and red signals are actually price levels that allow you to place your buy stop and sell stop orders and wait for the market to fill your orders. These values are updated weekly. It does not get any easier than that. Such a simple greenlight/redlight system can be very appealing. In short, the Perfect R Portfolio is a complete trading system that provides you exact entry and exit levels.

 

Because the portfolio contains ETFs, does not trade very often and only takes long positions (there is no shorting in the Perfect Portfolio) it seems suitable for trading in retirement accounts such as a 401K. In fact, I do believe this is what the creators had in mind when developing the system.

 

How Do They Do It?

 

I enjoy attempting to figure out what is going on when I see a trading system demonstrated on-line. It’s a challenge and great fun to reverse engineer signals. Market Club’s Trade Triangles were no exception. Don’t get me wrong, I have nothing against Market Club and I do believe they provide a valuable service. However, how they generate signals became an interest for me and in the end, the concept they are using is well known, simple and totally free. Market Club does provide a nice looking chart where buy/sell signals (Trade Triangles) are nicely displayed on-screen.

 

When I examined the entry and exit signals over time I came to the conclusion that the Trade Triangles are nothing more than a classic breakout indicator. That is, they simply take the highest high over the past N days to determine when to go long and then determine the lowest low over the past N days to determine when to close that same long position. More specifically in the case for the Perfect R Portfolio they use a three month channel of price extremes to determine market direction (trend) and use a three week channel to determine entry/exit price levels. Trend trading based upon price channels is well documented and continues to be a valid trading method.

 

Trend: Three month price extreme.

Signal: Three week price extreme.

 

The trend component of the system is used to filter out bearish market conditions since the system only goes long. So, during bearish times we are in cash or cash equivalents waiting for a trend change to bullish.

 

For example, given an ETF we first determine the overall trend. This is done by determining the price extremes based on a monthly chart of the last three bars. Price touching these extreme levels on a daily chart would determine the trend either bullish or bearish.

 

Once the trend is determined a three bar price extreme based on a weekly chart is used to determine when to exit and when to initiate new trades. When the trend changes from bullish to bearish all trades are closed and we don’t open new long positions until the trend becomes bullish.

 

It’s that simple. Below is a trade example.

 

attachment.php?attachmentid=22808&stc=1&d=1288869712

 

 

Cloning The System Logic

 

But how well has the Perfect R Portfolio done? Well, the portfolio is rather new so they don’t provide much backtesting data. Market Club does provide a short PDF report demonstrating how well the system performed during the 2008 market crash. However, Market Clubs price channel breakout concept can be programmed into TradeStation rather easily. TradeStations ability to access several timeframes on a single chart will be required to make this trading system. First, all trades are executed on a daily chart, buy/sell price levels are determined on a weekly chart and trend is determined on a monthly chart. All three of these timeframes can be placed within one chart and accessed by a single TradeStation strategy.

 

Programmer speaking coming up so be warned.

 

First I’ll create a workspace with a chart of one of the ETFs used in the Perfect R Portfolio. I’ll select GLD. I will want to place trades on a daily chart so I set my GLD chart to daily price data. Next I want to generate buy/sell signals based upon a weekly chart. To do this I create a sub-chart of GLD to hold weekly price data within my chart. I can then access this data programmatically by referencing “data2″ in my Easy Language code. I do the same thing for the monthly timeframe of GLD and can access that data by referencing “data3″.

 

Data1 = Daily chart

Data2 = Weekly chart

Data3 = Monthly chart

 

I created a clone of the system and tested the system with the four ETFs over the life of each ETF. Unfortunately TradeStation does not have the ability to test a portfolio of ETFs given a single strategy. This weakness is rumored to be fixed in version nine of TradeStation. Until then we’ll have to test each ETF individually. So how did it do? Not bad for such a simple system. The results are in the table in the section below. You will see that over the life of the system it is profitable. The life of the system is only from 2004 - October 31, 2010. Most of the ETF data only goes back that far!

 

attachment.php?attachmentid=22807&stc=1&d=1288869600

 

Modified R Portfolio With Risk Management

 

The most obvious drawback I see with the Perfect R Portfolio is the lack of a position sizing algorithm based upon the risk per trade. That is, the dollar amount you’re willing to lose based upon the stop level. I might be inclined to use the Percent Risk Model to calculate the number of shares to purchase based upon a 2% risk-per-trade. This would help normalize risk by reducing the number of shares when the market conditions are volatile and increase the number of shares when volatility is waning. Instead the Perfect R Portfolio uses a fixed percentage (25%) of equity for each new trade regardless of risk.

 

In a future post I will add a position sizing algorithm to see if we can improve the results. If you can't wait check out this blog post where I already have posted the updated version. There is also a short video that explains the inputs to the system.

 

Download

 

I was having trouble uploading the TradeStation Workspace to this post but the EasyLanguage code should be attached. You can also download a copy of the Workspace or the EasyLanguage code at my blog. This code is for TradeStation 8.8.

 

If anyone finds an errors in the code or would like to make a suggestion please let me know.

 

Thanks,

Jeff

5aa71040ef38c_PerfectRPortfolio.png.1d90217bc3cf9dbd12e30b3b114e6233.png

Perfect-R-Portfolio-Trades-on-GLD.png.6b416059d963a45aa1b29b668d7d43d9.png

PERFECT_R_PORTFOLIO_CLONE.ELD

Share this post


Link to post
Share on other sites

How closely does the clone match the real deal? Good question.

 

Market Club just posted an alert in regards to their Perfect R Portfolio going long today in USO. They purchased USO at $37.13. The Perfect R Portfolio Clone with data from TradeStation triggered a buy signal today @ $37.31.

 

Occasionally I've noticed these slight price differences and I would assume they are due to the data being supplied from different vendors.

Share this post


Link to post
Share on other sites

Hi Jeff thanks for your post.....i am using on forex as per market club ......looks very good......here tha chart daily on EURUSD......do you see all correct ?

Thanks

EURUSD.png.71ffc728fd907a9fdb0a3580ff2c264f.png

Share this post


Link to post
Share on other sites
Hi Jeff thanks for your post.....i am using on forex as per market club ......looks very good......here tha chart daily on EURUSD......do you see all correct ?

Thanks

 

Looks good Dirk. Never thought to try it on forex.

Share this post


Link to post
Share on other sites
Looks good Dirk. Never thought to try it on forex.

 

thanks Jeff......in any case the signals must be filtered ...in market club there is a score and they suggest to take the trade at + 70 for long or - 70 for short.......

Share this post


Link to post
Share on other sites
thanks Jeff......in any case the signals must be filtered ...in market club there is a score and they suggest to take the trade at + 70 for long or - 70 for short.......

 

 

How do you compute a 70 or a -70?

Share this post


Link to post
Share on other sites
Hi Jeff , this is an example of the score......i don't have idea how to calculate....

 

I believe the score is a numerical representation of the trading rules. The code posted above does use a trend filter to filter trades.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

  • Topics

  • Posts

    • USDJPY Remains Biased To The Downside   USDJPY faces further price weakness despite its price hesitation on Tuesday. On the upside, resistance comes in at 109.00 level. Above this level will turn attention to the 109.50 level. Further out, we expect a possible move towards the 110.00 level on a break of that area, A cut through here will open the door for more gain towards the 110.50. On the downside, support lies at the 108.00 level where a break will target the 107.50 level. Below that level will turn focus to the 107.00 level and then lower towards the 106.50 level. On the whole, USDJPY faces further downside threats.        
    • Sterling Advances Barely Hours To UK Elections As Latest Poll Predicts Conservatives Win In just two days from now, a major event that will set the trend for the currency market for the year 2020, the UK elections will be held. In the face of a Brexit extension, UK prime minister had pushed for an earlier election in the hopes of having a majority conservatives win in the parliament which will make the Brexit deal pass through easily. As the clock ticks, with barely less than 48 hours to this epochal event, the newest poll by Survation conducted for ITV’s good morning Britain show predicts a Boris Johnson win by 14 pts. ahead of Jeremy Corbyn‘s Labour party. The Brexit deal seemed to give the conservatives an edge as it accounted for 32% of the vote decision while NHS gave Labour party a slight edge. On the overall, a majority vote of 42% was predicted for the conservatives while Labour had 28%. Market Reaction as the Clock Ticks Optimism looms in the market as the prediction of a conservatives win will ease Britain’s exit from Europe by January 31 deadline. The EUR/GBP pair continued to fall till the early hours of today breaking the 0.8411 trend line targeting the 0.8149 resistance level. GBP/USD pair rebounded to consolidate briefly targeting 1.3381 resistance levels. Technical analysis within a 4-hour MACD shows that both pairs may likely touch down. CAD edged slightly higher advanced by USMCA news but yet to consolidate gains. The USD against a basket of five major currencies held steady awaiting FOMC’s minutes due out tomorrow. Against a basket of currencies, NZD’s dominance is the highest. Sterling also gained momentum firmed up by approaching UK elections. The safe-haven, the Japanese yen, and Swiss franc remain pressured as major events that will shape the market for 2020 are been anticipated. On the Asia side, significant market activity wasn’t recorded as most currency pairs held steady within a day’s range. In the Asian stock market, not so much activity was recorded being weakened by recently released Chinese PMI numbers. Most of the indexes closed a little lower while US stocks rose swiftly after Friday’s release of US non-farm payroll reports. The outcome of the December 15 deadline set by the US for the signing of a preliminary trade pact will determine the week’s direction and even further into the year 2020. Also due out later in the week is UK GDP figures and ZEW released out of Germany.
    • Date : 11th December 2019. FOMC Preview – 11th December 2019. FOMC Preview No policy changes or surprises are expected with today’s announcement (19:00 GMT) and Chair Powell’s press conference 30 minutes later. It will be interesting to see if, as expected, the voting is unanimous this time round. The FOMC members have expressed significant differences of opinion during 2019 as three rate cuts were implemented.  The apparent paradox of low unemployment and low inflation, the new “norm”. The two-digit unemployment rate (U-3) in November edged down to 3.53% from 3.56% in October, and a 3.52% cycle-low in September, all below the 3.58% prior cycle-low in April and a 4.00% rate at the beginning of the year. Current readings remain much lower than the 4.2% long-run unemployment rate projection noted in the September SEP, it is expected that this estimate will be trimmed today. Headline CPI rose 0.4% in October while the core index rose by 0.2%, for respective y/y gains of 1.8% and 2.3%, versus September figures of 1.7% and 2.4%. Today the November headline is expected to fall again to 0.2% and the core remains flat at 0.2% too. The Fed’s favoured inflation gauge, the PCE chain price measure, rose 1.3% y/y in October and expectations are for an uptick to 1.4% in November. The core PCE chain price measure rose 1.6% y/y in November, versus 1.7% in September, and expectations are for the pace to hold at 1.6% in November. The FOMC’s latest median estimates for 2019 inflation are 1.5% for the headline and 1.8% for the core. Hence, the focus will be on the Fed’s new quarterly forecasts, with expectations raised and likely to be mostly bullish results with a bump up in the median growth projection and a drop in the median dot to reflect a steady stance through 2020. However, the individual dots are likely to show both, forecasts for cuts and hikes. Chair Powell is expected to reiterate the US economy and policy are in a “good place,” (a phrase he has used a number of times lately) and could sound a little more upbeat after the strong jobs report. But, he will continue to warn of downside risks. The FOMC isn’t likely to announce any new measures on reserve management operations (QE?) or a repo facility. All steady into 2020 and beyond. USDIndex remains biased to the down side but has support around 97.40 and the 200-day moving average. A breach of this key support zone brings in 97.00 and the October low of 96.85. A break over 97.80 (the confluence of the 20 and 50-day moving averages) and 98.00 would be required before a re-test of the recent high at 98.50 could be considered. Always trade with strict risk management. Your capital is the single most important aspect of your trading business. Please note that times displayed based on local time zone and are from time of writing this report. Click HERE to access the full HotForex Economic calendar. Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding on how markets work. Click HERE to register for FREE! Click HERE to READ more Market news. Stuart Cowell Head Market Analyst HotForex Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in FX and CFDs products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
    • Bitcoin Cash (BCH) Holds At The Bottom, Is The Consolidation Ongoing?   Key Resistance Levels: $275, $300, $325 Key Support Levels: $200, $160, $120 BCH/USD Price Long-term Trend: Ranging Bitcoin Cash had been trading in the large price range between the levels of $200 and $240. Presently, the coin is now fluctuating at the bottom of the chart. In retrospect, the bulls break the $240 resistance line and reached a high of $310. The coin was resisted as BSH drops back to a range-bound zone. The bears tested the low at $200 but there was a pulled back. The pullback was a correction as the upward move was stopped at $227. BCH is trading between the low at $200 and $227. The bulls are now having difficulty to move upward because of the resistance at $227. Conversely, the bears have failed to break the low of $200. Daily Chart Indicators Reading: The Fibonacci tool indicates that the coin reverses at the 1.272 extension level. BCH will resume the downtrend if the downtrend line or the support line is broken below. The RSI period 14 level 35 is indicating that the price is falling. BCH/USD Medium-term bias: Ranging On the 4-hour chart, the coin is fluctuating between the levels of $200 and $220. The bulls tested and broke the $220 price level but fell back to the range-bound zone. The price is trading below the $227 resistance level; a break is being expected shortly. 4-hour Chart Indicators Reading The market is trading above the 20% range of the daily stochastic. This signifies that BCH is in a bullish momentum. The blue and red lines are trending horizontally indicating that price is fluctuating. General Outlook for Bitcoin Cash (BCH) Bitcoin Cash is still confined within the price range of $200 and $240. Presently, BCH is in a tight range; a break above $227 will move price to the high of $240. Nevertheless, a break below $200 may weaken the coin to a low of $160. Bitcoin Cash Trade Signal Instrument: BCHUSD Order: buy Entry price: $203 Stop: $175 Target: $241 Source: https://learn2.trade 
    • Dead thread to communicate. Even the website have no more active members to share anything here.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.