Alon D
Alon D
Freelancer programmer at
Friends 1
Alon D
Added topic I believe OrderCalcMargin is bugged
Hello. I'm using latest MT5 terminal. (5.0.0 build 4620) I'm trying to use this function with strategy tester. Symbol: BTCUSD Account size: 10000 Leverage: 1:1 Here's an example output when I'm trying to debug it inside Trade\AccountInfo.mqh (the
Alon D
Added topic System hangs when optimizing with agents
Hello. I am running the optimizer on my laptop and I have agents linked to my PC. I just bought a new motherboard and cpu with 12 cores. When I start optimization, Windows on my pc starts to hang even when I only use 6 agents. The cpu is around
Alon D
Added topic FileOpen with Strategy Tester
Hello. I have code that opens a file using  int file_handle = FileOpen (file_name, FILE_READ | FILE_COMMON | FILE_TXT ); ...... FileClose(file_handle); If I run it with optimization disabled and visual mode disabled, it runs fine the first time
Alon D
Added topic Strategy tester: Reading a local file when using agents
Hi. My EA is reading a json file which I've placed in the common folder (using  FILE_COMMON flag in FileOpen). When optimizing it works fine, but once I add agents on my other PC, it can't find the file even though I've placed it in the common
Alon D
Added topic Strategy tester and many "INIT_PARAMETERS_INCORRECT" bug
Hello. I have on my onInit many  return(INIT_PARAMETERS_INCORRECT); statements to exclude any combination that doesn't make sense and save passes. That still leaves tens of thousands of possible passes if not more. However the genetic based
Alon D
Added topic Needed option to review seller on this website
Hello. I bought an EA a while back. It doesn't work well, And now the seller took it off the market and I can't even write a review while he keeps selling his other EAs. There need to be an option to write a general review on the seller for anyone
Alon D
Added topic Signals page - Main chart calculation
Hello. Does the percentage shown include deposits made throughout the signal
Alon D
Added topic Equity loss maximal
Hello. I'm looking for a way to find an EA's Equity Loss Maximal figure. And I don't mean the existing Equity drawdown maximal because I only want to know what was the maximum amount a position has dropped with respect to it's entry price, not to
Alon D
Added topic EA in Strategy tester placing positions that I don't have funds for...
I'm testing an EA. I noticed it sometimes opens positions (in strategy tester) with a volume much greater than my balance + leverage. How is that possible? I this screenshot I have 972 EUR balance and I'm using 1:30 leverage. It opened a volume of
Alon D
Added topic MetaEditor - debugging input params
Hello. When I start debugging with historical data from MetaEditor, it changes my EA's input parameters and I can't figure out where can I set those? These are not the defaults and they are not what I set in strategy tester before starting the
Alon D
Added topic Strategy tester - bug report
Couldn't find a bug report contact so I'll put this here. There's a small bug in the strategy tester results that took me a while to figure out. If I do backtest + forward test, and in the backtest I filtered out some options, lets say
Alon D
Added topic Memory usage by an indicator
Hello, I have a function using the iATR method.  My function is being called once per bar onTick(); I noticed when backtesting that my RAM gets filled up within a few seconds and my Windows freezes. If I comment-out the last line
Alon D
Added topic Strategy tester results don't match
Hi I ran the tester with the fast genetic algorithm with forward testing. Then I picked a specific result, put the exact parameters into my bot, and ran it in visual mode. I got very different results in both backtest and forward test visual tests
Alon D
Added topic Strategy tester - choosing the right result
I have the following results table. I'm not sure which one to prefer. My testing was done on a 500 euros account. The first row has the most profit in forward testing, but the backtest is at a small loss. The third raw has profit in both forward and
Alon D
Added topic Strategy tester cache
In the documentation, it's said that MT5 caches optimization results for each testing parameters such as period in order to not repeat them. https://www.metatrader5.com/en/terminal/help/algotrading/strategy_optimization What if my "to date" is
Alon D
Added topic Detect volatility
I would like my EA to have separate TP and SL for when it's volatile and when it's calm. How should I detect it? (I don't want to use an indicator) Will taking the average size of all the bars in the last week be enough? Anything above it would be
Alon D
Added topic Using global variables as input parameters
I am trying to follow this article https://www.mql5.com/en/articles/4917 He is setting the optimized parameters as global variables. But how do I use them in my EA? I can't set input parameters to global variables because they require a constant. And
Alon D
Added topic Optimizing strategies
Has there been any study about the best strategies to optimize? Right now I'm asking myself if it's best to test over a long period of time (a few months) or to re-test once a day over a short period of a couple of weeks. Testing over a short period
Alon D
Added topic Creating links between inputs for strategy tester
Hello Is it possible to link several inputs before testing? For example, if I have 1 boolean input and 1 double input, and when the boolean is set to false, I don't want the strategy tester to bother testing all the range of the double input because
Alon D
Added topic Question about margin
Hello, I opened a demo account with a 1:1 leverage with a certain broker. I am trading Gold (XAUUSD), so contract size is 100 I have 50,000 EUR in the account. And I opened a BUY with trade size of 0.1 The current price was 1870.00 on MT5 I see that
12