README
Prerequisites
- Python >= 2.7 and <= 3.0
- Python Twisted >= 11.0
- Python ujson
- Python txpostgres >= 1.0.0
- MetaTrader 4.0
Services
KINPUT
service/kinput.py
KINPUT is a program that receive candle data from its HTTP interface and save it into a postgreSQL database.
Usage
twistd -n web --class=kinput.KInputService
MetaTrader Plugins
HTTP_POST
plugins/indicators/http_post.mq4
HTTP_POST is a seudo-indicator that send candle data to KINPUT HTTP interface using gunzip’s Native HTTP Client for MQL.
gHTTP
plugins/lib/ghttp.mqh
gunzip’s Native HTTP Client for MQL that enables MetaTrader sending data via HTTP.
SQLs
kchart.sql
Tables used to store candle data. Those tables share a naming convention that is,
kchart_{symbol}_{peroid}m
For example, EURUSD 5m table is kchart_eurusd_5m.