Skip to main content

Plugin mtcli da VWAP

Project description

mtcli-vwap

Plugin VWAP (Volume Weighted Average Price) para o ecossistema mtcli, desenvolvido para análise intraday, automação e integração entre plugins.

Compatível com MetaTrader 5, com foco em VWAP ancorada, bandas estatísticas e saída acessível em terminal.


Principais recursos

  • VWAP intraday tradicional
  • VWAP ancorada por:
    • abertura do dia
    • ajuste
    • horário específico
    • máxima do período
    • mínima do período
  • Bandas de VWAP configuráveis
    • desvio padrão
    • desvio ponderado por volume
  • Saída textual acessível (NVDA / JAWS)
  • Saída em JSON estruturado para automação
  • Arquitetura clara em MVC

Instalação

pip install mtcli-vwap

Requisitos

  • Python >= 3.10
  • MetaTrader 5 instalado
  • mtcli configurado corretamente

Uso rápido

mt vwp

Exemplo completo:

mt vwp \
  --symbol WIN$N \
  --minutes 1 \
  --limit 600 \
  --anchor abertura \
  --bands 2

⚓ VWAP ancorada

Abertura do dia

mt vwp --anchor abertura

Ajuste

mt vwp --anchor ajuste

Horário específico

mt vwp --anchor hora --anchor-time "2026-01-29 09:00"

Máxima / mínima do período

mt vwp --anchor maxima
mt vwp --anchor minima

Bandas de VWAP

mt vwp --bands 2

Saída vertical (compatível com leitores de tela):

banda_sup_2
banda_sup_1
VWAP
banda_inf_1
banda_inf_2

Saída em JSON

Indicada para automações e integração com outros plugins do mtcli:

mt vwp --bands 2 --json

Exemplo de saída:

{
  "vwap": 123456.0,
  "anchor_type": "abertura",
  "anchor_time": null,
  "banda_sup_1": 123600.0,
  "banda_inf_1": 123300.0
}

Configuração

O plugin aceita configuração por:

  1. Variáveis de ambiente
  2. Arquivo de configuração do mtcli
  3. Valores padrão

Parâmetros suportados:

  • SYMBOL
  • MINUTES
  • LIMIT
  • ANCHOR
  • BANDS
  • DIGITOS

🧱 Estrutura do projeto

mtcli_vwap/
├── cli.py        # Interface de linha de comando
├── controller.py # Orquestração
├── model.py      # Cálculo da VWAP
├── view.py       # Saída acessível
├── conf.py       # Configurações
└── plugin.py     # Registro no mtcli

Acessibilidade

  • Saída exclusivamente textual
  • Ordem previsível e estável
  • Compatível com NVDA, JAWS e leitores de tela similares

Licença

GPL


Autor

Valmir França
Desenvolvedor de ferramentas quantitativas, automação de trading e CLIs acessíveis.


Contribuições

Contribuições são bem-vindas via issues ou pull requests.


Projeto pensado para traders discricionários, automação quantitativa e leitura de contexto de fluxo.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mtcli_vwap-2.0.0.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mtcli_vwap-2.0.0-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file mtcli_vwap-2.0.0.tar.gz.

File metadata

  • Download URL: mtcli_vwap-2.0.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Windows/11

File hashes

Hashes for mtcli_vwap-2.0.0.tar.gz
Algorithm Hash digest
SHA256 890f2e969f051bdc7bee8baa44937da4dd75f9fdb258a2cd17409641d36c02d9
MD5 0f4e85dee06a83560d229433a08a9201
BLAKE2b-256 02836de2be34a77fcd81969fc50b2c67861cadf163e58fb5a9b1eeee98cd7204

See more details on using hashes here.

File details

Details for the file mtcli_vwap-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: mtcli_vwap-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Windows/11

File hashes

Hashes for mtcli_vwap-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1403aecf63ad89017549c8e08ac7d910e0b14fa7927afc112c28d49b685863d8
MD5 030bde6050fa268d90dd33f5929c110e
BLAKE2b-256 6f81e51648b2e4ff95e7bde114b2b0dcf5c3fcc3e6f4a98bf1321688bab29bf3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page