Forum

Server constantly restarting

Hi Folks! Hope everyone great! Just a quick question/confusion!! Would anyone know why a 30GB Ram,, 800GB SSD server running a 210KB Expert Advisor(EA) on 13 charts keep constantly and consistently restarting? And how to fix it? Already ran memory diagnosis,,, and "No memory issues detected"

converting bollinger code from MT4 to MT5!

Hi Community! Hope all's well!! Just slightly struggling with converting a piece of code( Bollinger Band and MA of the same) from back in the day in MQL4 to MQL5. Will be highly appreciated. Thanks much!! RefreshRates(); // GETTING THE AMOUNT OF ALL BARS OF THE CHART int IBARSA = iBars ( NULL

Bollinger iBands upper, middle, lower

Hey Folks,,, first off much appreciation for this community. Just slightly struggling with bollinger band code conversion from mt4 to mt5 and could really use some help sorting this issue! Will be highly appreciated! Code below, // GETTING THE AMOUNT OF ALL BARS OF THE CHART int IBARSA =

Moving average issue

Hi great Folks!!! Hope all is well. It seems like automation and coding just never ends as errors ever present. Kindly assist with fixing an issue with the moving average. Code is written to read exponential moving average at current and at a prior shifted value to determine bullish or bearish trend

Hour()

Hi Everyone,, hope all's well. Been working on moving code from mql4 to mql5 but having a slight issue specifying for when variables are to be reverted back to false at the start of the day. Here's the mql4 code to revert bool variables CAN_BUY and CAN_SELL back to false,, if (Hour() < 1 ) {

Convert money management ea from mql4 to mql5.

Hi Folks! Hope well. I have a money management ea that has been running on MQL4 but now migrating to MQL5. The code is very simple, 16KB, about 300 lines,,, would like to have it converted as is to workable on MT5 platform

zero divide error

Hey Folks!! Hope everyone is doing just great!! Kindly assist in resolving a " zero divide error" that keeps coming up at the code below; double change; double PRI_MA; double CUR_MA; PRI_MA=iMA(NULL,60,60,0,MODE_SMA,PRICE_CLOSE,60); CUR_MA=iMA(NULL,60,60,0,MODE_SMA,PRICE_CLOSE,0);

What errors here

Hi Folks. What could be wrong with this code? if ( Hour () > 23 && Hour () < 24 ) { if ( Minute ()> 1 && Minute ()< 29 && pipe_red== true ) { pipe_red= false ; } if ( Minute () > 31 && Minute ()< 59 && pipe_red== false ) { } } The code within will not execute. Thanks yo'all

RETURN(0) OR JUST RETURN;

Hi Everyone! Hope all's well with all! Which is the appropriate return statement to use(return(0) or just return;,,,,,and is there a difference) just to exit the "if" loop without exiting the entire program? All feedback highly appreciated. Thanks yo'all

Arithmetic operation within FOR loop

Hi Everyone! Just seeking very quick help with a piece of code that i suspect is the source of errors in my program. Is it OK to use an arithmetic operation within "for" loop as a condition??? Foe example: for(int i=k; i<k+21; i++) { statements. } where "k" had been predefined. Any help will be