Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
update macd's signal todo
Browse files Browse the repository at this point in the history
  • Loading branch information
CelestialCrafter authored Oct 5, 2023
1 parent 9fb851c commit bbc189f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithms/macd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def algorithm(prices, window_sizes=[12, 26, 9]):

def signal(data):
macd, signal = data
# Done i made it "not stupid XD"
# @TODO make signals accurate to macd
if macd[-1] > signal[-1]:
return 'sell'
elif macd[-1] < signal[-1]:
Expand Down

0 comments on commit bbc189f

Please sign in to comment.