algotrader01
algotrader01
algotrader01
Added topic BUG in MT5 build 3213 (latest beta version)
BUG description: When importing daily bars for custom system, the importer, I think, uses the OPEN values for the bar times as daily candles do have times of 00:00. It works with M1 and other timeframes. I had the latest release version and updated
algotrader01
Added topic AMD Ryzen 7 4980U vs. Intel i7 1185G7 for Backtesting
Hi! I am gonna buy a new laptop tomorrow (Microsoft Surface Laptop 4) and am a bit unsure which processor is primarily better for Backtesting (but not optimization)? Anyone here who has some technical background to be able to answer this. From Google
algotrader01
Added topic How to debug EA in live operation?
Hello, during the implementation of my EA it was quite easy to debug errors/warnings that happened during backtesting in the strategy tester . Now, during live operation some unexpected things happened - as expected ;-) - and I do not know how to
algotrader01
Added topic Question regarding getLastError()
Hello, quick one: If getLastError() for instance returns 4204 and I don't use ResetLastError() to set it to 0 again. When a new error is produced, for instance, 4020, getLastError() will then return 4020, right? Meaning that I do not have to rest the
algotrader01
Added topic Alternative android app for MT5 Accounts
Hello! Does anybody know an alternative android app where it is possible to log into an mt5 account and see the traded symbols? I am asking as the number of indicators are so limited... Thanks
algotrader01
Added topic Stop Loss send with order VERSUS Stop loss triggered/managed by code (virtual stop loss)
Hello, what do you think is the better way to manage your stop losses when you trade real stocks and NOT CFDs.  1. Send stop loss directly within your market order so that it lies at the broker/exchange side 2. Or manage stop loss within your
algotrader01
Added topic Indicator is drawn in foreground on live chart but in background in the strategy tester
Hi All, I use  ChartSetInteger ( 0 , CHART_FOREGROUND , true ); to have the candles (not filled with color) in the foreground. Then I add an indicator and then the algo is drawing stuff on the chart. In the strategy tester , the indicator is in
algotrader01
Added topic Order Types - Buy order with execution limit
Hello, I went through all MQL5 Order Types but I think neither of them does the job... Example: Current stock price is 80 USD. I presume the price will increase and thus want to open a BUY order when the price reaches 100 USD. However, I just want to
algotrader01
Added topic Difference between indicator price values and self calculated price values using the same formula
Hello Community, I observed a difference in the price values (OHLC) coming from the native Heiken Ashi indicator and the Heiken Ashi values I calculated myself using the exact same formula as used in the native MT5 Heiken Ashi indicator.  I
algotrader01
Added topic FileWriteStruct not working
Hello, ArrayPrint shows that array is filled correctly. File is saved but empty. If I use FileWrite (…) and add some strings to the file that works. So it must be specific to FileWriteStruct. Any ideas? void CTrend::fileWrite() {    struct
algotrader01
Added topic MathProbabilityDensityT()
hello community! I use the MathProbabilityDensityT() function to get the p-value from the t-statistic and the degrees of freedom such as: double t_val= 2.58804402 ; double DF= 8 ; Print("p-value: ", MathProbabilityDensityT(t_val,DF,false,err));
algotrader01
Added topic Linear Regression: Suitable for Forex Data? Difference between MQL5 Objects OBJ_REGRESSION and OBJ_STDDEVCHANNEL
Hello Community, I have two Questions: 1) Is linear regression actually suitable for Forex data? One assumption is that data must be randomly normally distributed and trending data isn't really. So, I assume, one have to transform the data first
algotrader01
Added topic List of Exchanges for MT5 up to date? https://www.metatrader5.com/en/stocks-ecns
hello folks! does anybody know wheather the following list of exchanges that offer MT5 support is up to date? Apart from that, is it possible to trade directly via an Exchange using MT5 or do you need a broker inbetween? Greets
algotrader01
Added topic Historical Depth of Market Data (for backtesting)
Merry Christmas everyone! is there any way to get Depth of Market using BookEvent handling to get data for backtesting ? I am not sure, but I doubt that the brokers do Keep / provide history data of the order book such as e.g. EURUSD history data
algotrader01
Added topic How to decompose tick volume into buy and sell ticks?
hey folks, i pretty much read all forum entries regarding CopyTicks, TICK_FLAG_*, TickCounter functions etc. but I still struggle to understand what is going on there. I also could not find any Website clearly explaining that. Here is my code so far
algotrader01
Added topic Genius way to sort a MqlRates array?
hey folks! is there any genius way to sort a MqlRates Array in ascending/descending sequence for a specific column such as .high or .low values? ArraySetAsSeries seems not to work with this special type of array. Best
algotrader01
Added topic Workaround Initalization Array
Hello, I am trying and goolging for 2 days now to somehow find a Workaround to initialize an Array with variables. This is what I would like to achieve: CTest test; double arr[]={test.val1, test.val2}; I tried different solutions such as using
algotrader01
Added topic Array initialization
Hello, am I missing something or is it not possible in a class to initialize an array as follows: In class_A: class_B b; double Arr[] = {b.value, ....}; What works is: In class_A: class_B b; double Arr[ 0 ] = b.value; Is there any work around there
algotrader01
Added topic Array with OBJ_* and OBJPROP_* possible?`
Good evening! is it possible to create an array of OBJ_* (such as OBJ_RECTANGLE , OBJ_TREND) or OBJPROP_* (such as OBJPROP_BACK, OBJPROP_COLOR)? I could not yet figure out what type the array has to be of, if it is possible at all. Best
algotrader01
Added topic Failure declaring static array
Hello, I want to declare static arrays to be used in different classes, so they should be initialized only once. I also want to directly assign values to the arrays. Putting these arrays into the public part of the class, I get an '=' - illegal
12