Thank you very much guys for your help. I solved it with this new point of view!
Latest posts made by afgmarkets
-
RE: Time as a STRING variable - wrong resultposted in Questions & Answers
-
Time as a STRING variable - wrong resultposted in Questions & Answers
Hello people,
I´m trying to get the lowest price between two different time values. To do so, I'm adding the candle time value in a string variable this way.
The problem is that the value returned in the string variable is something different from the expected. I used the Comment block to plot both to show you:

Do you know what is happening? Maybe something that I'm missing? Maybe a bug?
Thank you very much for your help!
-
Minimum Volume Infoposted in Questions & Answers
Hi people!
In order to get a proper partial closing and avoid the "Invalid Volume" log, I would like to calculate this partial volume with a variable. Do you know how can I get the minimum volume value on the EA? Maybe on Market Properties? I could do it with a constant (introducing 0.01 for Forex and 0.1 for indexes, e.g.) but I some of you know it...
Thank you very much!
-
Market is closed (10018)posted in Questions & Answers
Hi people!
I'm having a problem during an EA backtesting on MT5. After a few seconds a get the same log looped on the journal tab:
2020.06.02 10:04:12.686 Core 1 2014.08.05 00:00:00 failed market buy 0.83 EURUSD_Tickstory, close #452 sell 0.83 EURUSD_Tickstory 1.34125 [Market closed]
2020.06.02 10:04:12.686 Core 1 2014.08.05 00:00:00 Closing position/trade error: Market is closed (10018)I only get this using imported data (not from the broker), I´ve been trying with time filters and adding a hours shift on the data but it doesn't help. Maybe is an off-topic question, but any information would be helpful.
Thank you.
-
RE: Help With Error Market is Closed During Backtest MT5posted in Questions & Answers
@everjn17 Hi! did you find out a solution? I have the same problem...
Thank you!
-
RE: Partial close (50%) for odd number lot sizeposted in Questions & Answers
@eklonsousa Hello! And where do you get the lot step value? Maybe on Markes Properties? Thank you!
-
RE: [Invalid Volume] error when using close partially blockposted in Questions & Answers
Hello people,
I´m having the same problem. If I test the EA on a demo account the partial closing is automatically rounded up, but not on the backtest. Do you know a way to round it up directly fron the EA?
Thank you.
-
To take drawn objects by the EA as a condition.posted in Questions & Answers
Hello community!
I`m working on a EA that draws arrows as a suggestion of a reversal movement, up or down depending if the situation is bullish or bearish. I would like to take that appearance of the arrow, in a certain period of candles back, as one of the conditions for the EA to buy or sell.
I´m trying with the block "indicator is visible" but I´m really lost. Do you know how to do it? Any help is welcome.
Thank you!