Algorithmic vs. Quantitative Trading: Which Path Should You TakeI’ve always wondered why anyone would stick to traditional trading methods when algorithms and mathematical models could do all the heavy lifting.
I started questioning everything:
• Why do so many mentors still swear by discretionary trading when algorithms could handle all the heavy lifting?
• Do they really have solid proof of their “own” success, or is it just talk?
• Or are they keeping things complex and discretionary on purpose, to confuse people and keep them as members longer?
• Why deal with the stress of emotions and decisions when an algorithm can take care of it all?
• Imagine how much further ahead you could be if you stopped wasting time on manual trades and instead focused on market research and developing your own models.
When I first got into trading, I thought Algorithmic Trading and Quantitative Trading were basically the same thing. But as I dug deeper, I realized they’re two completely different worlds.
Algorithmic Trading: It’s simple – you set the rules and the algorithm executes the trades. No more sitting in front of the screen “controlling your emotions” and trying to manage every little detail. Instead, you let the algorithm handle it, based on the rules you’ve set. It frees up your time to focus on other things rather than staring at price charts all day.
But here’s the thing – it’s not perfect. You’ll still need to test the rules to make sure the data and results you’re getting aren’t overfitted or just random.
Quantitative Trading: A whole different level. It’s not just about executing trades; it’s about understanding the data and math behind market movements. You analyze historical price, economic, and political data, using math and machine learning to predict the future. But it can be complex – techniques like Deep Learning can turn it into a serious challenge.
The upside? This is the most reliable way to trade, and it’s exactly what over 80% of hedge funds do. They rely on quant models to minimize risk and to outperform the market.
So, which path should you choose?
Quantitative Trading can feel overwhelming at first, I recommend starting with the basics. Begin with Pine Script coding in TradingView—start building a foundation with simple strategies and indicators. As you grow more confident, start coding your own ideas into rules and refining your approach to eventually automated your trading strategy.
TradingView is a great tool for this, and I’d highly suggest grabbing the Premium plan. This will give you access to more data and features to make your learning journey smoother.
Dive into the Pine Script documentation , and begin bringing your ideas to life.
I promise, the more you focus on this, the better and more independent you’ll become in trading.
Every day, aim to get just 1% better.
To Your success,
Moein
Coding
Coding StyleWhen a coder creates something new, mostly that is with his/her own style. This makes them artists in a way I believe :)
While it is nice to develop a specific style, writing things on a certain way can be very important to understand better what is written.
This example shows a style, while it is possibly nice to see, is very hard to decipher...
Here is the same code, written in a different way, making it easier to read.
indicator("ConeCode-Linefill,educational", max_lines_count=500, overlay=true)
color1 = input.color(color.new(color.blue , 35), 'color 1')
color2 = input.color(color.new(color.lime , 35), 'color 2')
color3 = input.color(color.new(color.red , 35), 'color 3')
iFill = input.bool (true,'fill')
s1 = ta.sma (close, 1000)
s2 = ta.sma (close, 200)
l1 = plot (s1 , 'l1')
l2 = plot (s2 , 'l2')
topVal = s1 > s2 ? math.min(s1, s2) : math.max(s1, s2)
botVal = s1 > s2 ? math.max(s1, s2) : math.min(s1, s2)
topCl = iFill ? s1 > s2 ? color3 : color1 : na
botCl = iFill ? s1 > s2 ? color1 : color2 : na
fill(l1, l2, topVal, botVal, topCl, botCl)
█ More information:
Coding style: Pine Script™ v5 User Manual/Writing scripts/Style guide
Script description: How PineCoders Write and Format Script Descriptions
How to crawl history price or options from TD Ameritrade API?I crawl options data from Yahoo Finance but actually, Yahoo returned fake data if I send a thousand requests.
I research and use TD Ameritrade API to get options, both github.com and github.com is a good rating. However, every time I send a request a new token is generated then the TD Ameritrade API team noticed me. I like tdameritrade package than td-ameritrade-python-api because of the handled tokens.
======================
Major changes in the v0.1.0 update to the way tokens are handled.
You will still need the original authentication instructions, but the TDClient now takes the refresh token and client id, not the access token. A new session class handles token expiration and will automatically call a new token as needed.
======================
And I used Redis to keep tokens in 30 minutes, then my project works smoothly.
You have a job similar please reference github.com you can download source code and use (the package I am testing)
I hope this source saves your time.
Easy to get data from cnbc.com, it is freeIt is a note for developer
Sometime, we need stock data to write strategy checking logic by python. Data from cnbc.com is good and it is free. How to get it?
There are 2 steps to do:
Step 1: install library python
pip install cnbcfinance
Step 2: Get history or get quote realtime
# Get history data
from cnbcfinance import get_history_df
data = get_history_df('AAPL', '30m')
# Get quote
from cnbcfinance import get_history_df
data = get_quota('AAPL')
Coding Indicator in Tradingview from InspirationSo today is rest and research Sunday and I wanted to share with folks how I go about creating new strategies and indicators. Hopefully this can teach traders to fish rather than giving them just the fish (of a buy/sell signal!)
I was inspired by watching a Youtube podcast Desiretotrade by Etienne Crane where I saw on his chart arrows indicating where price closed outside of a Bollinger Band followed by price closing back inside. This made me want to test such a price action phenomenon myself and to do that I needed to code it up.
I'm really a hacker when it comes to programming and Pine Script but I began coding from ZERO knowledge and my tricks, which I share, should hopefully help new Tradingview/Pine Script coders. GOOGLE IS YOUR FRIEND!!! It has all the answers if you just type the correct search :)
Unfortunately, I did not realize that Tradingview cuts off videos at 20 minutes. Oops! I got the meat of the indicator and process of using it all recorded and got cut off as I was cleaning up the code to make it more user friendly. I'll know to keep track of time for the next video!
Please let me know if this was helpful to traders... I get motivated by positive vibes to do more teaching!