def __init__(self):
        Bot.__init__(self, ['5m', '15m', '4h'])

        self.ohlcv = {}

        for i in self.bin_size:
            self.ohlcv[i] = open(f"ohlcv_{i}.csv", "w")
            self.ohlcv[i].write("time,open,high,low,close,volume\n") #header
Beispiel #2
0
    def __init__(self):
        Bot.__init__(self, '1m')

        user_id = os.environ.get("GMAIL_ADDRESS")
        if user_id is None:
            raise Exception("Please set GMAIL_ADDRESS into env to use Trading View Strategy.")
        self.subscriber = GmailSub(user_id)
        self.subscriber.set_from_address('*****@*****.**')
Beispiel #3
0
 def __init__(self):
     Bot.__init__(self, ['2h'])
Beispiel #4
0
 def __init__(self):
     Bot.__init__(self, ['5m'])
Beispiel #5
0
 def __init__(self):
     Bot.__init__(self, '5m')
Beispiel #6
0
 def __init__(self):
     Bot.__init__(self, '2h')
Beispiel #7
0
 def __init__(self):
     # 第一引数: 戦略で使う足幅
     # 1分足で直近10期間の情報を戦略で必要とする場合
     Bot.__init__(self, '1m')
Beispiel #8
0
 def __init__(self):
     # set time frame here
     Bot.__init__(self, '1m')
Beispiel #9
0
 def __init__(self):
     Bot.__init__(self, "2h")
Beispiel #10
0
 def __init__(self):
     Bot.__init__(self, "1m")
Beispiel #11
0
 def __init__(self):
     # get last 10 minutes of data every minute
     Bot.__init__(self, '1m')
Beispiel #12
0
 def __init__(self):
     # set time frame here
     Bot.__init__(self, ['15m'])
     # initiate variables
     self.isLongEntry = []
     self.isShortEntry = []