import trade import candleCompressor import liveTrade import v20 import pythonicMT4 mt4 = pythonicMT4.zmq_python() api = v20.Context( 'api-fxpractice.oanda.com', '443', token='4d778d7e11d347105a31f006b4fca635-f45fb14af82de2821630117d3571d598') # # response = api.order.market( # '101-001-6583838-001', # instrument='EUR_USD', # units=-5000) # class strategy7(object): highestBalance = 1000 highestDrawdown = 0 shouldPrint = True firstTrade = True liveBuy = False inBuy = False totalTrades = 0 winCounter = 0 lossCount = 0
import pythonicMT4 import talib import numpy as np import gevent from time import sleep trade = pythonicMT4.zmq_python()