OpenTrade is an open source project that consist of Popular strategies and backtest.
- Popular strategies
- Backtest
- Open sourse
- Easy to run
- Martingale
- Grid Trading
- Infinity Grid
- Rebalance
- SmartTrade
- Spot-Future arbintage
- TWAP
- Reverse Grid
- Trailing Buy/Sell
Some strtegies are implemented based on Pionex blog page
A built-in backtest is used to test strategies ,so you need to download historical data for testing. You can make strategies for Spot and future markets by yourself.
By running Strategies file in base folder you can run demo files. but if you download or clone project you can use this approach:
git clone https://github.com/mertz1999/OpenTrade.git
cd Opentrade
Then you can load OpenTrade in you python file:
from OpenTrade.strategy_list.martingale import Martingale
import pandas as pd
data = pd.read_csv('./data/BTC_2020.csv')
data = pd.DataFrame(data.values[::-1], data.index, data.columns)
st = Martingale(1, -1, 3, data, 700, 1)
st.run()
Make Auto sell at certain priceMake Auto buy at certain priceSet fee value to hole positionsSet volume- Plotting
Volume based backtest beside orderbased- Make plot
Future trading- Leverage