Mathematics calculation written in JavaScript needs to be converted to MQL5

工作已完成

执行时间1 一天
员工反馈
Thank you. Looking forward for future works.
客户反馈
Soewono has done the job accurately and he was very fast. His explanation and demonstration was clear. Everything went smoothly. Recommended!

指定

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 文章, 4 代码
2
开发者 2
等级
(851)
项目
1463
72%
仲裁
122
29% / 48%
逾期
358
24%
空闲
发布者: 3 文章
3
开发者 3
等级
(225)
项目
285
41%
仲裁
15
13% / 47%
逾期
67
24%
空闲
4
开发者 4
等级
(82)
项目
86
57%
仲裁
25
0% / 84%
逾期
19
22%
空闲
相似订单
take your time better make it for days and have good bot than never benefits both of us. Make the bot have zero errors and backtest it for a 2 year period
i need someone that can make me an EA really easy with the martingala system?, I am looking for something that doesn't exceed 5 trades for the martingale, I think I did it, but it only works for propfirms, So i need to develop it on ninja trader I have identified a very very simple strategy but it only works on propfirms, with only two propfirm accounts, i absolutely need account A and account, And they have to open
Hello, I want a simple bot for NinjaTrader8. I need a bot that operates automatically on Nasdaq (NQ/MNQ). Requirements: open buys and sells following a simple trend strategy, configurable stop loss and take profit, risk per trade of 1 to 2% of capital, if it loses 3% in a day, stop trading until the next day. Compatible with backtesting, delivery of the source code and the working bot in NinjaTrader 8. My initial
{ "strategy_name": "M5 EMA Scalper", "timeframe": "M5", "indicators": { "ema_fast": 20, "ema_slow": 50, "rsi": 14, "atr": 14 }, "entry_rules": { "buy": [ "EMA20 > EMA50", "Price closes above EMA20", "RSI > 55" ], "sell": [ "EMA20 < EMA50", "Price closes below EMA20", "RSI < 45" ] }, "risk_management": { "risk_per_trade": 1.0, "stop_loss_atr": 1.5, "take_profit_rr": 2.0

项目信息

预算
30+ USD
截止日期
 18 天