Heiken Ashi Candles In Python For Trading Systems

  Рет қаралды 22,488

CodeTrading

CodeTrading

Күн бұрын

Heiken Ashi candlesticks are popular candlestick in technical analysis. In this video, I will show you how to use Heiken Ashi candles for trading systems in Python. I also added 2 strategies as an example you might want to check and apply your own modifications. You can add technical indicators and any trading tricks to improve the trading system. Trading strategies are often challenging to code or to put in an algorithm, fully automated bot or so, and the challenge extends far beyond a simple indicator, in fact, trade management is as important if not more than the indicators. Good luck and trade safe!
💲 Discount Coupon for My Udemy course on Algorithmic Trading:
bit.ly/CouponA...
The python code can be downloaded from the links here:
drive.google.c...
drive.google.c...

Пікірлер: 68
@zvi1988
@zvi1988 3 ай бұрын
Hello , i think that your cosed is wrong and u should modify this part in your backtest . you are checking a logical wrong comdition self.data.Heiken_Open[-1]>=self.data.Heiken_Open[-1]): it should be : if len(self.trades) > 0: if (self.trades[-1].is_long and self.data.Heiken_Close[-1] < self.data.Heiken_Open[-1]): self.trades[-1].close() elif (self.trades[-1].is_short and self.data.Heiken_Close[-1] > self.data.Heiken_Open[-1]): self.trades[-1].close()
@CodeTradingCafe
@CodeTradingCafe 3 ай бұрын
Hi, you are actually right, all this time I haven't noticed, I need to revisit this and recheck the results! Thank you for the heads up.
@ЭльмарИдрисов-г5э
@ЭльмарИдрисов-г5э 2 жыл бұрын
Hi. Great content as usual! A question: do you do all your analysis locally or do you use some cloud services (AWS/Azure/Herocu) ?
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Locally for the moment even for lstm a good pc can be enough
@칠월이십삼일
@칠월이십삼일 2 жыл бұрын
Hello, I majored in artificial intelligence and am interested in algorithm trading I'm getting a lot of inspiration from watching your video I am not good at English, but I think it is the most useful channel on KZbin related to btc strategy Thank You😊
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thank you for your support, the best is to get experience also in trading first before building trading algos, it will be a challenging hobby ,🙂 good luck
@print.youtube
@print.youtube 6 ай бұрын
Are you from India?
@arianjain
@arianjain 6 ай бұрын
pz renko setup
@CodeTradingCafe
@CodeTradingCafe 6 ай бұрын
it's possible but I don't see much potential.
@Zenoandturtle
@Zenoandturtle 11 ай бұрын
Your presentations are among the best I had seen to date. Thanks for the amazing work.
@CodeTradingCafe
@CodeTradingCafe 11 ай бұрын
Wow, thank you for your support! Glad you like them.
@kanaya1991
@kanaya1991 2 жыл бұрын
hi bro! Could you try the harmonic trading strategy? (bat, butterfly, crab, gartley, etc) there is a youtube channel that left the project complete but without a complete backtest as you do. thanks for everything, greetings you a newbie to python!
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hey, I will keep it in mind although I never believed in harmonics.. reminds of my first years in trading 🙂
@richinvest9067
@richinvest9067 2 жыл бұрын
Very good, include trailing Stoploss👌
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
I had the time thought but the video was already longer than intended...
@gvidalcantavella
@gvidalcantavella 29 күн бұрын
Lovely work! I wonder, maybe heiken ashi candle are better for setting support and resistance levels based on those values since they contain less noise right?
@CodeTradingCafe
@CodeTradingCafe 27 күн бұрын
Never thought about it, I could easily give it a try. Thank you for your support.
@Dr.jayfrancis
@Dr.jayfrancis 2 жыл бұрын
Way to go!! Congrats on 8k subs !!
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thank you for your support 😊
@Dr.jayfrancis
@Dr.jayfrancis 2 жыл бұрын
@@CodeTradingCafe always! Such valuable content!
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
@@Dr.jayfrancis stick around you might be rich one day 🙂
@andstudio1517
@andstudio1517 Жыл бұрын
​@@CodeTradingCafe how can I contact u? Mail id ??
@insertnamehere3022
@insertnamehere3022 10 ай бұрын
So you effectively need the data from the start of the asset's inception to get accurate heiken ashi values?
@CodeTradingCafe
@CodeTradingCafe 10 ай бұрын
Not even sure if it will ever be "accurate" the problem is that HA adds an abstraction level and it doesn't look useful just a different way of looking at the chart.
@whereiam3804
@whereiam3804 Жыл бұрын
I want to make my strategy run on for multiple api s . If u can build a platform?
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Hi thank you, a platform is a bit too large of a project, it's better to choose one API at a time in python.
@billcrocker1054
@billcrocker1054 Жыл бұрын
See the QuantConnect platform.
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Thank you
@kvekka9300
@kvekka9300 Жыл бұрын
I can do that for you, but a price
@jiandepi
@jiandepi 8 ай бұрын
hello,your presentations is wonderful,the Heiken Ashi candlesticks is very like the goNogo Trend indictor I learn recently,can you show me the goNogo Trend indictor how to python it?Thank you.
@CodeTradingCafe
@CodeTradingCafe 8 ай бұрын
Hi thank you, I could add to the list, but the list is long so if you are in a hurry it might be faster to code it on a side.
@jiandepi
@jiandepi 7 ай бұрын
I've already sent you an email. Thank you!@@CodeTradingCafe
@TheEcherriman
@TheEcherriman Жыл бұрын
Can you please explain to a thickie how the high and low can be anything other than THE high or low ?
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Good question got me confused for a second, actually the heiken low and high are obtained from minimum and max values considering the current candle and the previous candle as well check how heiken open and close are obtained using previous candle data, so if the previous candle has higher or lower values then the current your current high and low are discarded. I hope this answer helps a bit.
@al5ailalzahby816
@al5ailalzahby816 Жыл бұрын
This has helped me a lot, thank you🏅🏅
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Thank you, it's good to know I think this that was least favorite video :)
@musiclover1067
@musiclover1067 Жыл бұрын
Love your work! Please keep producing more!
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Thank you for your support! More is coming, hoping to explore more interesting ideas this summer.
@musiclover1067
@musiclover1067 Жыл бұрын
@@CodeTradingCafe Will be looking out for more of your works!
@redjonzani8610
@redjonzani8610 2 жыл бұрын
Hello i watched some of your videos and was astonished , is there a way i can send you an email or some contact to get some small advice and help from your side if you got some free time . Thank you
@redjonzani8610
@redjonzani8610 2 жыл бұрын
@CodeTrading
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi thank you for your comment, I could eventually give an opinion but depending on how much time this requires, sorry about the time issue but work books most of my efforts.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
My contact is in the about page, codingntrading gmail com
@Sniper_Entry
@Sniper_Entry 2 жыл бұрын
Wat is setting for fast n slow ema
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi, I don't remember exactly something around 30 and 50 you can find the exact values in the code.
@print.youtube
@print.youtube 6 ай бұрын
Please please please make video on renko candlestick 🙏🏻
@CodeTradingCafe
@CodeTradingCafe 6 ай бұрын
It's not difficult but I am not sure it's worth it. Do you have any Renko strategy that works?
@cathye.4999
@cathye.4999 Жыл бұрын
Excellent. Quick ?; the backtesting was with Backtest, how about with VectorBT?
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Hey, thank you, I tried VectorBT in the past for some reason I just kept using Backtesting, you are right maybe it's worth using 2 testing libraries for validation.
@cathye.4999
@cathye.4999 Жыл бұрын
@@CodeTradingCafe thank you.
@s.sasisekhar4608
@s.sasisekhar4608 2 жыл бұрын
Very good
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thank you for your support, I am glad you liked it!
@s.sasisekhar4608
@s.sasisekhar4608 2 жыл бұрын
@@CodeTradingCafe I am wondering how come KZbin never recommended me this channel from a long time. Your channel content is extremely useful, it's gold mine for learning. Can you recommend me some strategies that work like stop & reverse mechanism without using any indicator (pure price action) for short term trend catching
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
@@s.sasisekhar4608 thank you for your comment, it's always nice to have encouragement. Price action is actually the best indicator statistically speaking, the engulfing pattern is the most rewarding so far provided you take support and resistance into account, then comes the trade management when do you exit a winning trade?
@Cat-su7bm
@Cat-su7bm 2 жыл бұрын
Usefull ^-^
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thanks
@andstudio1517
@andstudio1517 Жыл бұрын
Is there any way to contact u ?
@CodeTradingCafe
@CodeTradingCafe Жыл бұрын
Hi my email is in the About page of this channel.
@boamahmarcus4002
@boamahmarcus4002 5 ай бұрын
I loved it bro
@CodeTradingCafe
@CodeTradingCafe 5 ай бұрын
Thank you, but HA didn't work well for me, trading wise.
Trading Indicator Analysis: CHOCH Indicator Python Implementation
14:10
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 11 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 102 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,1 МЛН
Beginner's Guide to Trading with Heikin Ashi Candlesticks
54:15
Automated Price Break Out Detection: Algorithmic Trading In Python
16:34
Harmonic Pattern Recognition With Python
23:58
neurotrader
Рет қаралды 11 М.
Candlestick Charts in Python
11:46
NeuralNine
Рет қаралды 25 М.
How to use these 3 Heikin Ashi Charts to Confirm Trends Early
14:39
Prateek Singh - LearnApp
Рет қаралды 1,1 МЛН
RSI Divergence Automated In Python | Algorithmic Trading
35:22
CodeTrading
Рет қаралды 35 М.
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 11 МЛН