Mathematics calculation written in JavaScript needs to be converted to MQL5

Tâche terminée

Temps d'exécution 1 jour
Commentaires du client
Soewono has done the job accurately and he was very fast. His explanation and demonstration was clear. Everything went smoothly. Recommended!
Commentaires de l'employé
Thank you. Looking forward for future works.

Spécifications

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

Dossiers :

MQ5
mm_html.mq5
339.4 Kb

Répondu

1
Développeur 1
Évaluation
(19)
Projets
24
17%
Arbitrage
7
0% / 71%
En retard
3
13%
Gratuit
Publié : 2 articles, 4 codes
2
Développeur 2
Évaluation
(854)
Projets
1472
72%
Arbitrage
122
29% / 48%
En retard
361
25%
Gratuit
Publié : 3 articles
3
Développeur 3
Évaluation
(225)
Projets
285
41%
Arbitrage
15
13% / 47%
En retard
67
24%
Gratuit
4
Développeur 4
Évaluation
(82)
Projets
86
57%
Arbitrage
25
0% / 84%
En retard
19
22%
Gratuit
Commandes similaires
🚀 THE AIRAK PHASE 3: SUBSCRIPTION, PAYMENT, LICENSING & AFFILIATE SYSTEM Project: THE AIRAK Trading Assistant Development Phase: Phase 3 Project Owner: Kayemba Joseph Platform: MetaTrader 5 (MT5) 1. PROJECT OBJECTIVE Phase 3 is intended to transform THE AIRAK into a subscription-based trading software business. The system should allow customers to register, purchase subscriptions, receive automatically activated
Robert for life money's cash maximum 16mb the jobs future linuox Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event . When the event occurs, the robot checks the emergence of trading signals and acts
Okay, this is a big one for MT5 traders. Let's do it properly. In Python, the "Merge Tool" usually means 2 things: 1. *Merge MT5 data from different symbols / timeframes into one DataFrame* 2. *Plot it as a clean graph* Here is a complete working setup: *Step 1: Install* pip install MetaTrader5 pandas matplotlib mplfinance *Step 2: Full Code - Get MT5 Data + Merge + Plot* import MetaTrader5 as mt5 import pandas as pd
Specification 1. Objective To acquire or develop a technological solution that allows the generation of temporary “FLASH” USDT on the TRON (TRC20) network, with an on-chain lifespan equal to or greater than 180 days . 2. Functional Scope 2.1 FLASH USDT Generation Creation of temporary USDT tokens visible on the TRON TRC20 blockchain. Minimum lifespan: 180 days (or higher, depending on configuration). 2.2
SMC Bot Creation 350 - 550 USD
Hello, I am interested in developing a professional MT5 Expert Advisor similar in functionality and technical sophistication to your reference product, Institutional SMC Robot: https://www.mql5.com/en/market/product/187011 I want to develop my own independent EA based on advanced Smart Money Concepts (SMC), with a strong focus on institutional price action, liquidity and market structure. The key functionalities I

Informations sur le projet

Budget
30+ USD
Délais
à 18 jour(s)