G_strategy: Convert from ".pinescript" for metatrader 4. (MQL4 / MQL5) with small adaptations. (Expert Advisor)

Trabalho concluído

Tempo de execução 6 dias

Termos de Referência

.
Description in two languages:
.
         [en/US]
Hello, I need to convert a PineScript language strategy (from Tradingview) to work on both Metatrader 4 and MetaTrader 5, to work as Expert Advisor (MQl4 / MQl5). 

The algorithm is attached.
It is expected that this can work in both the stock and Forex markets without limitations independent of the market that is acting.

Trading in a single currency, the input signal is based algorithm "GetTrendStrategy by YaroslavG" published in the public library Tradingview website.

The description of the algorithm follows:
1st part: a modified heiken ashi indicator (based on the CM_Modified_heikin-Ashi_Trendbars indicator from the public library of Tradingview) is calculated; 

In the sequence the indicator is plotted (only a visual identifier);
2nd part: the strategy of the algorithm "GetTrendStrategy by YaroslavG" mentioned above is introduced (this is the strategy itself);
3rd part: the RSI levels are calculated, which will serve as parameter for calculating the Trail-Stop;
4th part: there is a small block to specify the operating hours of the algorithm to only carry out the trades within the determined interval of time;
5th part: block of
            5.1 - sending orders according to the strategy and the schedule previously chosen;
            5.2 - and closing of the positions made by the orders according to the trail-stop previously calculated;
6th part: only the previously calculated parameters are plotted to help compile / verify the algorithm;
Part 7: Two programming lines that are responsible for calculating the maximum drawdown; 

(it is the maximum percentage loss allowed for the current amount negotiated, the algorithm was asked to negotiate.

 If the total value falls as much as the drawdown limit, the software closes all positions and stops acting, regardless of whether it was necessary 1 or more trade operations to occur this total fall.) 
What the algorithm does not have yet and I want it to have in this:
 -> Restore normal operation after a connection failure, if within the previously established hours.
-> The lot is calculated as a percentage of the balance. 

(There was not even this option because in PineScript because there is no need since it already exists as a compiler configuration of Tradingview).
-> Completely ignore all other positions. If the system is self-sufficient, then the trading actions of other Expert Advisors or the user should not influence it;

If you need to ask questions about the algorithm, I can be reached via 'whatsapp smartphone app' via free phone, video call, audio and text messaging.

.

            [pt/BR]

 Olá, preciso converter uma estratégia da linguagem PineScript (do Tradingview) para funcionar em ambos (MQl4/MQl5) Metatrader 4 e MetaTrader 5, 

para funcionar como Expert Advisor.
Segue em anexo o algoritimo.

Espera-se que este possa funcionar tanto em mercados de ações
quanto em Forex sem limitações quanto a qual dos mercado  está atuando.

Fazendo trading em uma única moeda, o sinal de entrada é baseado algoritmo "GetTrendStrategy por YaroslavG " publicado na biblioteca pública do site Tradingview. 

         Segue resumo da descrição do algorítimo:

1ª parte: é calculado um indicador heiken ashi modificado (baseado no indicador CM_Modified_heikin-Ashi_Trendbars from public library of Tradingview); Na sequência o indicador é plotado (apenas um idicador visual) ;

2ª parte: é introduzida a estratégia do algoritmo "GetTrendStrategy por YaroslavG " citado anteriormente (esta é a estratégia em si);

3ª parte: são calculado os níveis RSI, que servirão como parâmetro para calculo do Trail-Stop;

4ªparte: há um pequeno bloco para especificar os horários de funcionamento do algorítmo para só efetuar os trades dentro do intervalo de tempo determinado;

5ª parte: bloco de

         5.1-envio de ordens em função da estratégia e do horário que foram definidos anteriormente;

         5.2-e de fechamentos das posições efetuadas pelas ordens em função do trail-stop;

6ª parte: apenas são plotados os parâmetros já calculados anteriormente para fins a ajudar a compilar/verificar o algoritmo;

7ª parte: duas linhas de programação que são responsáveis por calcular o 'Drawdown' máximo; (trata-se da perda máxima percentual admitida para o montante atual negociado, foi solicitado ao algoritmo negociar. Se o valor total chegar a cair tanto ao limite do drawdown, o software fecha todas as posições e para de atuar, independentemente se foram necessárias 1 ou mais operações de trade para ocorrer esta queda total.)

            O que o algorítimo ainda não possui ainda e desejo que tenha neste:

 -> restaure a operação normal após uma falha de conexão, se dentro do horário estabelecido anteriormente.

-> O lote é calculado como um porcentagem do saldo. (Não havia incluso esta opção pois no PineScript não existe a necessidade pois já existe como uma configuração compilador do Tradingview).

-> Ignorar completamente todas as posições "other". Se o sistema é autossuficiente, então as ações de trading dos outros Expert Advisors ou o usuário, não devem influenciá-lo;

Se precisar titar dúvidas, pode contactar em qualquer horário via chamada de "whatsapp"

 






Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(186)
Projetos
205
26%
Arbitragem
12
25% / 58%
Expirado
39
19%
Livre

Informações sobre o projeto

Orçamento
160 - 210 USD
Desenvolvedor
144 - 189 USD
Prazo
de 4 para 6 dias