VBA vs Python

I want to develop a systematic macro trading strategy that will trade with a time horizons of a few months. It will consist of importing economic indicators, perform some mathematical studies, and have trade recommendations as output. For now, visualizing output through GUI is optional. What matters is the trade recommendations as outputs and the ability to backtest the strategy on past data going back few decades. Intraday fluctuations plays a quasi non-existent role and some economic data would be updated on a weekly basis and monthly basis, so speed is not a concern. Having said all that, I want to learn programming to execute this project and I do not know which program should I pickup, VBA or Python? People with experience are free to comment. Thanks

7 Comments
 

Not a big programmer myself but would intuitively suggest Python. Lots of libraries and online shared knowledge especially for data science. Especially as new learner the amount of community resources available are a big advantage of Python

 
Most Helpful

I second python. You could do the same with R, which I'm doing for my thesis. But python has more finance related libraries. VBA is commonly used at banks because everyone uses excel and it is difficult to introduce new technologies in legacy systems. Since you start from scratch that isn't a concern for you.

Here are some python libraries that might be of interest to you. There are many more.

  • QuantPy: Quantitative finance, import daily returns from Yahoo, calculation of optimal weights for Sharpe ratio and efficient frontier
  • ffn: Performance measurement and evaluation, graphing, common data transformations
  • pynance: Retrieving, analyzing and visualizing data from stock and derivatives markets
  • finmarketpy: Analyze market data, backtest trading strategies, simple to use API
  • visualize-wealth: Construct, backtest, analyze, and evaluate portfolios and their benchmarks
  • statsmodels: Explore data, estimate statistical models, and perform statistical tests
Array
 
"lotsofhotwater" I second python. You could do the same with R, which I'm doing for my thesis. But python has more finance related libraries. VBA is commonly used at banks because everyone uses excel and it is difficult to introduce new technologies in legacy systems. Since you start from scratch that isn't a concern for you.

Here are some python libraries that might be of interest to you. There are many more.

  • QuantPy: Quantitative finance, import daily returns from Yahoo, calculation of optimal weights for Sharpe ratio and efficient frontier
  • ffn: Performance measurement and evaluation, graphing, common data transformations
  • pynance: Retrieving, analyzing and visualizing data from stock and derivatives markets
  • finmarketpy: Analyze market data, backtest trading strategies, simple to use API
  • visualize-wealth: Construct, backtest, analyze, and evaluate portfolios and their benchmarks
  • statsmodels: Explore data, estimate statistical models, and perform statistical tests

Second this. R has a lot of trading libraries too though

 

Eos eius aliquam nemo veniam laboriosam veniam quam. Ut unde cumque aut et labore facere iusto fugiat. Eum fuga eos laborum impedit.

_____________________________ Mox ego solutus erit

Career Advancement Opportunities

June 2026 Hedge Fund

  • Point72 99.0%
  • D.E. Shaw 98.1%
  • Citadel Investment Group 97.1%
  • AQR Capital Management 96.1%
  • Magnetar Capital 95.1%

Overall Employee Satisfaction

June 2026 Hedge Fund

  • Magnetar Capital 99.0%
  • D.E. Shaw 98.0%
  • Blackstone Group 97.0%
  • Citadel Investment Group 96.0%
  • Millennium Partners 95.0%

Professional Growth Opportunities

June 2026 Hedge Fund

  • AQR Capital Management 99.0%
  • Point72 98.1%
  • D.E. Shaw 97.1%
  • Citadel Investment Group 96.2%
  • Magnetar Capital 95.2%

Total Avg Compensation

June 2026 Hedge Fund

  • Portfolio Manager (9) $1,648
  • Vice President (27) $464
  • Director/MD (12) $423
  • NA (9) $320
  • Engineer/Quant (86) $288
  • 3rd+ Year Associate (26) $284
  • Manager (4) $282
  • 2nd Year Associate (32) $253
  • 1st Year Associate (76) $192
  • Analysts (242) $181
  • Intern/Summer Associate (29) $145
  • Junior Trader (5) $102
  • Intern/Summer Analyst (282) $96
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
Secyh62's picture
Secyh62
99.0
3
kanon's picture
kanon
99.0
4
BankonBanking's picture
BankonBanking
99.0
5
CompBanker's picture
CompBanker
98.9
6
GameTheory's picture
GameTheory
98.9
7
DrApeman's picture
DrApeman
98.9
8
Betsy Massar's picture
Betsy Massar
98.9
9
dosk17's picture
dosk17
98.9
10
bolo up's picture
bolo up
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”