Codes

Awesome Oscillator - 4 colors, customizable for MetaTrader 4

Awesome Oscillator, customizable, 4 colors (as seen on some AIMS YouTube videos), and some more parameters

Forum

[BUG] Saving template doesn't save "Chart on foreground" option

1. Right click on chart => Properties 2. Common tab 3. Uncheck "Chart on foreground" option => click Ok button 4. Save the template into default.tpl (or something else) 5a. close chart => open new chart 5b. or, right click on chart => Templates => load default template 6. "Chart on foreground" is

[BUG?] DRAW_CANDLES + indicator_chart_window = doesn't show

[BUG?] DRAW_CANDLES + indicator_chart_window = doesn't show Hi, All my indicators painting colored candles over the main chart don't work anymore. After an investigation, I realized they actually work, but, apparently now indicators are drawing first, then mt5 draws candlesticks last, over-painting

Codebase, search results with more filters (scripts, indicators, mql4, mql5)

Hi, Wouldn't be better if, when we search in codebase for some script or indicator, we would have more filtering besides By Date and Relevance? Like: scripts, indicators, mql4, mql5

[Feature Request] or [bug] ArrayCopy() with multidimensional arrays as parameters?

Shouldn't this work? double m[][ 6 ], x[ 6 ]; ArrayResize (m, 6 ); //generate x array ArrayCopy (m[ 2 ], x); //shouldn't this work

[bug?] behavior of if (condition);

Hi, I made a simple mistake to write unknowingly a ";" after an if condition, it took me a lot of time to realize that mql5 permits it, and considers it valid if ( 0 ); printf ( "stuff" ); //will get printed, because the ";" above It should appear as an error in code, I don't see any potential

[Feature Request] Period Separators color

Hi, Given that most of the time, the background color of chart is black, the current Period Separators' color is too strident, too much contrast. So it would be best to add Period Separators to Colors tab, in Chart Properties , to let the user change the color

Metatrader 5 client terminal process doesn't go away (task manager)

Hi, 1. I close Metatrader 5. 2. I try to start it again, but it doesn't work. 3. Eventually, i discovered the process is still there in task manager. 4. If I force close it ("end task"), I can start Metatrader 5 again next time, no problem. This issue is not random in my case, it happens each time

typedef pointer to function issue, or bug. can anyone help?

typedef double (*TFuncD) ( double ); //Double in, double out int OnStart () { TFuncD f= NULL ; if (s2funcx( "1" , f)) printf ( "nr %.2f f(nr)=%.2f" , 361 , f( 361.0 )); return ( 0 ); } double func1( double nr) { return nr/ 10 ;} double func2( double nr) { return nr/ 100 ;} TFuncD

StringToShortArray() issue

It took me a while to figure out the bug in my code, but it boils down to StringToShortArray() function this is the test: void test_strings() { ushort a[]; int alen = 0 ; string s = "michael" ; StringToShortArray (s, a); printf ( "string '%s' has len %i array a has len %i"

Trades levels, ray right only? Instead of horizontal lines?

Wouldn't it be more logical and useful for trading, If trades levels would be trendlines with ray right (and ray left unchecked)? This way it would be more clear, levels would show where the trade actually started. Also it would bring a lot more clarity if multiple trades are open in the same chart