Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the feedzy-rss-feeds domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home1/portfol1/public_html/wp/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the restrict-user-access domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home1/portfol1/public_html/wp/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the mailchimp-for-wp domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home1/portfol1/public_html/wp/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hueman domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home1/portfol1/public_html/wp/wp-includes/functions.php on line 6114

Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /home1/portfol1/public_html/wp/wp-content/plugins/add-meta-tags/metadata/amt_basic.php on line 118
Trading System Performance – Skill or Luck | Portfolio Yoga

Trading System Performance – Skill or Luck

So, you have finally devised your trading system which seems to have produced good returns in the back-testing you have conducted and is ready for trading with real money. Pat yourself on the back since regardless of what happens next, you have taken a step towards being a better trader by using a rule based strategy than implementing a discretionary strategy where every rule has a exception and every failure is easily rationalized.

By accepting that we have our limitations which can prevent us from succeeding in markets, we are able to make our trading more process driven and one where mistakes aren’t rationalized but seen through the eyes of it being either a part of the system or the failure of the system. Either way, the results showcase how good or bad your system is (assuming you take every trade and do not try to over-ride your own system).

While a back-test is a good way to analyze as to whether the system has any merit or not, it is not the end of testing but actually the beginning. It is said that if you were to give typewriters to monkeys, its just a matter of time before one of them hits all the right keys and gets you a Shakespeare’s plays in order.

Or as the character Dr.Alfred Lanning in the film I, Robot says “Random segments of code, that have grouped together to form unexpected protocols”. If one keeps testing ideas, especially using optimization feature, one is bound to hit the right system. Its just a matter of time.

The question hence is, is the system performance due to Skill or pure Luck. A system that is based on some skill or market  inefficiency. A system that is based on luck is one where in the streak of profits is just purely driven by luck and its just a matter of time before the said system starts misbehaving.

So, how does one determine whether the profits that are shown in the back-test is due to it being inherently good or just a matter of luck.

There are a few ways to analyze that and I shall lay out a few of them out here. To start with, let me choose a system which will be used for the testing.

The system that I shall use for the test below is a EMA Crossover. To get the two parameters, I ran through a Walk Forward Optimization which finally gave me the 2 variables I was after.

Now that the main requirement is fulfilled, lets move onto what are the ways by which you can detect whether the performance of your system is more based on luck than skill.

The first thing to do is to test your system on other time frames / markets. No single system performs exceptionally well in all time frames / markets and hence if you are looking for a 100% score, you are bound to be disappointed. What we are looking instead is performance that is well within limits.

Lets take the EMA Cross system that we have now created. The testing was done on Daily time frame. Lets compare this to Hourly as well as Weekly and see how different the numbers will be. To keeps things simple and as well as have a standard format, we shall use Expectancy as the parameter to judge. Time frame of the Test is from 1st Jan 2010 to 1st Jan 2015.

Other test settings are

  • We trade on Close Value
  • No Commissions or slippage is included.
  • We do not compound our position size
  • We take both Long & Short trades (Always in the trade)

We shall first test the system on the Daily time frame. While the optimization was done on CNX Nifty (Spot), we shall see how the system fares on other Indices

Index Time Frame Expectancy
©Portfolio Yoga
Nifty-F1 Daily 25.84
Bank Nifty F1 Daily 212.42
CNX Auto Daily 87.64
CNX Commodites Daily 10.83
CNX Consumption Daily 16.04
CNX Energy Daily -28.55
CNX Finance Daily 95.2
CNX FMCG Daily 82.34
CNX Infra Daily 21.56
CNX IT Daily 22.04
CNX Media Daily 24.48
CNX Metal Daily 28.9
CNX MidCap Daily 255.5
CNX MNC Daily 52.34
CNX Pharma Daily 4.87
CNX PSE Daily 57.34
CNX PSU Bank Daily 98.52
CNX Realty Daily 5.45
CNX Service Daily 23.82
CNX Small Cap Daily 98.66

The system is profitable in most indices save for CNX Energy where it saw a loss. This is good since it indicates that the system is not curve fitted to Nifty.

We shall now move to testing the system on hourly data.

Index Time Frame Expectancy
©Portfolio Yoga
Nifty-F1 Hourly 7.07
Bank Nifty F1 Hourly 17.9
Reliance Hourly 0.87
State Bank of India Hourly 1.09
ICICI Bank Hourly 0.21
Tata Motors Hourly 0.89
ITC Hourly -0.24

 

 

Once again the system trumps (though if you were to observe closely, expectancy is in dangerous area for stocks such as ICICI Bank & Reliance while it out right loses money on ITC.

While we cannot decide based on above data as to whether the system is good or not, what it does show is that there is some amount of skill and its not entirely due to luck.

We next move back to Nifty F1 on Daily time frame and test the result using the Bootstrap method as well as Monte Carlo Testing.

The p-value using Bootstrap for Nifty F1 (Daily) comes to 0.55 which is way above the null value requirement of 0.05 to reject the thesis that the results seen above are based on random luck. In fact, the 0.55 number indicates that 55% of the result probability is just due to random luck and no more. This is pretty damming evidence of the fact that while our system seems to perform great, it actually is nothing more than a lucky streak.

Lets move forward and test our hypothesis using Monte Carlo Analysis. Once again, we are looking at the whether our result is based upon blind luck or is there something worth while.

Before we get into Equity Curves, lets compare and contrast a few other details.

In our regular back-test, we get a max draw-down of 19.70%. In contrast, the 95 percentile says that the probability is high that we may see a draw-down as high as 60%.

In our regular back-test we see a maximum losing steak of 7 trades while in the Monte Carlo approach, the figure comes to 20

And finally, lets look at  the various ways in which our equity curve could have been plotted. We ran a total of 10000 stimulations and as expected, chart is messy. But what is does show is the high probability (test of the lower line) of the system losing more than 50% of capital and hence running out of capital.

Eq

But should we be surprised with the answer that this system is not suitable for trading since far too many trades hinge on luck than actual skill?

Too many traders believe that one can come up with great system by just optimizing data. If only life was that simple, we would all be chilling out in our favorite place while the system kept earning for us without a sweat 🙂

 

You may also like...

4 Responses

  1. Karan Bhalla says:

    Nice one ! learnt a lot from this ! 🙂 …just a thought, aint it better to diversify across 2/3 systems eg. 1 system using daily data while another using weekly/monthly? – since markets dont go up/down in a straight line and it takes weeks/ months for sector rotational changes to show up. I guess the allocation to multiple strategies would depend on the individuals age, goals, taxation etc.

    Thanks.

    • Prashanth_admin says:

      True that. But no matter how many strategies one ends up trading, each will need to be tested thoroughly to ensure that the results are not just due to the factor of luck.

  2. Brijesh says:

    Simply superb!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.