Forum

Access from MQ4/5 a dll function with: variable-argument lists

hi, Anyone knows if this is possible: to import an dll function which uses as argument a: variable-argument lists e.g. http://www.cplusplus.com/reference/clibrary/cstdio/vprintf/ int vprintf ( const char * format, va_list arg ); if so how would one do it? Thanks MJ

Access from MQ4 a dll function with: variable-argument lists

hi, Anyone knows if this is possible: to import an dll function which uses as argument a: variable-argument lists e.g. http://www.cplusplus.com/reference/clibrary/cstdio/vprintf/ int vprintf ( const char * format, va_list arg ); if so how would one do it? Thanks MJ

Correct Way: Check Soundfile exist

hi, I have a small question for coders: In MT4: What is the correct way to check if a particular sound file exist. PlaySound(SoundFileName); If the SoundFile does not exist it seems I get no error message - it's just skipped. Thanks a lot

IndicatorCounted() Twice all Bars?

Anyone knows why we get in the begin nearly all the time twice the whole amount of bars? https://docs.mql4.com/customind/IndicatorCounted I just copied part of the example code in the attached test indicator. ( test_2.mq4 ) The result is this. EXAMPLE1 M1 : 12:15:58 test EURUSD,M1: loaded

Question: MT4 ArrayCopySeries MODE_TIME

https://docs.mql4.com/array/ArrayCopySeries There is no real memory allocation for data array and nothing is copied. When such an array is accessed, the access is redirected. I have this NewBar() function Code: bool NewBar() { static datetime dt = 0; if (Time[0] != dt) { dt = Time[0]; return(true);

Can someone explain MT4 EMA calulations - why does it start from the first bar??

hi, I would like to understand why does MT4 draw an EMA line from the very First bar. I always thought like other MA's there must be some calculation points before the first EMA is finally calculated. Look at the pic below: I reduced on purpose the Bars in the Chart to 35 so to see all there is

Plot only last couple of Bars: right side in MainChart Window

hi, just a quick question. Does anyone have an indicator or some piece of code which allows/(shows how) to plot only a couple of bars on the right side of the main window. Thanks a lot. MJ

AnyoneKnows: How does iATR handle Sunday data

hi, does anyone know if I use the iATR on a daily bases: How does iATR handle the Sunday data. As Separate day, simple ignores Sunday, or adds the data to Monday? Thanks MJ

Best way: Check if Currency ir is offered by broker

hi, I have a small question. What is the best way to check if a particular Currency Pair is offered by the MT4 broker. Thanks a lot. ____________ Clarification after some replies : I mean how to check if a broker offers a particular pair in a customary indicator. Thanks

How to: Limit ZigZag Bars

hi, I have just a small question in case anyone knows. I would like to add to the attached ZigZagWithValue.mq4 indicator an option to only calculate/display a limited number of past ZigZag points. e.g from Current price 10 or 23 or xx... ZigZag points back. Any idea how to go about it. Thanks so