semvec/pypi-packages huggingface dataset:
metatrader 0.0.1
MetaTrader4 Libraries easily backtest and optimization from python
License: MIT
Keywords: MetaTrader mt4 mql

****************************************
py-metatrader
****************************************

py-metatrader 0.0.1

Released: 30-May-2015

=============
Introduction
=============

py-metatrader is a python package that provides interfaces to metatrader4(mt4).
`metatrader4`_  is a trading platform that can automate trading(fx, stock, etc...) by your own program(ExpertAdvisor in mt4).

you can automate simuration(backtest in mt4), CI  EA development , etc... by using this library.

currently works with Python 2.7.

contributing and porting is welcome.


=============
Feature
=============

At the moment, py-metatrader supports:

* backtest
* optimization

The goal of py-metatrader is to support execute all feature of metatrader4 from this library.


============
Installation
============

Install via `pip`_:

.. code-block:: bash

    $ pip install metatrader

Install from source:

.. code-block:: bash

    $ git clone https://github.com/samuraitaiga/py-metatrader.git
    $ cd py-metatrader
    $ python setup.py install


============
ChangeLogs
============
* 0.0.1

  * first release. backtest and optimization from python.


============
Usage
============


Backtest:

.. code-block:: python

    from metatrader.mt4 import initizalize
    from metatrader.backtest import BackTest
    
    # point mt4 install folder
    initizalize('C:\\Program Files\\FXCM MetaTrader 4')

    # specify backtest period by datetime format
    from_date = datetime(2014, 9, 1)
    to_date = datetime(2015, 1, 1)

    ea_name = 'Moving Average'

    # create ea param by dict.
    param = {
             'Lots': {'value': 0.1},
             'MaximumRisk': {'value': 0.02},
             'DecreaseFactor': {'value': 3.0},
             'MovingPeriod': {'value': 12},
             'MovingShift': {'value': 6}
             }
    # create backtest object
    backtest = BackTest(ea_name, param, 'USDJPY', 'M5', from_date, to_date)

    # run backtest
    ret = backtest.run()

    # you can get result from result object
    # for example you can print gross profit
    print ret.gross_profit

.. _metatrader4: http://www.metatrader4.com/
.. _pip: http://www.pip-installer.org/
sar-tool 1.0.3
Search and replace tool that outputs a diff compatible with patch
License: MIT
Keywords: sed grep awk diff patch

===========
Description
===========

|PyPI version| |PyPI downloads| |GitHub license|

``sar`` is a simple search and replace script that outputs a valid
``diff`` file for review and later apply with ``patch``.

============
Installation
============

``$ pip install sar-tool``

=====
Usage
=====

``$ sar unified_diff megasuper_diff sar.py``

::

    Searching for 'unified_diff' and replacing to 'megasuper_diff'

    Processing file sar.py ... MATCH FOUND
    Index: sar.py
    ================================================================================
    --- sar.py (original)
    +++ sar.py (modified)
    @@ -88,7 +88,7 @@
                 debug("MATCH FOUND\n")
                 print "Index:", filename
                 print "=" * 80
    -            diff = ''.join(list(difflib.unified_diff(orig.splitlines(1),
    +            diff = ''.join(list(difflib.megasuper_diff(orig.splitlines(1),
                                                          res.splitlines(1),
                                                          filename + " (original)",
                                                          filename + " (modified)")))

=======
Licence
=======

This script is released under the MIT licence

.. |PyPI version| image:: https://img.shields.io/pypi/v/sar-tool.svg
   :target: https://pypi.python.org/pypi/sar-tool
.. |PyPI downloads| image:: https://img.shields.io/pypi/dm/sar-tool.svg
   :target: https://pypi.python.org/pypi/sar-tool#downloads
.. |GitHub license| image:: https://img.shields.io/github/license/mashape/apistatus.svg
   :target: http://naufraghi.mit-license.org
twunnel3 0.4.0
A HTTPS/SOCKS4/SOCKS5 tunnel for AsyncIO.
License: MIT

Twunnel
=======

A HTTPS/SOCKS4/SOCKS5 tunnel for AsyncIO.

Supports:

- TCP
- TCP over SSL

Examples
--------

- https://github.com/jvansteirteghem/twunnel3/tree/master/examples

  - Example 1: A TCP tunnel.
  - Example 2: A HTTPS TCP tunnel.
  - Example 3: A SOCKS4 TCP tunnel.
  - Example 4: A SOCKS5 TCP tunnel.
  - Example 5: A HTTPS TCP, SOCKS4 TCP, SOCKS5 TCP tunnel.
  - Example 6: A SOCKS5 TCP over SSL tunnel.

License
-------

Uses the `MIT`_ license.


.. _MIT: http://opensource.org/licenses/MIT