Forum

Problem with DRAW_COLOR_CANDLES

Hi all. I 'm going to try DRAW_COLOR_CANDLES in my indicator. I've written following which works correctly in coloring Engulf candles: #property copyright "Copyright 2021, MetaQuotes Ltd." #property link " https://www.mql5.com " #property version "1.00" #property indicator_chart_window

How to minimize CAppDialog?

Hi all. Following code works correctly, except last line for minimizing dialog: CAppDialog AppWindow; int OnInit () { // Codes for dialog creation AppWindow.Run(); AppWindow.Minimized( true ); // not working as expected. return ( INIT_SUCCEEDED ); } Trying to use Minimize() method, it

Static array resets on timeframe changes

Hi all. I've been using static variables but now i have problem for declaring static arrays. I want elements of array not to be change when timeframe changes. static double a[ 3 ]; static double b[]; int OnInit () { ArrayResize (b, 3 ); } int OnCalculate () { Comment (a[0]); Comment (b[0]);

Drawing not updated

Hi all I've written a Zigzag-RSI indicator combining RSI values to standard Zigzag indicator. It works pretty well, except that drawing of RSI values does not update on chart (i.e. indicator window). I want it to be updated in each tick as it is for standard RSI indicator. Here is the code

MQL5: Debug for current day not working

Hi all I used to use debug on history data (while setting dates in Options). Today, I saw some malfunctioning of my indicator but it seems "Debugging on history data" doesn't work on toady candles. I tried setting dates between yesterday and tomorrow but debugger when reaches beginning of today

Equivalent of BarsCalculated() in MQL4

Hi all I'm converting a code from MQL5 to MQL4. In code, i have faced BarsCalculated() which i need help to convert it to MQL4. This is the code which computes and draws Zigzag on RSI indicator (=Zigzag with input of RSI values, rather than price values)