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
Example #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('*****@*****.**')
Example #3
0
 def __init__(self):
     Bot.__init__(self, ['2h'])
Example #4
0
 def __init__(self):
     Bot.__init__(self, ['5m'])
Example #5
0
 def __init__(self):
     Bot.__init__(self, '5m')
Example #6
0
 def __init__(self):
     Bot.__init__(self, '2h')
Example #7
0
 def __init__(self):
     # 第一引数: 戦略で使う足幅
     # 1分足で直近10期間の情報を戦略で必要とする場合
     Bot.__init__(self, '1m')
Example #8
0
 def __init__(self):
     # set time frame here
     Bot.__init__(self, '1m')
Example #9
0
 def __init__(self):
     Bot.__init__(self, "2h")
Example #10
0
 def __init__(self):
     Bot.__init__(self, "1m")
Example #11
0
 def __init__(self):
     # get last 10 minutes of data every minute
     Bot.__init__(self, '1m')
Example #12
0
 def __init__(self):
     # set time frame here
     Bot.__init__(self, ['15m'])
     # initiate variables
     self.isLongEntry = []
     self.isShortEntry = []