Skip to content

Commit

Permalink
Cleaned up too much, oops
Browse files Browse the repository at this point in the history
  • Loading branch information
aLca committed Feb 21, 2025
1 parent decd91e commit 754eb3c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import backtrader as bt
import numpy as np
from sklearn.neighbors import NearestNeighbors # pip install scikit-learn
from fastquant.strategies.base import BaseStrategy
from fastquant.strategies.base import BaseStrategy, bt
from fastquant.strategies.custom_indicators.FibonacciLevels import FibonacciLevels
from fastquant.strategies.custom_indicators.ElhersDecyclerOscillator import DecyclerOscillator
from fastquant.strategies.custom_indicators.MADRV2 import ModifiedMADR
Expand Down
4 changes: 1 addition & 3 deletions dependencies/fastquant/strategies/QQE_Hullband_VolumeOsc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import backtrader as bt
from fastquant.strategies.base import BaseStrategy, BuySellArrows
from fastquant.strategies.base import BaseStrategy, bt
from numpy import isnan

class VolumeOscillator(bt.Indicator):
Expand Down Expand Up @@ -76,7 +75,6 @@ class QQE_Example(BaseStrategy):

def __init__(self, **kwargs):
print('Initialized QQE')
BuySellArrows(self.data0, barplot=True)
super().__init__(**kwargs)
self.qqe = QQEIndicator(self.data)
self.hma = bt.indicators.HullMovingAverage(self.data, period=self.p.hull_length)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import backtrader as bt
from fastquant.strategies.base import BaseStrategy
from fastquant.strategies.base import BaseStrategy, bt
from fastquant.strategies.custom_indicators.MesaAdaptiveMovingAverage import MAMA

class SMA_Cross_MESAdaptivePrime(BaseStrategy, bt.SignalStrategy):
Expand Down
4 changes: 1 addition & 3 deletions dependencies/fastquant/strategies/SuperTrend_Scalp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import backtrader as bt
from fastquant.strategies.base import BaseStrategy, BuySellArrows
from fastquant.strategies.base import BaseStrategy, bt
from fastquant.strategies.custom_indicators.SuperTrend import SuperTrend

class SuperSTrend_Scalper(BaseStrategy):
Expand All @@ -25,7 +24,6 @@ class SuperSTrend_Scalper(BaseStrategy):

def __init__(self, **kwargs):
super().__init__(**kwargs)
# BuySellArrows(self.data0, barplot=True)
self.adx = bt.indicators.ADX(self.data, period=self.p.adx_period, plot=False)
self.plusDI = bt.indicators.PlusDI(self.data, period=self.p.di_period, plot=False)
self.minusDI = bt.indicators.MinusDI(self.data, period=self.p.di_period, plot=False)
Expand Down
2 changes: 1 addition & 1 deletion dependencies/fastquant/strategies/bollinger_band.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Import from package
from fastquant.strategies.base import BaseStrategy, BuySellArrows
from fastquant.strategies.base import BaseStrategy, bt

class BBandsStrategy(BaseStrategy):
"""
Expand Down
2 changes: 1 addition & 1 deletion dependencies/fastquant/strategies/ma_crossover.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from fastquant.strategies.base import BaseStrategy
from fastquant.strategies.base import BaseStrategy, bt

class SMACStrategy(BaseStrategy):
"""
Expand Down
2 changes: 1 addition & 1 deletion dependencies/fastquant/strategies/macd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Import from package
from fastquant.strategies.base import BaseStrategy
from fastquant.strategies.base import BaseStrategy, bt


class MACDStrategy(BaseStrategy):
Expand Down
2 changes: 1 addition & 1 deletion dependencies/fastquant/strategies/rsi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Import from package
from fastquant.strategies.base import BaseStrategy
from fastquant.strategies.base import BaseStrategy, bt


class RSIStrategy(BaseStrategy):
Expand Down

0 comments on commit 754eb3c

Please sign in to comment.