Forum

Unpredictable debugging results from large code base executable

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 code to stop it running, although I need to stop the

Using <Arrays\ArrayObj.mqh> stdlib

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 display the modified value. This the code I have at

DLL argument conversion failure

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 TA_SetTrialCallback(uint32_t handle, TrialCallbackType callback, void

typedef errors

Hello, I'm trying something new to me and redefining some types to userdefined names, such as: typedef uint uint32_t; typedef uchar uint8_t; typedef string STRTYPE; typedef const char * STRCTYPE; typedef int32_t HRESULT; typedef char TCHAR; But on

How to draw a horizontal line at position -1

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 thought about using OBJ_HLINE and using the Ray Right function

Indicator Loop Problem

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 && ! IsStopped (); --i) { // my code } return rates_total-1; However, I want to

Horizontal Line between two candles

Hello, I'm using this code to try and draw a horizontal line between two adjacent candles. int i = 100 ; double prediction = 141.550 ; ResetLastError (); // prediction-100 here is a test, normally it should be just prediction to get a horizontal line but in order to show //

Sliding window

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 this. I've produced this screen image to

Wrong parameters count / Event handling function not found

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. //+------------------------------------------------------------------+ //|

New Feature Request (order of indicators)

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