FOREX Harmonic Pattern Scanning Algorithm in Python pt. 5: Trade Exit Timing

preview_player
Показать описание
A huge question in trading in general: when is the best time to exit the trade after entering it? While this question has many different answers with many different trading strategies, in this video we will quantitatively investigate the merits of exiting the trade at different points in time. The most important part of any trading strategy is risk management. Starting with this video, we will transition our focus of the algorithm into developing a solid risk management scheme that allows us to capitalize on our victories while minimizing our losses.

Thanks so much for subscribing, liking, and watching! I apologize for not posting a video in some time! Life just jumped out in front of me and slapped me in the face recently, but I'm getting back on track with making videos so look out here for more!

Thanks,
Brandon
Рекомендации по теме
Комментарии
Автор

Great videos, I hope you continue uploading them

Maegop
Автор

Hope your Degree went well - your a bright fella, so I'm sure you smashed it!

themarksmith
Автор

hmmI might be too tired but I get this KeyError: 722 when I try to run it as you do at 11:22, as far I can check over and over, everything is just as it should... it seems to be the pips = 1000*(price[end+1:end+16] - price[end]) line. any tips?

BlackMetalAlchemy
Автор

Phenomenal job! Do you have a github where you post your code?

FrostClyde
Автор

Out of curiosity what university are you now an alumnus of? The series is amazing and I'd love to see a conclusion to the machine learning series.

alotofpplz
Автор

My bar chart's axes change to 0-1.0 after about 4 redraws .. what can be done about this?

dougpaterson
Автор

thank you for this educational videos. I did everything and works great. But I realised a problem. Sometimes len of "current_idx" and "current_pattern" lists became 4. It should be 5 as much as I understand. I could not find why it became 4 in some cases. Do you have any idea?
When len(current_pattern) == 4, that means we can not define "CD" so it gives error "index 4 is out of bounds for axis 0 with size 4"

Programlama
Автор

for some reason i have an error after run a while ....

line 72, in <module>
plt.plot(np.arange(start, i+15), price.values[start:i+15]

PY\lib\site-packages\matplotlib\pyplot.py", line 3358, in plot
ret = ax.plot(*args, **kwargs)

PY\lib\site-packages\matplotlib\__init__.py", line 1855, in inner
return func(ax, *args, **kwargs)

PY\lib\site-packages\matplotlib\axes\_axes.py", line 1527, in plot
for line in self._get_lines(*args, **kwargs):

line 406, in _grab_next_args
for seg in self._plot_args(this, kwargs):

line 383, in _plot_args
x, y = self._xy_from_xy(x, y)

line 242, in _xy_from_xy
"have shapes {} and {}".format(x.shape, y.shape))

ValueError: x and y must have same first dimension, but have shapes (35, ) and (31, )

can some one help ??

crazyred