Hello, I was wondering if anyone has experienced the problem above. My code base is 5650 lines long, split into 2 modules and an indicator. When I run the code through the debugger, there's one DebugBreak() and then I run an ExpertRemove() on the
Hello, I'm having difficulties using this library and I need someone to point me in the right direction. I'm trying to create an array full of CCandle references, print the contents, change one of the values and then print the contents again to
Hello, I'm preparing to call a DLL within MT4 and I've come across one construct which I can't get to work. The original C++ code is here: typedef void (TA_CC * TrialCallbackType)(uint32_t, void *); TURBOACTIVATE_API HRESULT TA_CC
Hello, I want to be able to draw a horizontal line between position 0 and position -1. I can do now between position 1 and position 0, thanks to the help in this post: https://www.mql5.com/en/forum/437621 but 0 to -1 doesn't work. I'd
Hello, Normally, I use the following code to perform my looping within an indicator: int lookback = 15 ; int limit = Bars - 1 - MathMax (lookback, prev_calculated); for ( int i = limit; i >= 0 &&
Hello, I've like to create an indicator which uses a sliding window and displays some horizontal lines on the screen from period - 1440 to period, where period is 3/4 is the last candle of the screen displayed candles but I know know how I will code
Hello, I have the following code and when I compile it I'm getting "Wrong parameters count" compilation error but I can't see why. Could some one tell me where I'm going wrong please
Hello, One thing I'd like to be able to do is change the order of the indicators in the data window at will, rather than having to unload and then load them in the correct order. Would you consider changing this in a future release? Thanks
Hello, Could someone tell me how to fix this code please? It's exiting with an invalid pointer after the Update operation. #include <Arrays/ArrayObj.mqh> //+------------------------------------------------------------------+
I'm trying access a CObject* of a CArrayObj array but I can't seem to put it back into the structure that was originally placed there. My complex type is: class myobj_t : public CObject { public
Hello, How do I write a copy constructor for a public class (structure substitute) please? For sake of an example lets say the public class is as below: class struct : public CObject { public
Hello, I'm trying to add a series of structures to a CArrayObj but having problems. Could someone point me to the solution please? My code is as follows: #include <Arrays/ArrayObj.mqh> struct test_t { double a;
I'm using this code: #include <Arrays\ArrayObj.mqh> template < typename T> class CVector : public CArrayObj { public : T operator []( const int index) const { return At(index); } }; from the end of this article:
Hello, I'm populating the previous 5 indexes of a custom buffer every 5 minutes via a function which I am calling like so: #property indicator_buffers 12 #property indicator_chart_window double ExtBuffer1[]; int OnInit ( void ) {
Hello, How do I tell the iHighest and iLowest commands which direction I want to search. For instance, can I do: iHighest ( NULL , 0 , MODE_HIGH ,- 5 , 8 ); to do a search from shift 8 to shift 3 where shift 0 is the last candle, i.e. left to right
Hello, I'm using the information in this post https://www.mql5.com/en/forum/159093#comment_3813702 to write an indicator that starts at Bars and goes down to 0 and detects and marks the previous turning point using logic similar to
Hello, I'm trying to start using the Fuzzy library mentioned in this link: https://www.mql5.com/en/code/13697 but I'm receiving the following compilation errors: Could some one help me fix these errors please? I'm using Metatrader 4 build 1260