Mikołaj Gogola / Publications
Forum
Race condition in tester?
Hi, I did simple test and the result was very weird. double myCurrent[ 100 ]; void OnTick () { double dt = 12345 ; if ( Open[ 1 ] != dt ) { static int counter = 0 ; dt = Open[ 1 ]; if ( counter < 100 ) { myCurrent[counter] = Open[ 0 ]; } ++counter; } }
How to edit already calculated buffers in the indicator?
Hi, I suppose my question is trivial, but I am strugglin with this. I want to draw straight lines on the chart when it hits specific hour and I want them to be longer than one bar. Lets say I have 1H Chart and when it is 12 o'clock I want lines drawn above 8:00, 9:00, 10:00 and 11:00 (I mean
How to track changes in grid height?
I noticed that the pips range on the right side of the chart keeps changing from time to time. Is it possible to track it somehow inside my EA code? Also what is the reason behind it? Why does it change
Why ticks of RSI indicator have different timeframe length?
Hi, I noticed this with some other indicators too. They seem to have variable length between ticks. Lines drawn on the chart are of different length with respect to timeframe. What is the reason behind it? How can I measure it
Where can I read the code of basic MQL functions?
Is it possible to access the source code of basic MQL functions like iMA()
Can growth of the output file slow down EA on tester?
I made data collecting EA. It simply runs on specified period of time and saves every tick to a file as binary using FileWriteArray(). I can judge with my eyes that the speed is decreasing with time elapse. The file is opened at the beggining inside Init() function and closed in Deinit() so I am not
Does iCustom slow down Strategy Tester and cause problems with Graph tab?
Is it possible that iCustom function calls are slowing down my Strategy Tester ? Is it somehow possible to prevent iCustom from drawing or something like this? I just want to grab values from indicator buffers. I have also weird issue with Strategy Tester Graph tab. Graph tab is empty while Tester
Index buffers
Are numbers of index buffers created with SetIndexBuffer() same for whole Chart? For example if I have Indicator 1 and Indicator 2 and they both set index buffer 17 they both share this same memory
Multiple candle sizes in EA.
Hi, Is it possible for EA to access arrays of candles with different size than current Chart size? I want my EA to perform some calculations on 1-minute candles but other on 1-hour candles. Can it be done
Is it possible to define enum of double type?
I would like to have enum with double values. I tried C++ approach but got errors. Is it possible to define type of enum elements in MQL4