vptrade is a technical indicators trading tools can be used to all instruments.
- Python 3.9 or higher
- Trends Indicator
- Oscillators Indicator
- Trading Strategies and Signal
Install this package with pip
pip install vptradefrom vptrade.indicators.trends import Trend
import pandas as pd
data = pd.read_csv(r'YOUR PATH\TSLA.csv',
index_col='Date',
parse_dates=True)
trend = Trend(data)
#simple moving average
sma = trend.sma(period=30, volume="Close", show=True, save="sma_img.png")
#exponential moving average
ema = trend.ema(period=30, volume="Close", show=True, save="ema_img.png")
#cummulative moving average show only without save
cma = trend.cma(period=30, volume="Close", show=True)
#smoothed moving average without save and show
smma = trend.smma(period=30, volume="Close", show=False)
#lienar-weighted moving average without show and save
lwma = trend.lwma(period=30, volume="Close")from vptrade.indicators.trends import Trend
import pandas as pd
data = pd.read_csv(r'YOUR PATH\TSLA.csv',
index_col='Date',
parse_dates=True)
trend = Trend(data)
bollinger = trend.bollinger_bands(period=30, volume="Close", show=True, save="bolinger_band.png")moving average strategy
from vptrade.indicators.trends import Trend
from vptrade.strategies.moving_average import MovingAverageStrategy
trend = Trend(path=r'C:\Users\forst\Downloads\TSLA.csv')
ema_14 = trend.ema(period=20, volume="Close")
ema_100 = trend.ema(period=100, volume="Close")
ema_200 = trend.ema(period=200, volume="Close")
MA = MovingAverageStrategy()
signal = MA.crossover([ema_14, ema_100, ema_200], show="strategy")For support, Join my discord https://discord.gg/HZJZAVAZdr
Contributions are always welcome!
See contributing.md for ways to get started.
Please adhere to this project's code of conduct.