I am trying to connect Metatrader4 with Twilio (voice and messaging service), via DLL. The call goes something like this: MT4 expert script -> C++/CLI DLL -> C# DLL -> Twilio I have successfully tested both dlls using a (C#) console
The documentation for the Clear function states: " Deletes all of the array elements without memory release." So does that mean I will get memory leaks using this function? I am actually using CArrayDouble, derived from CArray. Thank you
According to https://docs.mql4.com/basis/types/classes union is a reserved word. However, when I try to use it, the compiler doesnt recognise it. I have build 1090
This is on MQL4. According to documentation, ChartOpen should return the new chart id . It doesnt. Therefore its a bug. Try this code in OnInit(): long newChartID; long curChartID;
Is there any way around this? As you know (or maybe not), trying to backtest an EA that uses the function FileOpenHistory generates the error: "function is not allowed in test mode "
Hello I have an array of arrays of ints. I want to access a particular sub-array but compiler says: "Invalid array access ". What am I doing wrong? Please Note: I do NOT want to access individual elements of the sub-array
Hello I am trying to introduce a "circuit breaker" in my code to suspend EA operation if it detects unsual activity over a defined period of time, e.g. the "flash crash" of GBPUSD on Oct 6, 2016, and June 23 when the Cable fell off a cliff. Obviously
Hello Im using this code snippet to calculate position size Can anyone spot anything wrong with this code, either logically or programmatically? Thanks! /* ========================================================================== | |
Hello Im trying to copy the value of a member of an array to another position in the same array. I get the error: '=' not allowed for objects with protected members or inheritance but I dont understand why I get this. Can someone help please? Code
Hello Is there a way to label an indicator line (ex. a Moving Average) in the same way that graphical objects placed on a chart can be labelled? What I want to do is detect if an object/indicator with a specific label exists on the chart and read its
During testing of an EA the terminal crashed. Normally I am able to go back into the terminal and continue where I stopped. This time the terminal does not run but crashes immediately after trying to restart. How do I fix this
Hello This code used to keep an offline chart updated. Now it doesnt work. Please note that it is running on a pre-600 build. So what is wrong with the code?: //+------------------------------------------------------------------+ int
Hello Does anyone have any experience of real trading (ie, real money) with an EA on rangebars? I need some perspective on what Im doing, whether its realistic or not. So far I have: 1. Obtained about 2 years worth of tickdata (tickstory). I have
From searching the forum, it seems that: a) the start() function of an EA runs in a new thread created by an incoming tick. If its still running when a new tick arrives, the new tick gets 'missed' by the EA b) custom indicators run in the main