Forum

Issue reading custom indicator via iCustom in EA (MT5)

Hi Everyone, I hope you are all fine. I am having an issue reading from a custom indicator I just made and for the life of me, I can't figure it out. The indicator I am trying to read from is the following. #property copyright "" #property link "" #property description "" #property version

failed cancel order due to Invalid stops? (solved)

Hi everyone, I hope you are fine. I am having a hard time with the following error. I get an error cancelling an already placed pending order due to invalid stops.... 2016.05.12 06:00:00 failed cancel order #226 sell stop 1.20 EURUSD at 1.14209 sl: 1.14462 tp: 1.13653 [Invalid stops] Why am I

[Tester Problem] Balance Graph not updating in visual tester

Hi Everyone! I hope you are fine. I have a weird situation since the last Mt4 update. When a visual test is launched, the balance/equity graph and the journal stays silent until the test is stopped, if using speeds 31 or 32. Is there a way to make it work has usual? For instance, this is during the

Obtain profit from last closed deal (closed)

Good morning, I am building a function to know if the last closed deal by an expert advisor was profitable. So I am iterating deals until finding one that matches the magic number, type and deal comment desired. However, I am having trouble using the HistorySelect() function, as I don't want to use

Cannot set milisecond timer?

Hi Everyone! I hope you are fine. I have a problem -just sometimes-. I am creating a timer handler like this... EventSetMillisecondTimer ( 50 ); And works fine. But some users experience this error: Cannot set milisecond timer(50) and the program fails. Am I doing something wrong? Thanks in advance

Question about POINT_VALUE/TICK_VALUE in CFDs (solved)

Hi everyone! I hope you are fine. I have a dumb question. I have problems auto-calculating lotsizes for CFDS -only on some brokers-. On *some* cfds, the tick value defined by the broker is wrong, or at least I think it is. For example, for the symbol SP500 at GlobalPrime.... MarketInfo ( Symbol ()

iBarShift() in MQL5?

Good morning, I am trying to read the close price for a given past time. In mql4 I used the iBarShift() function which is not in mql5. Has anyone solved this problem? Thanks in advance. -A

[CopyBuffer] Requested data not found ERR 4806

Good afternoon, I am having trouble copying information from one buffer to an EA, having a recurrent 4806 error, which stands for requested data not found. The value on the buffer is correctly assigned during the indicator execution, however I don't seem to be able to read it from the EA. The handle

[Deals] How to get only opened deals?

Good morning, I am having a hard time iterating deals from an EA. I would like to get only those deals which are currently open (several symbols, not related to one position). Is there an easy way to do so? Iterating all deals does not seem efficient. Thanks in advance

[Cloud] How can I select an agent? (closed)

Good morning, I have been trying to run an optimization on the cloud without success. I have registered and have credits on my account, but for some reason I can't select any agent. I can't enable or select any cloud agent. Could you please point me in the right direction? Thanks