I got this simple code and i'd like to have it translate in mt5

MQL5 Experts

Specification

Hello,

How are you doing guys?

I got this simple code and i'd like to have it translate in mt5. can you? 

#HOTZONE-RSI: RSI-IV_percentile indicator

#developed by Chewie76 9-30-2020

### Global Variables ###

declare lower;

input length = 14;

input over_Bought2 = 80;

input over_Bought = 70;

input over_Sold = 30;

input over_Sold2 = 20;

input price = close;

input averageType = AverageType.WILDERS;

input showBreakoutSignals = yes;

input alertsOn = yes;

input ChartBubblesOn = yes;


### RSI ###

def NetChgAvg = MovingAverage(averageType, price - price[1], length);

def TotChgAvg = MovingAverage(averageType, AbsValue(price - price[1]), length);

def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;


plot RSI = 50 * (ChgRatio + 1);

plot MiddleLine = 50;

Middleline.SetDefaultColor(Color.YELLOW);

RSI.SetLineWeight(2);


plot OverSold = over_Sold;

plot OverBought = over_Bought;

plot UpSignal = if RSI crosses above OverSold then OverSold else Double.NaN;

plot DownSignal = if RSI crosses below OverBought then OverBought else Double.NaN;


AddCloud(Over_Bought2, OverBought, Color.dark_RED, Color.CURRENT);

AddCloud(OverSold, Over_Sold2, Color.dark_GREEN, Color.CURRENT);


UpSignal.SetHiding(!showBreakoutSignals);

DownSignal.SetHiding(!showBreakoutSignals);


RSI.DefineColor("OverBought", color.red);

RSI.DefineColor("Normal", GetColor(9));

RSI.DefineColor("OverSold", color.green);

RSI.AssignValueColor(if RSI > over_Bought then RSI.Color("OverBought") else if RSI < over_Sold then RSI.Color("OverSold") else RSI.Color("Normal"));

OverSold.SetDefaultColor(color.green);

OverBought.SetDefaultColor(color.red);

UpSignal.SetDefaultColor(Color.UPTICK);

UpSignal.SetPaintingStrategy(PaintingStrategy.ARROW_UP);

DownSignal.SetDefaultColor(Color.DOWNTICK);

DownSignal.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);


AddCloud(RSI, OverBought, Color.RED, Color.CURRENT);

AddCloud(OverSold, RSI, Color.GREEN, Color.CURRENT);


### IVPercentile ###

def vol = imp_volatility();

input TimePeriod = 252;


def data = if !isNaN(vol) then vol else vol[-1];

def hi = highest(data, TimePeriod);

def lo = lowest(data, TimePeriod);

plot Percentile = (data - lo) / (hi - lo) * 100;

def lowend = Percentile < 25;

def highend = Percentile > 50;


input over_Bought1 = 98;

input over_Sold1 = 2;


Percentile.DefineColor("OverBought", Color.red);

Percentile.DefineColor("Normal", color.magenta);

Percentile.DefineColor("OverSold", Color.GREEN);

Percentile.AssignValueColor(if Percentile > over_Bought1 then Percentile.color("OverBought") else if Percentile < over_Sold1 then Percentile.color("OverSold") else Percentile.color("Normal"));


AddCloud(percentile, rsi, Color.RED, Color.CURRENT);


### Squeeze Relationship (RSI and IV) ###

def RSIIV = if percentile - RSI >= 40 and RSI < 32 then 1 else 0;

plot HOT = if RSIIV then 50 else Double.nan;

HOT.SetPaintingStrategy(PaintingStrategy.POINTS);

HOT.SetLineWeight(4);

HOT.SetDefaultColor(Color.RED);


def RSIIV1 = if (percentile - RSI >= 30 and RSI > 32 and RSI < 40, 1, Double.NaN);

plot CAUTION = if RSIIV1 then 50 else Double.nan;

CAUTION.SetPaintingStrategy(PaintingStrategy.POINTS);

CAUTION.SetLineWeight(4);

CAUTION.SetDefaultColor(Color.YELLOW);


#Label


def bullish = if RSI > MiddleLine then 1 else 0;

def bearish = if RSI < MiddleLine then 1 else 0;


AddLabel(ChartBubblesOn, if bullish then "BULLISH" else if bearish then "BEARISH" else if RSI > 100 then "hi" else "low", if bullish then color.green else if bearish then color.red else color.black);



def condition1 = percentile - RSI >= 40 and RSI < 32;

def condition2 = percentile - RSI >= 30 and RSI > 32 and RSI < 40;


# Alert

Alert(alertsOn and condition1, "HOT", Alert.BAR, Sound.Chimes);

Alert(alertsOn and condition2, "CAUTION", Alert.BAR, Sound.bell);

Responded

1
Developer 1
Rating
(57)
Projects
72
22%
Arbitration
13
46% / 15%
Overdue
5
7%
Free
2
Developer 2
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(9)
Projects
8
0%
Arbitration
9
0% / 67%
Overdue
3
38%
Free
Similar orders
Hello, I am looking for a skilled developer to create an Expert Advisor (EA) for MT4. The EA should close an open trade automatically when a Golden or Death Cross occurs in the Alligator Indicator. Please let me know if you have experience with similar projects and how we can discuss the details further
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
I need someone to build an EA for me based on Trend and Pivot levels from custom Pivot and Trend indicators. I will provide more information to the selected programmer
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details
Hedging MT4 EA 50+ USD
Overview of the Strategy The main strategy will be hedging trades of similar lot sizes on EUR/USD (or any other pair). The idea is to start with two trades, Buy and Sell of 0.1 lots each. The positive trade will close at profit at a certain X distance set in parameters or at any SR level defined by horizontal lines manually. Blue line for resistance and red line for support. At the same time, upon closure of profit
Utilizing the MQL5 MetaEditor Wizard, I created an Expert Advisor, having the following Signal indicators: I was able to optimize the EA and reached a backtest with the following specifications: I was able to reach a profit level of 30K, as indicated below. However, the Bot is not without faults and following the backtest, I started a forward test with real live data and the results were not so great. The EA took a
We operate forex by receiving signals and opening orders expecting a TP of XX pips (in our scenario we are going to use XX=20) Whenever the order is open, we expect the market to move in our favor but if it moves against us we make a calculation of a next order to offset the losses of the original order and still make the XX (20 pips). That should happen after an specified number of pips against. (the GAP variable)
Hello I am looking for a developer to create an 50% retracement Indicator of the previous candle . So once a candle close the Indicator is supposed to take the full candle size from high to low and make a 61% and 50% level on that candle and I would like the candle to show until the next previous candle is done creating. After this I would look to create an ea with it possibly
Job Description: I am looking for an expert to develop a trading bot for MetaTrader 5 that will execute trades based on buy and sell signals from a custom indicator on TradingView. The indicator works on Heikin Ashi candles, and the bot should follow these detailed requirements: TradingView Alerts: Configure TradingView to send buy/sell signals via webhooks when the custom indicator prints a buy or sell signal. The

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
from 3 to 4 day(s)