Robo Simples de Acoes com Excel e Proteção

MQL5 专家 脚本

指定

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

反馈

1
开发者 1
等级
(400)
项目
528
74%
仲裁
9
44% / 0%
逾期
24
5%
空闲
2
开发者 2
等级
(277)
项目
334
55%
仲裁
14
36% / 29%
逾期
1
0%
空闲
3
开发者 3
等级
(249)
项目
398
38%
仲裁
82
41% / 20%
逾期
69
17%
已载入
相似订单
Hi everyone, I need an expert to write a script in MQL5 that will fetch and store OHLC price data for a specified time period for a range of specified symbols. The data will be saved in 4 separate Excel CSV format files, one file for Open price data, one file for High price data, one file for Low price data and one file for Close price data. In each CSV file, the dates will be listed vertically in column A, and the
I am looking for a skilled developer to create a trading strategy for NinjaTrader and TradingView. The strategy will be based on the following logic: Place a limit order if there is a price break of the premarket session (high and low of time session), specific wick liquidity (moves past a specific previous price/wick), or higher timeframe order block (specific two candles), or if a lower timeframe specific wick with
Hello Im looking for someone to build a Strategy for me in Pine Script and also be able to help Webhook it with alerts to Tradestation and Coinbase For Crypto it will be sent to coinable entering Buy and To alert for Close postion For Stocks similar as crypto Also would like like to be able to have the option to enter Shorts in script for use in futures I would like to also have setting in the Script for Settings
I am in search of a professional and experienced developer to convert my existing TradingView indicator into a fully functional trading robot for the MetaTrader 5 (MT5) platform. The chosen developer will be responsible for implementing the indicator's features and algorithms into a user-friendly, efficient, and reliable trading robot. apply if you are professional in the field
My strategy is very simple. I need someone who c an write this code for robot trading. this strategy is not very complex it is very simple. hope anyone will accept it
Looking to create a way to detect break of structure and market structure shift using the zigzag indicator. The script will look back a number of bars and plot all BOS and MSS
"I am seeking a skilled developer proficient in both TradingView and NinjaTrader 8 platforms to convert my trading strategies from TradingView Pine Script to NinjaScript. The ideal candidate should have experience in algorithmic trading and be able to accurately translate the logic and indicators used in TradingView to NinjaTrader 8. This conversion will enable me to execute my strategies seamlessly on the
Id Like to have a web based trading journal where i can import MT4/5, excel sheet or manual input. This page will require uses to register There has to be a performance dashboard of the journal
Please I have been going through some ideas and have come up with something I want to build something similar to this https://www.youtube.com/watch?v=ts4ux3Sr55Y . Please I need someone who can handle this for me .. share your idea and let’s get started
I'm looking for someone to code a trade copier copying trades locally from MT5 to NT8. Trades are going to be placed through an EA and manually (both limit and market orders) on mt5 and needs to replicate onto NinjaTrader 8. I need fast execution on the trade copy. I should be able to add multiple slave accounts (NinjaTrader). Sound alerts should be available when orders are successful or something went wrong like

项目信息

预算
100 - 150 USD
开发人员
90 - 135 USD