# The quality of an trading algorithm

Good day. I am currently writing a term paper on the creation of trading algorithms in the foreign exchange market (by an algorithm I mean the one that follows the alpha model, for example, signals from some kind of technical analysis indicator). And I wondered, what indicator can be considered reliable when assessing the quality of an algorithm? Indicators such as Sharp ratio or LR correlation are, as I understand it, relative, i.e. the bigger, the better. But how can we give absolute analytics of the efficiency of a single algorithm? This leads to the question, are there any reference values for these indicators for comparison?

• "trading algorithms" means alpha signals? And what is "LR correlation"? Sharpe Ratio does not measure relative performance but the performance of a strategy on a standalone basis. Oct 31, 2020 at 21:36
• Trading algorithms could be used to (1) Capture Alpha, (2) Automate a Market Making function, (3) Execute large orders efficiently over time while minimizing market impact. The quality would probably be judged differently in each case. Nov 1, 2020 at 11:51
• @noob2, thanks for the clarification. By an algorithm I mean the one that follows the alpha model, for example, signals from some kind of technical analysis indicator Nov 1, 2020 at 20:29
• Then Sharpe Ratio is indeed a good measure (you didn't tell us yet what "LR correlation" is, so I can't comment on that). You would compare the Sharpe Ratio of the algorithm to that of alternative investments available to you (including simply investing in a stock index or bond index fund, for ex. SR ratio for stocks is about 0.35 long term IIRC). Nov 1, 2020 at 20:37
• Yes, we look at SR's of likely alternative assets over relevant historical periods, Nov 1, 2020 at 21:15

As regards a commentary made by another user, the Sharp Ratio is not a standalone measure because it requires the selection of a benchmark rate of return. While it is common practice in financial economics to use some proxy for the risk-free rate as a benchmark, it is worth nothing that financial economists are usually focusing on data as it relates to representative agents. Your average trader will probably find other rates than the yield on US Treasury bonds more meaningful.

Now, how do you evaluate it? Well, in the end, if you automated the whole thing, you could use a Sharp ratio to evaluate the WHOLE strategy. You'd also potentially look at the length of time you can spend loosing money, under which condition you seem to be loosing money, and how much money you can expect to loose. For the later, I would personally use my back testing data as input for an EVT kind of analysis to see what happens with the extreme lows. Basically, you need an idea of whether the approach works well enough to be profitable, what kind of bank roll you need to ensure any Law of Large Numbers effects kick in, and I'd also look into the Giacomini-Rossi fluctuation tests for my alpha models to make sure things aren't bouncing around too much -- they check for forecasting performance under model instability (i.e., when the best model changes over time).

I'm sure you can easily find meaningful metrics and methods to do all of the above very easily.