Q26 ALPHA-TRADING SYSTEM
Public Member Functions | Public Attributes | List of all members
CLIENT_MT4 Class Reference

Public Member Functions

def __init__ (self)
 
def setHstDataPath (self, newPath)
 
def send (self, message)
 
def connection (self, configFile)
 
def getHistoricalData (self, contractFile, start, stop, timeframe, onlyOpen=True, path="./", fileName="Q26_hstData.csv")
 
def getLastPrice (self, contractFile, timeframe=1)
 
def placeOrder_ (self, configFile)
 
def placeOrder (self, symbolName, action="long", orderType="MKT", volume=0.01, stoploss=100., takeprofit=0., lmtPrice=0., pendingExpiration=dt.timedelta(hours=12))
 
def closePosition (self, symbolName, order)
 
def editPosition (self, order, stoploss=None, takeprofit=None, lmtPrice=None)
 
def cancelOrder (self, order)
 

Public Attributes

 PORT
 
 HOST
 
 path
 

The documentation for this class was generated from the following file: