Mohamed Gabriel (@M_S_Gabriel) header
Mohamed Gabriel (@M_S_Gabriel) profile picture

Software Engineer @ConcretumR | Helping clients with custom algo trading tools | IBKR, Python, Automation

Joined July 2023
Photo by Mohamed Gabriel (@M_S_Gabriel)Photo by Mohamed Gabriel (@M_S_Gabriel)Photo by Mohamed Gabriel (@M_S_Gabriel)Photo by Mohamed Gabriel (@M_S_Gabriel)Photo by Mohamed Gabriel (@M_S_Gabriel)Photo by Mohamed Gabriel (@M_S_Gabriel)Photo by Mohamed Gabriel (@M_S_Gabriel)Photo by Mohamed Gabriel (@M_S_Gabriel)Photo by Mohamed Gabriel (@M_S_Gabriel)Photo by Mohamed Gabriel (@M_S_Gabriel)
Mohamed Gabriel retweeted
Today, building a live trading system has never been easier thanks to LLMs. The dangerous part is that operating these systems reliably at scale still hides a surprisingly large number of operational pitfalls that only emerge in production environments with real capital. Over the years, while developing and maintaining automated trading and portfolio rebalancing infrastructures around Interactive Brokers, our team in @ConcretumR observed a recurring pattern: most failures do not originate from the strategy logic itself, but from the operational complexity surrounding live execution. Today we decided to walk you through 10 real-world operational issues that traders and allocators often only discover after going live, from stale market data and multi-account routing problems to DST mismatches and early-close session failures. If you are building systematic strategies, automating portfolio rebalancing, or managing multiple accounts simultaneously, this piece may save you a lot of time... and potentially some expensive mistakes. Full article in the first comment. #QuantFinance #InteractiveBrokers #AlgoTrading #SystematicTrading #PortfolioManagement #Automation #WealthManagement
1
3
45
3,446
Mohamed Gabriel retweeted
Can you replicate the returns of one of the legends of the trend-following industry? Just published. We use 25 years of futures data and 4,320 synthetic CTAs to reverse-engineer the trading rules behind Paul Mulvaney. The rules look simple. The outcome is not. Link in the comments 👇
1
4
39
4,011
Mohamed Gabriel retweeted
Can you replicate the returns of one of the legends of the trend-following industry? This Saturday we will publish on our Substack page a fascinating piece where we leverage 25 years of futures data and Mulvaney Capital Management's monthly returns to reverse-engineer the trading rules behind one of the most successful (albeit volatile) CTAs of the last two decades. Make sure to subscribe to our Substack to receive the article directly in your inbox. Link in the comments. 👇 #TrendFollowing #CTA #ManagedFutures #Quant #SystematicTrading #Mulvaney #Futures #HedgeFunds
4
1
1
38
4,923
Mohamed Gabriel retweeted
There are tools I wish I had earlier in my career, the kind that would have saved me hours of CSV wrangling and Excel reformatting. The Concretum Factor Tracker is one of them, and this week it just received a meaningful upgrade. If you have ever worked with asset pricing data, you have likely used the Kennet French Data Library. It is one of the most cited datasets in finance, covering decades of returns and a wide range of factor portfolios. Its only real limitation? The interface. Plain CSVs, static pages, and no easy way to monitor what factors are doing in real time. Most workflows still involve downloading, rebuilding, and repeating the same analysis over and over. That is exactly the friction Factor Tracker was built to remove. Last year, Concretum launched a free web tool to provide a more modern, visual reading of risk premia. This week, a major upgrade went live. The key addition is a new section designed to answer a simple question: Which factors are actually working right now? The analysis can be configured along three dimensions: 1️⃣ Time window (from 1 year to long-term history) 2️⃣ Implementation style (long-only, long/short, volatility parity) 3️⃣ Weighting scheme (market cap or equal weight) The same factor can look very different depending on these choices, and being able to compare them quickly provides a clearer view of how they behave under different assumptions. Free, no signup. Link in the first comment 👇 #quant #finance #factorinvesting #riskpremia #assetmanagement #systematictrading #investing #portfolioanalytics
2
2
20
2,890
Mohamed Gabriel retweeted
ORB Strategy Backtest in Python, now with 10+ years of intraday data We’ve just published a new article with a full Python implementation of our ORB strategy from the paper "Can Day Trading Really Be Profitable?" with @BearBullTraders. What’s new: 1⃣ ATR-based stop (not included in the original version) 2⃣ 10+ years of intraday data via Alpaca 3⃣ Fully reproducible, runs in the browser with Google Colab Whether you’re an experienced trader or an aspiring quant, this is designed to be practical and easy to test. Full article/code in the first comment 👇
6
14
181
18,998
Mohamed Gabriel retweeted
Can you trust your intraday database? We backtested the same intraday strategy, same code, same 10 years — across 4 data providers. The result? Portfolio values ranged from $226k to $726k. A 3x difference from identical logic. We dug into the why... 1⃣ Phantom highs 2⃣ Stale bars 3⃣ Early-close leakage 4⃣ Tick-to-bar assignment issues If you don't want to spend days analyzing backtest results only to find out they were driven by bad data.... This article is for you. Link in the first comment 👇 @BearBullTraders
8
13
5
109
23,488
YOLO is truly amazing! We used it to create a model that helps the blind community in Libya identify different denominations of the national currency. we even got it running on both iOS and Android, totally offline, no internet needed! Video from Jan 27, 2025
This is the power of YOLO, trained on a laptop for ~1 hour, with a Kaggle dataset. Oh, and just ~100 lines of Python. I can make a startup on this and it took me literally a couple of hours.
3
1
7
1,777
you dont wanna see the rest trust me
1
4
280
we used GroundingDINO and SAM to label the custom dataset we collected.
3
228
Mohamed Gabriel retweeted
As of Python 3.14, the free-threaded (or no-GIL) version of the Python interpreter is no longer considered experimental.
77
352
168
3,041
1,016,186
Mohamed Gabriel retweeted
Want to learn how to trade systematically via Interactive Brokers using Python? Here's an example based on the famous @MebFaber's Global Tactical Allocation Approach. 🧵👇
8
25
1
121
20,439
The most downloaded finance paper on SSRN is, without a doubt, A Quantitative Approach to Tactical Asset Allocation by @MebFaber, written in 2006 and downloaded more than 250,000 times. So we decided to start our #QuanTips journey right there. In this first edition, we: 1⃣ Reintroduce Faber’s original GTAA model 2⃣ Analyze its performance over the last 20 years 3⃣ Propose a simple fix to reduce rebalancing timing luck 4⃣ And (bonus!) share Python code to fully automate execution via Interactive Brokers Links below 👇👇 If you have comments, questions, or refinements, please do not hesitate to DM or comment. And just a gentle weekend reminder: these are base models, meant to serve as a foundation for building more personalized and effective trading solutions. We strongly encourage everyone, whether you're a novice trader, a seasoned quant, or prefer to stay behind a well-curated anonymous profile, to put in the hard work, challenge the assumptions, and develop better, implementable versions. Enjoy your weekend!
7
9
2
134
13,295
🔓 Open-sourcing our crypto market dataset pipeline This is the code we used to build the database of our new paper on crypto: Catching Crypto Trends: A Tactical Approach for Bitcoin and Altcoins Most datasets only include active tokens, introducing survivorship bias. We fixed that. What’s inside: • Historical OHLCV for ~23,000 cryptocurrencies • Metadata: tags, categories, consensus types • Survivorship-bias-free, research-ready • Google Colab – no setup needed Includes: • A 10-coin sample for fast learning • A full version with 28M+ data points Explore the code ↓
3
10
50
7,443
On Monday, we published a research paper introducing a tactical approach for trading crypto markets. If you haven’t read it yet, here a short carousel to spark your curiosity 👇
1
6
82
8,418
We are excited to announce that we have just published the Python code to replicate our most-read paper, "Can Day Trading Really Be Profitable?", co-authored with @BearBullTraders in 2023 and read by more than 30,000 people. This code allows users—even those with no programming experience—to backtest the 5-minute Opening Range Breakout strategy on different tickers or with alternative position management approaches. While the model described in the paper has shown profitability, it is far from being a fully developed trading system. Incorporating filters to avoid trading in noisy market conditions can significantly improve the hit ratio and profitability while reducing trading costs—we leave this challenge to the most ambitious traders. You can find the link below 👇👇 A special thanks to our talented software engineer, @M_S_Gabriel, for converting our original Matlab version into Python and writing this article!
15
31
2
257
34,560
🚀 New Free Tool for Quant Investing Research We’ve just launched a free web tool to help investors, researchers, and students explore the fascinating world of factor investing. Track the long-term performance of Momentum, Value, Volatility, and more—no coding or database downloads needed! 🔗 Check it out: bit.ly/FactorsTracking We’d love your feedback and ideas! #FactorInvesting #QuantitativeInvesting #MomentumInvesting #ValueInvesting
5
15
1
85
14,867
Yesterday, we shared online a tool that exploits the ability of AI to interpret and evaluate the news for a given list of stock tickers. The attached figure displays the output we obtained today for some popular tickers. You can test it out at: concretum.streamlit.app/ Please let us know which extra features would be beneficial!
2
5
21
3,034
Imagine having an AI tool that, before the market opens, scans online news for all the stocks in your portfolio and sends you a sentiment report, along with an alarm message if a significant catalyst is detected. Exploiting the innovative approach proposed by Prof. Lopez Lira in his award-winning paper “Can ChatGPT Forecast Stock Price Movements?”, we have decided to publish online a simplified version of a tool recently built for a fund manager. You can easily test it out from this link. concretum.streamlit.app/ Please share your feedback in the comments below! @M_S_Gabriel
6
8
1
58
4,819
Integrating discretionary trading decisions into a rigorous historical backtest has always been a challenging endeavor for me over the years. Creating a robust environment that automatically removes potential forward-looking biases was the first hurdle. The second obstacle was finding a skilled technical trader to involve in this research project. Thanks to @stamatoudism and the invaluable work by the R-Candles.com team, we are proud to announce the publication of a fascinating new paper. The Power Of Price Action Reading In this paper, we show that integrating intuition and price action reading skills into the context of trading overnight gaps can significantly improve the profitability of a simple rules-based approach. You can read the full paper for FREE here -> bit.ly/PrActRead Additionally, a short demonstration of the bespoke software used in this study is excellently provided by Marios in the two videos below Enjoy and share your thoughts with us! @R_Candles_ @BearBullTraders @PradeepBonde @Andrea_Barbon @M_S_Gabriel
6
20
2
124
67,280