Robo Simples de Acoes com Excel e Proteção

MQL5 Asesores Expertos Sripts

Tarea técnica

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

Han respondido

1
Desarrollador 1
Evaluación
(401)
Proyectos
529
74%
Arbitraje
9
44% / 0%
Caducado
24
5%
Trabaja
2
Desarrollador 2
Evaluación
(277)
Proyectos
334
55%
Arbitraje
14
36% / 29%
Caducado
1
0%
Libre
3
Desarrollador 3
Evaluación
(250)
Proyectos
400
38%
Arbitraje
82
41% / 20%
Caducado
69
17%
Trabajando
Solicitudes similares
I want to connect a bot to funding accounts (FTMO) if it is programmed from MetaTrader 4. Do you know if FTMO allows EAs to be connected to their private servers? Have you done this for FTMO before? What do you think is a better option in this case to program from mt4 or from Pinescript with the help of Pineconnector
I have an unfinished section of code which uses, "While" and ,(ilowest_Symbol,PERIOD_M1,MODE_LOW) to find a continuously updated sequence of 8 different lows(and its previous low), and their price values. Only the 1st of 8 lows and it's price value, is currently found by the code, as the code needs more work. A more detailed description is provided to potential coders
Hello, I need someone to create a script with these parameters in Tradestation (EasyLanguage). Here's what I'm trying to achieve: STRATEGY: I will manually select and sell an OTM naked call. My goal is to let it expire OTM. However if price goes past the strike, this strategy will buy and sell 100 shares of the underlying to minimize risk that I have to buy/sell shares at a higher price. What I want EasyLanguage to
Simple Hedge Zone EA 30 - 50 USD
inputs : 1 - order factor type : initial contract size / net contract size initial order size : it mean the multiply on the initial position it mean if i open 1 lot and the factor is 2.0 the second order will be 2 and the third one it will be 4 net contract size : it mean the multiply on net contract opened like exposure , it mean if i open 1 lot and the factor is 2.0 the second order will be 3 because in the stage
Guten Tag, benötigt wird eine Software die Trades auf einem MT4 oder MT5 kopiert und auf die xStation übergibt: http://developers.xstore.pro/documentation/ Auf dem MT4/5 Chart muss ein Hinweis stehen und wie die aktuelle Verbindung ist. Einstellbar wie zum Beispiel: https://drive.google.com/file/d/1ltg83qnbj-FgWRrq4q-1r1NS-vL5b-jE/view?usp=drive_link Es reicht wenn man es in MT4/5 Settings einstellen kann. Es muss
hi i want to create an ea based on price action,moving avereges and fair value gaps. i want the robot to operate on london session and newyork session. i want the bot to identify gaps, fill them and open position after fill the gap on opposite direction. Also i want the robot to open a position after a bearish or bullish engulfing candle cross the 200 moving averages
Hello, I am looking for a skilled MQL4, MQL5 PROGRAMMER WHO IS CAPABLE OF CODING A WELL AUTOMATED EA FOR MT4 AND MT5, I NEED AN EA THAT RUN WELL AS BELOW streamlined version of MY strategy Price-Based Entry : The EA opens trades based on price movements, either buying or selling. Profitable Exit : Trades are closed when they reach a predefined profit target. If a trade starts moving into negative territory, the EA
I want to build a well performance mt4 indicator or trading view indicator for my strategy, please you must make sure you are a professional in building mt4 indicator or trading view indicator with serveral years of experience, so if you are kindly react to this and let talk more on how you will get my indicator working
EA development 30+ USD
HELLO there, am looking for some one that have serveral years of experience in developing a well performance EA, that can use both mt4, mt5 platform for development, please you most be an expert in the coding of EA , THANK YOU
All rights published by the owner. Its about experience and expert advisors may not be 100% accurate but they will assist you placing or execute trades when you are busy for you not to miss entries. Its a component of mixed confluence of strategies as it fit in my trading style

Información sobre el proyecto

Presupuesto
100 - 150 USD
Para el ejecutor
90 - 135 USD