Robo Simples de Acoes com Excel e Proteção

MQL5 Experts Scripts

Spécifications

O trabalho é simples. O Robo ira ler uma planilha excel com 9 colunas: ATIVO / OPERACAO / ENTRADA / TAKE PROFIT / STOP LOSS / PORCENTAGEM DESEJADA/ POSICAO ATUAL / PORCENTAGEM ATUAL  e a principio uma media de apenas 5 linhas, podendo variar para 2 ate 10

exemplo de uma linha

VALE3 / COMPRA / 60.00 / 65.00 / 55.00 / 50% / 0 / 0% 

Ver a posição na corretora, vai estar com por exemplo 20mil (conseguir separar o que esta em fundo: 8 mil por exemplo e o que tem em saldo pra fazer trade 12 mil por exemplo)

Vai pegar esse valor disponivel 6 mil,  e calcular a porcentagem em cada linha. no exemplo acima 50% vai ser R$6.000 reais para VALE3

O calculo do tamanho dos lotes e se for inteiro ou fracionado para as compras deve ser feito automaticamente de acordo com o valor disponivel - tanto pra compra quanto pra venda. E em seguida atualizar o excel na coluna 7 E 8 com a posição atual (total de lotes comprados e/ou vendidos) EXEMPLO:

VALE3 / 60.00 / 65.00 / 55.00 / 50% / 100 / 50%

Quando a planilha for alterada o robo deve comparar com a condicao anterior e fazer o rebalanceamento

Por exemplo:

VALE3 / 60.00 / 65.00 / 55.00 / 100% / 100 / 50%  - o robo ira ver que tera que comprar mais 6.000 de VALE3 e apos ficara assim:

VALE3 / 60.00 / 65.00 / 55.00 / 100% / 200 /100% 


PARA ZERAR AS POSICOES: ao alterar a coluna 6 do excel, porcentagem desejada para 0%, o robo devera zerar a posicao dessa linha independentemente dos valores de stop loss e take profit

PARA COMPRAR A MERCADO: o robo devera comprar ou vender mercado quando a a 2a coluna estiver MERCADO. Sempre respeitando se esse valor estiver entre o stop loss e o take profit Exemplo:

VALE3 / MERCADO / 65.00 / 55.00 / 100% / 200 /100%

e em seguida atualizar a segunda coluna com o valor de compra. Exemplo:

VALE3 / 63.00 / 65.00 / 55.00 / 100% / 200 /100%


PROTEÇÕES:

1) Colocar uma opção programavel para caso a carteira como um todo  esteja com uma queda de 20% (configuravel) ele vender os ativos

2) Colocar uma proteçao adicional para evitar que o robo compre ou venda mais que o saldo disponivel


DUVIDAS:

é possivel fazer essa integracao com excel ou apenas com CSV?

é possivel controlar pelo mt5 o que é saldo em investimentos e o que é saldo em dinheiro? Se nao for possivel, colocar um parametro que ele leia do excel o valor a ser operado

como esse robo funcionaria em horario de leiloes?

Qual corretora é mais estavel para esse robo? 


OBSERVACAO:

Apenas desenvolvedores que tenham experiência na bovespa e que possam mostrar algum trabalho ja feito

O codigo devera ser aberto

Eu dei um exemplo de um arquivo com uma linha mas ele tera mais linhas

Favor colocar um painel no MQL5 semelhante ao excel mostrando as informações

Répondu

1
Développeur 1
Évaluation
(412)
Projets
543
75%
Arbitrage
9
44% / 0%
En retard
24
4%
Gratuit
2
Développeur 2
Évaluation
(277)
Projets
334
55%
Arbitrage
14
36% / 29%
En retard
1
0%
Gratuit
3
Développeur 3
Évaluation
(295)
Projets
474
39%
Arbitrage
103
41% / 23%
En retard
79
17%
Occupé
Publié : 2 codes
Commandes similaires
I want to design an EA that can identify key Supports and Resistances. This should be able to work on any timeframe from 1 minute to 1 hour (i.e 1 minute, 5 minutes, 15 minutes and 1 hour time frames.) The EA should be able to determine a Fibonacci retracement from a support and the next resistance point in an uptrend and vice versa (i.e the EA should be able to determine a Fibonacci retracement from a resistance and
Product Requirements Document (PRD) Project Title: Liquidity Sniper Semi-EA (Fibonacci & SMC Based) Platform: MetaTrader 5 (MQL5) Target Asset: XAUUSD (High Volatility) / M5 Timeframe 1. EA Operating Concept (Semi-Automated) Human-Machine Collaboration: The trader manually draws a standard Fibonacci Retracement object on the M15 chart to define the market structure (setting the 1.0 and 0.0 anchor points). EA's Role
Looking for a good EA 30 - 100 USD
Hello guys,i am looking for a good already established ea,that doesnt blow account,only give 5 percent per month with maximum 10 percent drowdown,I need prove,i need to backtest by myself,after that i select the developer
Short Description: I am seeking an experienced MQL4 developer to build a high-frequency Asymmetric Salami Grid EA . This is a sophisticated volatility harvester, not a basic martingale. Key Features to Implement: Virtual Grid Execution: No pending orders; all logic handled in-memory via OnTick . Asymmetric Lot Sizing: Trend-side degression vs. Counter-trend progression . Salami Partial Liquidation: XX% of profits
I would like to convert my MT4 EA to MT5 EA, it should have all the default indicators in it but can remove the custom indicators, it should have the same logic as MT4 EA no chnages at all in the logic
Description: I am looking for an experienced MQL4 developer to create an Expert Advisor (EA) for trading DAX (GER40) based on the confluence of two indicators. I already have both indicators in .ex4/.mq4 format. Key Requirements: Indicators: Use "PivotPoints-All-In-One" and "shved_supply_and_demand" (via iCustom). Entry Logic: Open BUY/SELL only when a Pivot level (PP, S1, R1 etc.) is located inside a "Verified" or
Hello i need an expert advisor for meta trader 5 .Strategy: Trend on H1 using EMA 50. ENTRY on M5 when the price pulls back to EMA 21 or VWAP. BUY after bullish candle confirmation , SELL after bearish candle conformation.STOP LOSS 5- 8 pips ,TAKE PROFIT 10 - 15 pips.include spread filter , no trade on major news and a maximum of 3 trades per day
I am seeking an experienced MQL5 developer to build a high-precision Gold (XAUUSD) scalping Expert Advisor. The objective is to achieve a Profit Factor (PF) of 2.0 or higher with a focus on institutional logic rather than retail lagging indicators.The EA must be designed to pass a "100% Real Ticks" backtest (Exness/Dukascopy data) over a 30-day period with a $500 initial deposit.Core Requirements & Strategy
Title: Design and Development of an Automated Forex Trading Robot Using MQL5 and Machine Learning Techniques Abstract: This project focuses on the design and development of an automated Forex trading robot that integrates MQL5 programming and machine learning techniques. The system aims to predict market movements and execute trades automatically, minimizing human error and emotional trading. By leveraging historical
I am looking to purchase an existing multi-currency MT5 Expert Advisor that is capable of trading multiple currency pairs simultaneously . Please only contact me if you already have a ready-made EA and are willing to sell the full system including the complete source code . ⚠️ Important: If you do not own the EA, do not have the source code, or are planning to build something from scratch, please do not apply

Informations sur le projet

Budget
100 - 150 USD