Forum

My computer rebooted and now a chinese trading account appeared in my mt5

Weirdest thing happened, I am on a macbook, i am using Paralells to run windows and mt5, i left the computer and it rebooted due to a kernel panic caused by my usb-c hub. When i opened mt5 again my demo accounts were not there anymore and a live chinese account appeared with "Login" "Password"

How to select any number of arrays?

Hi! When i need to select the close of the third candle away from current price i use: candle[2].close. In this case i need to write the [2], but what if i want to select the close of the last 100 candles? Do i need to select one by one or is there a better way to do that? Currently i am doing this

How to extend DRAW_ARROW to the right?

Hi! I am making a few adjustments in the Fractals indicator from MetaQuotes and i am trying to create more dots to the right, like a support and resistance line, i need 5 more dots to the right instead of just one but i am having a hard time doing it Can someone show me the way? I needed something

Cloud is taking too long to run and chargin too much

I've been trying to use the cloud network for backtest and it takes forever to do a one year test with only 3 variables that goes from 1 to 30 with 2 steps in a non 24/7 market. Sometimes it goes pretty fast and it charges me only 0.05cents and sometimes it takes several minutes to just start the

Cloud charging too much and doing no work at all

I've been trying to use the cloud network for backtest and it takes forever to do a one year test with only 3 variables that goes from 1 to 30 with 2 steps in a non 24/7 market. Sometimes it goes pretty fast and it charges me only 0.05cents and sometimes it takes several minutes to just start the

MQL5 cloud using only USA agents

I am trying to use MQL5 cloud and all videos i saw every time you use the cloud you use agents from Europe, Europe2 and USA. Why my mql is using only USA agents? All the others are ready but just USA is processing

How to write BETWEEN x and y in mql5 ?

Hi! I've been writing a code but its getting loong, i cant find a way to make it smaller, i need candle[1] to be different than all candles between [2] and [9] (just an example). How do i do that without having to write candle[1] != candle[2] &&... one by one? if (candle[ 1 ] != candle[ 2 ] &&

Difference between INPUT INT and INPUT DOUBLE

Hi!, So i am knew to mql5 and coding in general and i was not able to find a conclusive answer for my question. The thing is, when i use: input double takeprofit = 200; or input int takeprofit = 200; my backtest results returns the same, but when i use Fast genetic based algorithm the

Sometimes i get the INVALID PRICE error

I`ve been able to make my EA work, it should trade haramis, but it`s not trading all of them, sometimes i get the INVALID PRICE error Could someone help me please? The code places a buystop and a sellstop order at the high and low of the harami void OnTick () { CopyRates ( Symbol (), Period