Mathematics calculation written in JavaScript needs to be converted to MQL5

仕事が完了した

実行時間1 日
依頼者からのフィードバック
Soewono has done the job accurately and he was very fast. His explanation and demonstration was clear. Everything went smoothly. Recommended!
開発者からのフィードバック
Thank you. Looking forward for future works.

指定

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

ファイル:

MQ5
mm_html.mq5
339.4 Kb

応答済み

1
開発者 1
評価
(19)
プロジェクト
24
17%
仲裁
7
0% / 71%
期限切れ
3
13%
暇
パブリッシュした人: 2 articles, 4 codes
2
開発者 2
評価
(854)
プロジェクト
1472
72%
仲裁
122
29% / 48%
期限切れ
361
25%
暇
パブリッシュした人: 3 articles
3
開発者 3
評価
(225)
プロジェクト
285
41%
仲裁
15
13% / 47%
期限切れ
67
24%
暇
4
開発者 4
評価
(82)
プロジェクト
86
57%
仲裁
25
0% / 84%
期限切れ
19
22%
暇
類似した注文
I am looking for an experienced MQL5 developer to create a simple, well-organized Expert Advisor for MetaTrader 5. Requirements: - Provide complete and editable MQL5 source code. - Explain the EA's functionality and logic clearly. - Include configurable settings. - Include appropriate risk-control features. - Provide clear installation and testing instructions. - Ensure the code is clean and properly documented. I
PROJECT NAME: BALISA AI VERSION 1.0 I want to develop my own automated trading robot called Balisa AI for MetaTrader 5 (MT5). REQUIREMENTS: 1. The robot must support Forex and Gold (XAUUSD). 2. It must operate as an Expert Advisor (EA) on MT5. 3. It must automatically identify trading opportunities and execute buy and sell orders. 4. It must have Stop Loss and Take Profit. 5. It must include risk management to
🚀 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
I want an advanced automated Expert Advisor (EA) trading robot developed for MetaTrader 5 (MT5), compatible with Exness trading accounts. The robot should have the following features: 1. AUTOMATED TRADING - Automatically execute BUY and SELL trades. - Identify strong trading opportunities. - Analyse market trends before entering trades. - Operate without requiring manual trade execution. 2. ADVANCED MARKET ANALYSIS -
Can you do a 5 year back test on /6e (fx euro). using 30 minute chart. Buy to open if macd histogram is above 0 line, or sell to open if macd histogram is below 0 line at 7:30 pm eastern standard time. Close position at 7:30 am next morning. Trade stays open for the entire 12 hour time. thanks, regarding backtest, forgot to mention $300 stop loss, and $500 take profit. Thank you
Hi! I have a general strategy concept, but I would like you to help develop and define the exact trading rules. The planned strategy is: * Instrument: MNQ futures * Platform: NinjaTrader 8 * M30 timeframe for identifying the main trend * M5 timeframe for trade entries * RSI and MACD indicators * Support and resistance levels * Fully automated entries and exits * Automatic Stop Loss, Take Profit and Trailing Stop *
This utility manages the stop loss of positions that are already open, whether you opened them by hand or with another Expert Advisor. It never opens or closes trades by itself: it only moves the stop loss, and only in your favour. What it does Break-even: when a position reaches the profit you choose (in points), the stop moves to the entry price plus a small locked profit. Trailing stop: after a second profit
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
I am looking for a quantitative strategy researcher and MQL5 developer to help research, validate and prototype a fast automated XAUUSD trading system for MT5. The target is tick-level trading with positions typically held for seconds, closely spaced entries, and configurable bursts of multiple positions during a qualifying opportunity. IMPORTANT: We do not yet have a validated profitable strategy. I need someone who

プロジェクト情報

予算
30+ USD
締め切り
最高 18 日