Mathematics calculation written in JavaScript needs to be converted to MQL5

Lavoro terminato

Tempo di esecuzione 1 giorno
Feedback del dipendente
Thank you. Looking forward for future works.
Feedback del cliente
Soewono has done the job accurately and he was very fast. His explanation and demonstration was clear. Everything went smoothly. Recommended!

Specifiche

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

Con risposta

1
Sviluppatore 1
Valutazioni
(19)
Progetti
24
17%
Arbitraggio
7
0% / 71%
In ritardo
3
13%
Gratuito
Pubblicati: 2 articoli, 4 codici
2
Sviluppatore 2
Valutazioni
(851)
Progetti
1459
72%
Arbitraggio
122
29% / 48%
In ritardo
356
24%
In elaborazione
Pubblicati: 3 articoli
3
Sviluppatore 3
Valutazioni
(225)
Progetti
285
41%
Arbitraggio
15
13% / 47%
In ritardo
67
24%
Gratuito
4
Sviluppatore 4
Valutazioni
(82)
Progetti
86
57%
Arbitraggio
25
0% / 84%
In ritardo
19
22%
Gratuito
Ordini simili
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

Informazioni sul progetto

Budget
30+ USD
Scadenze
a 18 giorno(i)