Mathematics calculation written in JavaScript needs to be converted to MQL5

Trabalho concluído

Tempo de execução 1 dia
Comentário do desenvolvedor
Thank you. Looking forward for future works.
Comentário do cliente
Soewono has done the job accurately and he was very fast. His explanation and demonstration was clear. Everything went smoothly. Recommended!

Termos de Referência

The three attached files are the follows:

  • Two picture how the HTML file look like. First picture is the default state. The second picture is a random scenario.
  • The third file named mm_html.mq5 is the full source code. If you save it to HTML format then you can open and you will see the same as the pictures. The system doesn't allow to upload HTM that's why I put it in MQ5 format.


Bottom of the HTML file you can see the JavaScript code which is important for us.

I'd like to have a function where the "Next position if win current" and the "Next position if lose current"  is calculated if I pass the parameter "win" or "lose". And if I pass "reset" then reset the system.

You can see three input parameters in the HTML file. These can also be passed to the function.

These calculations are on the JavaScript code provided.

I'd like it in language MQL5.


Open the file in HTML and you will understand everything.

If anything needs to be clarified, feel free to ask me.


Kind Regards,
Ben

Arquivos anexados:

MQ5
mm_html.mq5
339.4 Kb

Respondido

1
Desenvolvedor 1
Classificação
(19)
Projetos
24
17%
Arbitragem
7
0% / 71%
Expirado
3
13%
Livre
Publicou: 2 artigos, 4 códigos
2
Desenvolvedor 2
Classificação
(851)
Projetos
1459
72%
Arbitragem
122
29% / 48%
Expirado
356
24%
Trabalhando
Publicou: 3 artigos
3
Desenvolvedor 3
Classificação
(225)
Projetos
285
41%
Arbitragem
15
13% / 47%
Expirado
67
24%
Livre
4
Desenvolvedor 4
Classificação
(82)
Projetos
86
57%
Arbitragem
25
0% / 84%
Expirado
19
22%
Livre
Pedidos semelhantes
Dear developers. We seek experienced developer in PHP, MySQL, JavaScript. we want to publish custom chart and CSV to our website Homepage. Our MQL5 Script contains custom layout we seek to publish on the website. we are looking for experienced developer in the field of website engineer. we want to broadcast our custom pairs in our website, as outlined in our MQL5 Script. we need React developers
I am looking for an experienced MQL4/MQL5 developer to build a custom MT4 indicator from scratch or cracking my ex4 file that i provide to you. I already have an existing indicator (EX4) which produces highly accurate buy/sell signals. I want a similar indicator developed based on its observable behavior and signal structure. my existing indicator is pc id protected so you have to do PC ID security bypass and source
We are looking for a developer to finish and stabilize an existing Kalshi trading bot (~60% complete) built in TypeScript. This is not a MetaTrader EA. The system interacts with the Kalshi API and requires strong understanding of execution logic, order handling, and state management. Scope of Work: Review and understand existing TypeScript codebase Complete missing functionality Fix execution issues (order placement

Informações sobre o projeto

Orçamento
30+ USD
Prazo
para 18 dias