HarriMQL5
HarriMQL5
HarriMQL5
Added topic Twilio causes MT4 crash
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
HarriMQL5
Added topic CArray and Clear function
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
HarriMQL5
Added topic Union reserved word missing???
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
HarriMQL5
Added topic ChartOpen does not return chart id
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;
HarriMQL5
Added topic struct member undefined error
I get this error on the following code: class ConstantBar : public CObject {      private :             ConstantBar( int pCBType, int pRange, int pArraySize, double
HarriMQL5
Added topic FileOpenHistory and strategy tester
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 "
HarriMQL5
Added topic Indicator display different in strategy tester visual mode
Hello I have this indicator: int OnCalculate ( const int rates_total,                  const int prev_calculated
HarriMQL5
Added topic Array of arrays access
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
HarriMQL5
Added topic How fast does the market move?
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
HarriMQL5
Added topic Calculating position size
Hello Im using this code snippet to calculate position size Can anyone spot anything wrong with this code, either logically or programmatically? Thanks! /* ========================================================================== | |  
HarriMQL5
Added topic Cannot write to file
Hello Im trying to create a .csv and .hst file. Everything seems to run fine, but I can see my files in the directory! Can you please help
HarriMQL5
Added topic Set array member value inside class function?
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
HarriMQL5
Added topic data structures in new MQL4
Has anyone implemented Hashlists or Sets in the new MQL4? Traditional data structures - would love tomsee the code
HarriMQL5
Added topic Label indicator like an object?
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
HarriMQL5
Added topic How to reset the terminal after a crash?
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
HarriMQL5
Added topic Specifying start date to debugger
Is there any way to specify the start dateto the debugger in the same way yoiu do to StrategyTester? Would be nice
HarriMQL5
Added topic What does "ambigouos call to overloaded function with same parameters" mean, in english?
Pre-600 code generating this error on compilation. What doesnt the new MQL4 compiler not like
HarriMQL5
Added topic Update to offline chart not working
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
HarriMQL5
Added topic Rangebar real trading experience?
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
HarriMQL5
Added topic Threads, speed, ticks and global variables
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
12