Translate a script from Thinkscript used on ThinkorSwim platform to MQL5

Specification

so I have this indicator in ThinkScript but I need to convert it to MQL5 im not sure how to write script and call that script function into an indicator function to plot it, Ive done it before in EasyLanguage on Tradestaion but their coding is much simpler than MQL5..... input length = 21;
input lengthG = 8;
input beta = 8; script g {
    input length  = 4;
    input betaDev =  2;
    input data = close;
    def w = (2 * Double.Pi / length);
    def beta = (1 - Cos(w)) / (Power(1.414, 2.0 / betaDev) - 1 );
    def alpha = (-beta + Sqrt(beta * beta + 2 * beta));
    def G = Power(alpha, 4) * data + 
                 4 * (1 – alpha) * G[1] – 6 * Power( 1 - alpha, 2 ) * G[2] + 
                 4 * Power( 1 - alpha, 3 ) * G[3] - Power( 1 - alpha, 4 ) * G[4];
    plot Line = G;
} def val = g(length = lengthG, betaDev = beta, Data = close);
plot Zscore = (close - Average(val, length)) / StDev(val, length); 
plot smoothed = g(data = Zscore);

Responded

1
Developer 1
Rating
(590)
Projects
789
71%
Arbitration
9
33% / 33%
Overdue
22
3%
Free
Published: 8 codes
2
Developer 2
Rating
(516)
Projects
784
63%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
Published: 1 code
3
Developer 3
Rating
(833)
Projects
1420
72%
Arbitration
116
28% / 47%
Overdue
351
25%
Loaded
Published: 3 articles
4
Developer 4
Rating
(12)
Projects
12
25%
Arbitration
0
Overdue
1
8%
Free
5
Developer 5
Rating
(7)
Projects
10
60%
Arbitration
4
0% / 75%
Overdue
3
30%
Free
Published: 49 articles, 5 codes
6
Developer 6
Rating
(74)
Projects
81
21%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
(41)
Projects
46
28%
Arbitration
9
0% / 100%
Overdue
7
15%
Free
8
Developer 8
Rating
(559)
Projects
838
73%
Arbitration
15
53% / 13%
Overdue
193
23%
Working
Similar orders
Fast 1 30 - 150 USD
Job Title: MT5 Expert Advisor for ICT Strategy with Fair Value Gap and Risk Management Job Description: I’m looking for a skilled MQL5 developer to create an MT5 Expert Advisor (EA) based on an ICT-style strategy that trades XAUUSD using multi-timeframe market structure and Fair Value Gap detection. Key features: 4H market direction using BOS/CHOCH 2H/1H detection of FVGs (gap between candle 1’s high and candle 3’s
The ea should include indicators and should be able to spot entries on a 1 minute /15 minutes time frame, it has to scalp and automatically add take profit and stop loss the bot must trade small accounts from 12USD
I am looking for an experienced MQL4 developer to create a rebate farming Expert Advisor (EA) designed to consistently generate a minimum of 2 lots per day on a $500 account with low drawdown and safe logic . The primary goal is volume generation , not profitability — the EA should be optimized to maximize trade count or lot turnover for rebate/cashback purposes, while maintaining account safety. 🧠 Requirements
- Develop and refine high-performance Forex indicators using advanced technical analysis and programming skills - Collaborate with our trading team to identify market trends and create strategies - Backtest and optimize indicators to ensure exceptional performance - Stay up-to-date with market developments and adapt indicators accordingly - Strong programming skills (e.g., MQL, Python, C++) - Experience with Forex
Hello! Can I co-opy you trades? Exact same? Let me tell you I want to copy your trades from your live trading account to my live trading account, simple as that! Before I put you on a live I want demo copiyng to see how you perform! Thank you! Kind Regards /Alpha Momentum
Hello! Are you familiar with binary options trading? Happen to be an expert on it or have a bot that can give very accurate buy or sell answers? Then I’m very interested in you. I am looking to hire an expert in this specific field or buy a bot that can do the ”heavy” lifting. All I need is a yes/no (buy/sell) answer that should be accurate at most times. Or hire you for the job, my money, your job. Before I hire you
Hello! I need an EA that can pass and/or trade prop firm accounts. The EA must be made specifically for passing or managing prop firm accounts. Low drawdown. Consistent and reliable. Backtested. I would like to purchase an already made bot that you are using yourself for prop firms and have been running live for some while on prop firms but also accepting custom made from scratch. Think you have something for me
Indicator List : - Single Moving Average Time Management Folder : - Trade By Days ( Monday - Sunday ) True/False or On/Off . - Move Trade by session Input parameters in this folder . Additional Parameters to be added to the Panel : T1 P = ATR V, Nil T5 P = ATR V, Nil T2 P = ATR V
** please mention , who are you and where you are from when you apply . Please Explain the Threshold Level Integration with/to price for Trend Confirmation . By the panel integrate the inputs accordingly (most of them are integrated) . Time Management Folder : - Trade By Days ( Monday - Sunday ) True/False or On/Off . - Move Trade by session Input
** please mention , who are you and where you are from when you apply . Please Explain the Threshold Level Integration with/to price for Trend Confirmation . By the panel integrate the inputs accordingly (most of them are integrated) . Time Management Folder : - Trade By Days ( Monday - Sunday ) True/False or On/Off . - Move Trade by session Input

Project information

Budget
31 - 200 USD
For the developer
27.9 - 180 USD