Mathematics calculation written in JavaScript needs to be converted to MQL5

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Ejecutor
Thank you. Looking forward for future works.
Comentario del Cliente
Soewono has done the job accurately and he was very fast. His explanation and demonstration was clear. Everything went smoothly. Recommended!

Tarea técnica

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

Archivos adjuntos:

MQ5
mm_html.mq5
339.4 Kb

Han respondido

1
Desarrollador 1
Evaluación
(19)
Proyectos
24
17%
Arbitraje
7
0% / 71%
Caducado
3
13%
Libre
Ha publicado: 2 artículos, 4 ejemplos
2
Desarrollador 2
Evaluación
(851)
Proyectos
1459
72%
Arbitraje
122
29% / 48%
Caducado
356
24%
Trabaja
Ha publicado: 3 artículos
3
Desarrollador 3
Evaluación
(225)
Proyectos
285
41%
Arbitraje
15
13% / 47%
Caducado
67
24%
Libre
4
Desarrollador 4
Evaluación
(82)
Proyectos
86
57%
Arbitraje
25
0% / 84%
Caducado
19
22%
Libre
Solicitudes similares
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

Información sobre el proyecto

Presupuesto
30+ USD
Plazo límite de ejecución
a 18 día(s)