Luandre Ezra / Publications
Forum
Different method to write data to csv, is it valid?
Hi, I've found 2 method to write a data to csv. The first one is to do it like this, void OnTick () { FileOpen (...); FileWrite (...); FileClose (...); } The other method is like this, int OnInit () { FileOpen (...); } void OnTick () { FileWrite (...); } void
cannot find optimization graph
Hi, I have a hard time opening a optimization graph, I looked at this documentation and it says about " Open Optimization graph" but I cannot find where the optimization graph is. How can I find this "optimization graph" option
error message popped up because OnTradeTransaction slower than OnTick function
Hi I'm learning how to use OnTradeTransaction on partial close and trailing stop. I'm encounter a problem with how OnTradeTransaction handling a position that is closed due to price hit TP or SL level. I notice that when position is closed due to price hit SL or TP level OnTradeTransaction called
Invalid stops only in JPY currency pair
Having trouble to opening sell trade on all currency that the second currency is JPY (AUDJPY, NZDJPY, etc). I've check stop level I've check freeze level I've check calculated lot against min lot I've check stoploss price above open price and take profit price I've check take profit price below open
More than one condition for ternary operator inside file write function
Hi, I want to write a set file inside an EA. The condition is like this, if time frame is PERIOD_M15 using this set value for this variable if it's PERIOD_M5 using this set value, in code would be like this FileWrite (filehandle, ... StringFormat (
Run strategy tester in parallel
Is it possible to do optimization in parallel? If so, how do we manage cpu cores for each strategy tester
does core agent in 2 MT5 instances referring to the same core or not?
Hi, I have 2 Metatrader5 installed in my system. For each system I want to only use 1 core. When I try to disable all the other cores I notice that if I want to use one core it is only possible with "core 1" only. What I want is that for the first MT5 to use a single core (core 1) and the second MT5
Check if program already running from shellexecuteW
Hi, my EA will launch a program using ShellExecuteW and the program will create an XML file that the EA will copy it for further processing. Since the program could close itself due to error I launch the program for every 40 second. The arise between EA read the XML file and the countdown, there's a
Virtual hosting failed when run MT5 from terminal
Hi, I've experiencing a virtual hosting error with code 1003. I looked in the web and found nothing about virtual hosting error code. Anyone can explain to me about the virtual hosting error
failed to delete file and clear folder
Hi, I tried to delete a file and clear a cache from strategy tester and here's how I do it. void CStrategy::InitDeleteFile( string CurrentSymbol, TRADE_DIRECTION TradeDirection) { string tradeDirection; if (InpTradeDirection == LONG_ONLY) tradeDirection = "Long Trade" ; if