Skip to content

Commit

Permalink
main script
Browse files Browse the repository at this point in the history
  • Loading branch information
dagiteferi committed Dec 17, 2024
1 parent 46eaa44 commit 016b643
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scripts/task2main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import sys
import os

# Add src directory to the Python path
src_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '../src'))
sys.path.append(src_path)

import data_preprocessing as dp
import indicators as ind
import visualization as vis

# Example usage
def main():
file_path = '../data/amazon.csv'
data = dp.load_data(file_path)
data = ind.calculate_indicators(data)
vis.plot_moving_averages(data, 'Stock_price_moving_average.png')
vis.plot_rsi(data, 'relative_strength_index.png')
vis.plot_macd(data, 'macd_signals.png')

if __name__ == '__main__':
main()

0 comments on commit 016b643

Please sign in to comment.