@everjn17 just a guess: use multiple parallel "Set current market" blocks, each containing a part of your list?
Posts made by roar
-
RE: [HELP] Multipair Stock Trading in MT4posted in Questions & Answers
-
RE: making a trade immediately in the first second after running EAposted in Questions & Answers
@rajab you are asking your EA to trade if CCI is above 65, and also trade if CCI is below 65.
Of course it will trade immediately, one of the conditions is always true.
-
RE: Question/Problem with trend-lines and different time-frames. Help appreciatedposted in Questions & Answers
@rnonnekes81 Do you draw the weekly trendline manually or does your EA handle it?
iBarShift converts datetime information into candle ID for any TF, maybe it is a part of a solution here..
https://docs.mql4.com/series/ibarshift -
RE: need advice on using variables to select buffers of a custom indicator...posted in Questions & Answers
Hi @zackry!
I never use custom indicators, so don't really know their syntax limitations here..I see you increase the buffer index in a loop, maybe the number increases all the way to a non-existing index and this causes the error?
-
RE: help with my EA pleaseposted in Questions & Answers
@abderrahman I hope you succeed, however unlikely it is

Please consider the short backtest period as well. I would bet any amount of money that this same EA will erase the account if tested on EURUSD from 2019.01.01 to today. -
RE: help with my EA pleaseposted in Questions & Answers
@abderrahman this is impossible. A straight line balance always means that the system works only on history data, not in future.
You cant optimize this on other pairs, you cant trade this, not even on EURUSD. Its best to move on and find a more realistic strategy, a strategy that doesn't require 100% winning trades.You probably wont believe me, I'm just trying to save you some time..
-
RE: Tried and proven strategy - can it be EA’d?posted in Questions & Answers
@zereleth you have to set your desired input ranges in the Expert properties.
For example, moving average could have start=3 step=5 stop=100,
and then mt4 will calculate results on ma periods 3, 8, 13, 18, ... 98, 100. -
RE: Tried and proven strategy - can it be EA’d?posted in Questions & Answers
@zereleth its mt5 here, but mt4 has the option hidden in "Expert properties" if I remember correctly...
Genetic algorithm is a "smart" way to do the optimization, it learns to skip some probably bad input combinations to speed up the process.
-
RE: Daily target limit, I need helpposted in Questions & Answers
@luckybest
Once per day: write current equity to a variable
Before trading: condition: current equity < variable *1.05 -
RE: When EA reach this point, I want the expert to close all trades and start again.posted in Questions & Answers
@khalids222 I dont think this is a margin problem, your broker just doesnt allow more than 148 orders. Its the orders count, not their lot size.
-
RE: Backtestingposted in Questions & Answers
That time is just an estimation based on this formula:
(runtime * total passes) / completed passes
Each input set will produce different amount of trades, and thus there is some variance in the pass times.
You can also modify your CPU load from the Agents tab -
RE: Change icon EA?!posted in Questions & Answers
@kidoppa yes its possible, but not in fxdreema. Put your .ico file to .../MQL5/Images folder, then add this line to the source code:
#property icon path_to_icon_file
https://www.mql5.com/en/forum/10289 -
RE: Issue backtesting two pairs on MT5posted in Bug Reports
@ambrogio tested in netting mode, and it works ok.. Maybe it is confusing the modes, calculating average price of all those buys. I dont use that block myself
-
RE: Various Signal requestposted in Questions & Answers
@pippusher618 sure thats possible, but I'm not interested. You can search for appropriate custom indicator or hire a freelancer to do it for you
-
RE: I have inconsistency in my ea when changing the date???posted in Questions & Answers
@alfredinho50 well I know literally nothing about your strategy, but personally I dont limit the trades with no trade block.
-
RE: I have inconsistency in my ea when changing the date???posted in Questions & Answers
If you have a "no trade" block in your project, changing the test period will result in completely different sequence.
-
RE: Equity into variableposted in Questions & Answers
@stantonhitz yeah its weird at first but actually very handy - you can test different setups without destroying the blocks, just remove connections.
-
RE: Equity into variableposted in Questions & Answers
fxdreema blocks dont activate if they dont have connections.
So attach a pass-block to the modify variables
-
RE: Avoid stack overflowposted in Questions & Answers
@seb-0 if the EA uses too much memory, the error will say not enough memory. So I think the stack overflow is an actual logic error in your system
