Luca De Andrea / Publications
Forum
iCustom buffer read EMPTY_VALUE 2147483647
Hi, this EA must read a custom indicator with iCustom, when I charge the EA for the first time it read correctly the Buffers, but after a couple of bars the same reading returns EMPTY_VALUE, as you can see from the Comment. See photos Pre (when EA is loaded) and Post (after a couple of new bars)
Auto optimizations bat file problem, terminal Shutdown
Hi, I am trying to automate the execution of multiple optimizations through the tips found in this video https://youtu.be/aUiLM3cang8?si=fwi1TgKOBkW1gcv3 I created a .bat file that opens the platform with files. ini where I have the settings for my optimization, the problem is that it closes the
[Invalid stops] error code 4756 on Position Modify
Hi, I'm running a code on XAUUSD, and I get this error. I don't know why it tries to modify a position with the same SL/TP level already assigned. Could someone help me to solve this? Thanks I know that is an error to use NormalizeDouble on prices, but I get the same error also with funcion like
Get Deal IN ticket from Deal OUT ticket
Hi, is there an easy way to get the ticket number of a Deal IN knowing a Deal OUT ticket? Given a Deal OUT ticket, how can I get a Deal IN ticket? Thanks
HistorySelect() slow down EA
Hi, I'm coding an EA that need to read the past trades, I'm using the function HistorySelect() to read them. But as I could see from other users on the forum, the HistorySelect() feature slows down the backtest and execution of the EA a lot. I would like to select a historical period from
Swap in Strategy Tester mode
Hello, Swap on Forex pairs is variable, and changes from day to day. In the MT5 Strategy Tester , is the historic Swap realtime and variable or is it performed with the fixed Swap read at backtest start? Thank you
Optimization stucked, agent over 100%
Can someone help me with this? I’m optimizing a new EA, everything begin correctly but then some Agents finish while others are stuck going over 100%, the overall optimization remains blocked. Optimization at 1:53 pm After 10 minutes not even a new pass executed
Missing Private Signal option
Hi, the Option "Private Signal only monitoring" is missing, does anybody know how to set/fix? Thanks
Calculate Average Position Holding Time
Hi, In the Tester Report we have a lot of useful statistics, including the Average Position Holding Time. Unfortunately, this parameter in not accessible with the Testing Statistics for the OnTester https://www.mql5.com/en/docs/constants/environment_state/statistics Does anyone have a formula or
Same Account, different MT5, different amount of real tick
Can someone help me with that? I'm testing the same EA, on the same Account of the same Broker, on two different MT5 (same hardware), I get different amount of real ticks. I thought that the real tick depended on the broker and the server but it seems not to be so. See attached image . Thanks