EAMetatrader
Metatrader library for python powered by MtApi
This library currently only supports MetaTrader 4
Installation
- Install the library with the
pip install EAMetatradercommand - Copy and run the
MtApi.ex4file in MetaTrader software - Set up a
portin Expert and Application for network connection - and over
Required libraries
from EAMetatrader import MT4Client,Color
from EAMetatrader.Enums import *
import datetime
Connection
client = MT4Client(True)
client.Connect(8222)
Copy Rates
start = datetime.datetime(2021,3,16)
end = datetime.datetime(2021,3,1)
mqlrate = client.CopyRates("EURUSD",ENUM_TIMEFRAMES.PERIOD_H1,start,end)
print(mqlrate.Time(2))
Indicators
Symbol = "EURUSD"
Timeframe = 60
Period = 14
Appliedprice = 0 #Close
Shift = 0
RSI = client.iRSI(Symbol,Timeframe,Period,Appliedprice,Shift)
Send Order
Lot = 0.01
Price = 1.18
SL = 1.17800
TP = 1.18400
Slippage = 5
Comment = "EAMT"
Magic = 2222
Expiration = datetime.datetime(2021,3,25)
color = Color()
Order = client.OrderSend("EURUSD",TradeOperation.OP_BUY,Lot,Price,Slippage,SL,TP,Comment,Magic,Expiration,color.Green())
TODO
- Debug some functions
- Write MT5Client class
- Development of functions for working with artificial intelligence
Issues
If you have a question or want to report a bug, send it in this section
My social medias
Donating
Bitcoin: 1LsuAxGGdfH43YpgSjY8CSZdX45r4BE4jx
Metadata
Release files for EAMetatrader 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| EAMetatrader-1.0.4.tar.gz | 867.9 kB | Without provenance | Details for EAMetatrader-1.0.4.tar.gz |
Release files / EAMetatrader-1.0.4.tar.gz
| Download URL | EAMetatrader-1.0.4.tar.gz |
|---|---|
| Size | 867.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b48f48990d88cc38264c526df060c840cd5c596cfbce2274afa301aec1617f3
|
|
BLAKE2b-256 checksum How to use checksums |
79bb8395262543ad868881113587c020d0c70ba0661805bd250c83465b0f5ced
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.8.0 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6
|
Security for EAMetatrader 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.