{"paper_id":"2502.17493","title":"A Novel Loss Function for Deep Learning Based Daily Stock Trading System","authors":["Ruoyu Guo","Haochen Qiu","Xuelun Hou"],"paper_date":"2025-02-20","paper_type":"empirical","paper_url":"https://arxiv.org/pdf/2502.17493v2","page_url":"https://thequant.space/flowcharts/a-novel-loss-function-for-deep-learning-based-daily-stock-tr/","scores":{"empirical_rigor":6,"math_complexity":3.5,"quadrant":"Street Traders"},"proposes":{"status":"available","statement":"The paper proposes a machine‑learning based daily trading system that uses a novel return‑weighted loss function to capture top growth opportunities.","quote":"We propose a ML-based efficient trading system equipped with a novel return-weighted loss function that is specifically adept at capturing top growth opportunities.","summary":"Making consistently profitable financial decisions in a continuously evolving and volatile stock market has always been a difficult task. Professionals from different disciplines have developed foundational theories to anticipate price movement and evaluate securities such as the famed Capital…","strategy":"CNN model with novel return-weighted loss (mixture-of-experts ensemble)"},"assumptions":{"status":"available","items":[{"assumption":"All trades are executed at the market open with full capital invested at all times.","type":"execution","stated":"explicit","quote":"We assume all trades are conducted at market open and that all assets are invested at all times."},{"assumption":"The starting investment amount is normalized to 1 for performance calculation.","type":"statistical","stated":"explicit","quote":"we assume the starting investment amount is 1, and the final value is calculated by investing in the top 10 stocks the model recommends daily."},{"assumption":"Sector information is represented as a one‑hot vector in 12 dimensions.","type":"data","stated":"explicit","quote":"There are 11 sectors in the dataset, and each stock’s sector information is stored as a one-hot vector in 12 dimensions, where the extra dimension is for those without sector information in Yahoo Finance (such as ETFs)."},{"assumption":"Micro‑cap stocks and low‑volume stocks are removed from the sample.","type":"data","stated":"explicit","quote":"We process stocks by removing microcap stocks and those with low dollar trading volume."},{"assumption":"Features are calculated using opening prices because simulated trades occur at market open.","type":"model","stated":"explicit","quote":"Since our simulated trades all occur at market open, all features are calculated with the opening prices instead of closing prices by default."},{"assumption":"The trading strategy sells holdings not in the next‑day recommendation, holds overlapping stocks, and buys new recommendations in equal dollar amounts.","type":"execution","stated":"explicit","quote":"The strategy sells the current holdings that are not in the next-day recommendations, holds the current holdings that are in the next-day recommendations, and buys the remaining recommended stocks in equal dollar amounts."}]},"datasets":{"status":"available","items":[{"name":"Yahoo Finance daily stock data","provider":"Yahoo Finance","kind":"market-prices","access":"public","period":"2006-2010 and 2019-2024","universe":"US stocks from S&P 500, NYSE, Nasdaq","quote":"daily stock price (open, close, high, low) data, volume (number of shares traded) data, and sector information from Yahoo Finance using its Python API.","known_id":"yahoo-finance"}],"known":[{"id":"yahoo-finance","name":"Yahoo Finance","provider":"Yahoo","kind":"market-prices","access":"public","quote":"We obtain our data from the publicly available Yahoo Finance database.","mentions":3,"used_in":2}],"sample":{"start":"2019","end":"2024","market":"US stocks","asset_class":"equities","frequency":"daily"},"data_resolution":"daily"},"transaction_costs":{"status":"available","modeled":"no","headline_net_of_costs":false,"detail":null,"quote":null,"source":"front_matter","rule":"R1","candidates":{"front_matter":"no","evidence_card":"no","evidence_card_quoted":false},"meaning":"a trading or execution result is reported without costs"},"results":{"status":"available","evaluation_type":"trading-pnl","findings":[{"finding":"The best models achieve a 61.73% annual return with an annualized Sharpe Ratio of 1.18 over 1340 testing days (2019‑2024).","kind":"performance","quote":"Our best models achieve 61.73% annual return on daily rebalancing with an annualized Sharpe Ratio of 1.18 over 1340 testing days from 2019 to 2024"},{"finding":"In the earlier period, the models achieve a 37.61% annual return with a Sharpe Ratio of 0.97 over 1360 testing days (2005‑2010).","kind":"performance","quote":"and 37.61% annual return with an annualized Sharpe Ratio of 0.97 over 1360 testing days from 2005 to 2010"},{"finding":"Linear regression models using all 28 features in the 2019‑2024 period yield an annual return of about 40% and a top‑10 Sharpe Ratio near 0.85‑0.87.","kind":"performance","quote":"... Annual Return 40.16% 38.17% 39.98% Top 10 SR 0.82 0.80 0.87"},{"finding":"The novel return‑weighted loss function outperforms traditional loss functions in both return and risk‑adjusted metrics, especially in the 2019‑2024 period.","kind":"performance","quote":"In terms of return and risk-adjusted return (SR), our new loss function outperforms other traditional loss functions, especially in the later period of 2019-2024."},{"finding":"The new loss function shows a smaller maximum drawdown and faster recovery time compared to baselines.","kind":"performance","quote":"The new loss function also shows a smaller maximum drawdown and faster recovery time comparatively"}],"reported_performance":{"strategy":"CNN model with novel return-weighted loss (mixture-of-experts ensemble)","sharpe":1.18,"sharpe_benchmark":0.68,"annual_return_pct":61.73,"total_return_pct":null,"max_drawdown_pct":30.99},"out_of_sample":{"method":"walk-forward","headline_out_of_sample":true}},"independent_evidence":{"status":"none_found","supports":[],"contradicts":[],"qualifies":[],"compared_with":27,"citations":{"cited_by_in_corpus":0,"by_independent_authors":0,"how_cited":{"used_as_baseline":0,"uses_method_or_data":0,"extends":0,"discusses_findings":0,"mentions":0,"unclassified":0},"independent_papers":[],"scope":"Citations between papers in this corpus only; citations from outside it are not counted."}},"implementation":{"status":"available","public":false,"code_url":null,"note":"No repository presented by the authors as their own was found in the paper. Absence here is not proof that no code exists."},"replication":{"status":"none_found","card":null,"note":"No replication of this paper has been run by thequant.space yet."},"extraction":{"text_source":"fulltext","model":"openai/gpt-oss-120b","version":1,"extracted_at":"2026-11-14T17:45:01Z"},"provenance":{"claims":"Everything here is what the authors state in the paper. Nothing was re-run or reproduced by the platform.","quotes":"Assumptions, datasets, cost detail and findings were extracted by a language model. Every quote is verbatim paper text. Where an item has `support`, \"full\" means every figure in it appears in the quoted sentences and \"partial\" means a figure is stated elsewhere in the paper; items with a figure found nowhere in the paper were discarded.","datasets_known":"datasets.known lists well-known vendors and public datasets by a stable id, found by a dictionary over the full text where the sentence says the data is used; it is independent of the model and covers only names in the dictionary.","flags":"transaction_costs.modeled, results.evaluation_type and results.out_of_sample.method are platform classifications (structured-decision models); see https://thequant.space/score-guide/#penalty-flags","comparisons":"supports / contradicts / qualifies are a language model's reading of two papers' quoted findings, restricted to closely related papers that share no author. They are pointers to read, not verified replications, and coverage is partial.","implementation":"code_url is a repository the paper itself presents as its own (rule-scored, ambiguous cases judged by a model), checked for liveness when it was recorded."},"docs":"https://thequant.space/agents/"}