Skip to content

Volume based Trading Strategy with Crossover of SMA and Current Candle

Notifications You must be signed in to change notification settings

Coderixc/TradingStratgey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stock Volume Strategy

This project calculates the timestamp when the cumulative traded volume within a rolling 60-minute window first exceeds the stock's 30-day average volume. It processes intraday data and compares it with daily stock trading data. img.png

Folder Structure

  • data/: Contains the data files (day_data.csv, intraday_19_april_2024.csv, intraday_22_april_2024.csv).
  • src/: Contains the Python code (stock_volume_strategy.py).
  • requirements.txt: Lists the Python dependencies (e.g., pandas).
  • main.py: Entry point for executing the strategy.

Requirements

  • Python 3.x
  • pandas

How to Run

1. Install dependencies:

```
pip install -r requirements.txt
```

2. Run the program:

```
python main.py
```

3.Analysis

"Hourly Time Frame"

img_1.png

"Minutes Time Frame"

img_2.png

4. Output

img_3.png

Releases

No releases published

Packages

No packages published

Languages