Codes

Custom Fractals for MetaTrader 5

Have you ever asked yourself why it is not possible to customize fractals more? ... now it is

ZigZagExtremaOnArray for MetaTrader 5

The ZigZagExtremaOnArray is an mqh include file which contains the calculation function of MetaQuotes' Examples ZigZag, BUT you can use it on any buffer that contains curves or histograms, similarly to the MovingAverages.mqh from include. The idea was to get highs and lows of an indicator curve

Forum

Inconsistency in vectors and matrizes, workaround class and request to MQ

Hello Forum. There are these shiny new matrix and vector types that are basically classes just without the C in front. But then why can't I create an array of a matrizes to call the layers and weights of a neural net by index? Turns out you can: #define ARRAYSIZE 2 #define COLS 2 #define ROWS 3

TimeSeries values are lower than they should be

Hello forum, I was marking some prices with Arrow objects but they were not exactly drawn on the value that they should have had, rather consistently more like 30 points lower or so. When I hover over the arrow, the correct value is shown. What bothers me is that I have given the low price as input

Is it possible to call custom indicators through OOP without iCustom and CopyBuffer?

No, even if the custom indicator is called into an EA by means of OOP it will still produce a handle through iCustom and get the values with Copybuffer Maybe if you get the indicator buffer pointer but you have to use dll for that Yes, MQL OOP can do more than MQL functions can. You don't

CopyBuffer Error 4802 (Bug?)

Hello forum, there are some strange occurrences when I call indicators in EAs. In this test I call iMA and iRSI and Copy their buffers. The initialisation throws no error, buf when copying, I get -1 as CopyBuffer return value. The buffers are resized to the data_size that I set but they contain only

Why do input groups inhibit the calling of indicators in EA?

Hello people, there is a thing that is bugging me out (you know, like "BUG-ging"). I know it probably is a feature. I just wanted to ask why on gods green flat earth (not literally, just a quote) do input groups inhibit the calling of indicators...?!? Here are three test indicators that work pretty

Incomplete depiction of indicator system while grabbing some color buffer?!

Hello people, while working with some indicator system I experienced a misrepresentation of the values. More exactly: the custom indicator consists of 7 buffers being used for 4 plots. First I have a fast ma and a slow ma, which are being drawed normally as lines Secondly their data is copied to a

Does MQL4 handle out of range differently?

Are there principally differences between the way mql4 and mql5 handle out of range ? Or are there big principal differences in how the iHighest function of mql4 handles for example negative count values? Because iHighest of mql5 won't take those

Insecure about a freelance rule

Hello fellow developers, the Freelance rules state: "Fulfilling Orders outside of the Freelance service 1.... 2.Customers and Applicants cannot exchange contact data in any form before concluding a Work Agreement. Violators are banned from participating in the Freelance. 3.... 4.The Administration

ExpertRemove() removes expert only after end of OnTick (but shouldn't it immediately?!?)

int num_cycles = 4 ; int index_cycles = 0 ; double close_price = 0.0 ; // these are just some simple calculations to make it clear double sl_price = 0.0 ; // that after fulfilling the condition for expert removal double tp_price = 0.0 ; // the

matrix method Random not in documentation

Hello, just realised that in the machine learning example there is an initialisation method Random(a,b) void OnStart () { matrix mat1( 3 , 3 ); mat1.Random(- 1.0 , 1.0 ); Print (mat1); } that does not appear in the matrix Initialisation chapter of the reference and does not even appear