imamushroom
imamushroom
imamushroom
Added topic 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
imamushroom
Added topic 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 &&
imamushroom
Added topic 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 ;
imamushroom
Added topic 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
imamushroom
Added topic 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
imamushroom
Added topic 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
imamushroom
Added topic CArrayObj Update corrupting record
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> //+------------------------------------------------------------------+
imamushroom
Added topic How to convert a CObject* back to it's complex type source
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
imamushroom
Added topic How to write a Copy Constructor
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
imamushroom
Added topic CArrayObj and struct
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;
imamushroom
Added topic 'return' - illegal operation use
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: 
imamushroom
Added topic Metaediter v5 build 2375 bug?
Hello, I have the following code:        if (upper_cond          && bands.bbl_0 == bands.bbl_1          && (bands.bbl_0 ==
imamushroom
Added topic Custom Indicator Buffer returning EMPTY_VALUE
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 ) {   
imamushroom
Added topic iHighest direction
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
imamushroom
Added topic Marking specific points
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 
imamushroom
Added topic Fuzzy Library Compilation Errors
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
imamushroom
Added topic MathMod curiosity
I'm essentially trying to produce this code: NormalizeDouble ( MathMod ( 0.073 , 0.0365 ), _Digits ); but actually using variables as such: double m_mod = 0.0 ; double m_value1 = 0.0 ; double m_value2 = 0.0 ; m_value2 = 0.073 ; m_value2 = 0.0365
imamushroom
Added topic Bid/Ask Volume
Hello, I'm using MT4 and need to access this bid/ask volume information. Could some tell me how to access it please? Thanks
imamushroom
Added topic Overloaded function not returning expected value
Hello, I have the following overloaded function: double normalize( const double price, const bool normalized)   {    return normalize(price,normalized, 0 );   } double normalize( const double price, const bool
imamushroom
Added topic New Feature request (additional periods)
Hello, I'd like the periods, yearly, 5 year and 10 year periods adding so that we can do long term analysis. Is this possible? Thanks, imamushroom
123