It's not that difficult to convert. It requires just a few changes since it's coded in a highly compatible manner. The only question is why would you need it? It's a simple MA/price cross indicator. There are hundreds indies like that, including for MT5.Hello, I'm new here. I need to convert this indicator, can anyone do this for me or give me a tip on how to convert mq4 to mq5?
One would need a source code file (.mq4) to convert an indicator from MT4 to MT5.Hi guys, I would like to know if anyone can convert this indicator for MT5.
This allows you to know the highest and lowest and take trades accordingly. This is a very useful indicator that has already helped a friend of mine make A LOT of money with it. Thanks in advance if anyone manages to convert it.
I will look into it sometimes in the future, but I have a rather long queue of projects to work on. Perhaps, I someone do it before that time.Hello admin my file mq4 to ex5 help me admin
OK admin thank you very much for your timeI will look into it sometimes in the future, but I have a rather long queue of projects to work on. Perhaps, I someone do it before that time.
//+------------------------------------------------------------------+ //| REV.mq4 | //| Copyright 2024, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2024, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict #property indicator_chart_window double Mercy; double Mercy1; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int OnInit() { Mercy = EMPTY_VALUE; Mercy1 = EMPTY_VALUE; return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { // No calculation needed for this custom indicator in OnCalculate return(rates_total); } //+------------------------------------------------------------------+ //| ChartEvent function | //+------------------------------------------------------------------+ void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { double Senkou_SpanA = iCustom(NULL, 0, "Ichimoku", 2, 1); double Senkou_SpanB = iCustom(NULL, 0, "Ichimoku", 3, 1); if (Senkou_SpanB != EMPTY_VALUE && Senkou_SpanA != EMPTY_VALUE) { if (Mercy != Senkou_SpanB || Mercy1 != Senkou_SpanA) // Check if values have changed { if (Senkou_SpanB > Senkou_SpanA) { Alert(Symbol() + " Blue cloud, Buy Cloud"); SendNotification(Symbol() + " Blue cloud, Buy Cloud"); } else if (Senkou_SpanB < Senkou_SpanA) { Alert(Symbol() + " Red cloud, Sell Cloud"); SendNotification(Symbol() + " Red cloud, Sell Cloud"); } Mercy = Senkou_SpanB; Mercy1 = Senkou_SpanA; } } }
It would help to see the MQL5 code you've got so far to check where the errors could be.MQL4://+------------------------------------------------------------------+ //| REV.mq4 | //| Copyright 2024, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2024, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict #property indicator_chart_window double Mercy; double Mercy1; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int OnInit() { Mercy = EMPTY_VALUE; Mercy1 = EMPTY_VALUE; return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { // No calculation needed for this custom indicator in OnCalculate return(rates_total); } //+------------------------------------------------------------------+ //| ChartEvent function | //+------------------------------------------------------------------+ void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { double Senkou_SpanA = iCustom(NULL, 0, "Ichimoku", 2, 1); double Senkou_SpanB = iCustom(NULL, 0, "Ichimoku", 3, 1); if (Senkou_SpanB != EMPTY_VALUE && Senkou_SpanA != EMPTY_VALUE) { if (Mercy != Senkou_SpanB || Mercy1 != Senkou_SpanA) // Check if values have changed { if (Senkou_SpanB > Senkou_SpanA) { Alert(Symbol() + " Blue cloud, Buy Cloud"); SendNotification(Symbol() + " Blue cloud, Buy Cloud"); } else if (Senkou_SpanB < Senkou_SpanA) { Alert(Symbol() + " Red cloud, Sell Cloud"); SendNotification(Symbol() + " Red cloud, Sell Cloud"); } Mercy = Senkou_SpanB; Mercy1 = Senkou_SpanA; } } }
This indicator reads the indicator values and sends alert, i have tried to convert this code to mt5 but it is not giving me the right values from the indicator
Perhaps, this indicator can do the same for you?Hi, there. I'm new in the forum. Could someone help convert this attached MT4 to MT5?
It helps me immediately notice the change price. Thank you in advance for your kind help.
This is great, I need that. Thank you so much, Enivid, for your kind help.Perhaps, this indicator can do the same for you?
https://www.earnforex.com/metatrader-indicators/Round-Levels/
Dear Enivid,This is great, I need that. Thank you so much, Enivid, for your kind help.
One thing of the Round-Levels indicator that I'd like you to help edit is disable the value (or price label) of the line on the vertical price. The price label of the indicator overlaps with the vertical price.