# Strategy Ranking

We define the ranking methodology to evaluate a trading strategy.

### 1 - Introduction

We need to be able to evaluate the performance of a strategy against thousands of assets and be able to give some insight into these strategies and how they perform on various classes of assets etc.
Before going further let’s define some terminology:
• Asset: any tradable financial instrument. Most commonly it will be a stock but it can also be any other assets such as bonds, crypto-asset, swaps, options etc.
• Trading Strategy: a trading strategy is a set of rules that define when to buy and when to sell an asset. For example, a trading strategy could consist of two rules: one for buying (if the price of the asset goes below a certain level buy) and a selling rule (if the price of the asset goes above a certain level sell).
• Trading Order: Action of selling/buying an asset on the financial market.
• Portfolio: A set of assets that you own.

### 2 - Ranking Methodology

This first methodology is only based on the performance of the strategy against the performance of the asset on which the strategy is tested and will need to be improved in the future by taking into account risks.
The ranking methodology lies in the rolling comparison of the performance of the underlying asset with the strategy’s performance over a certain time period.
The idea here is to get a notation as follows:
• Perf (Asset) < 0 & Perf (Strategy) > 0 → 5/5
• Perf (Asset) > 0 & Perf (Strategy) > 0 & Perf (Asset) < Perf (Strategy) → 4/5
• Perf (Asset) > 0 & Perf (Strategy) > 0 & Perf (Asset) > Perf (Strategy) → 3/5
• Perf (Asset) < 0 & Perf (Strategy) < 0 & Perf (Asset) < Perf (Strategy) → 2/5
• Perf (Asset) < 0 & Perf (Strategy) < 0 & Perf (Asset) > Perf (Strategy) → 1/5
• Perf (Asset) > 0 & Perf (Strategy) < 0 → 0/5 Ranking Visualisation
{"ft_lang_label":"__label__en","ft_lang_prob":0.852342,"math_prob":0.7685424,"size":1791,"snap":"2023-40-2023-50","text_gpt3_token_len":448,"char_repetition_ratio":0.20761052,"word_repetition_ratio":0.2102102,"special_character_ratio":0.26633167,"punctuation_ratio":0.064417176,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97039133,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-25T22:00:35Z\",\"WARC-Record-ID\":\"<urn:uuid:ae0dba4e-dac1-4c25-be62-88c8a7a5821c>\",\"Content-Length\":\"218702\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:205fc088-14d0-4102-8fa5-d6ae5714f221>\",\"WARC-Concurrent-To\":\"<urn:uuid:77b80c50-01ec-42f0-831e-3af0255096a0>\",\"WARC-IP-Address\":\"104.18.40.47\",\"WARC-Target-URI\":\"https://docs.alluvie.com/trading-strategy/strategy-ranking\",\"WARC-Payload-Digest\":\"sha1:ONVONWMNVI3FNHPWKXAQ7FLJP55YYKHO\",\"WARC-Block-Digest\":\"sha1:JZUXTJ5AO6SXM2UNCIQ2MBIM4ZVDG2K3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510100.47_warc_CC-MAIN-20230925215547-20230926005547-00247.warc.gz\"}"}