Anton Wibowo / Publications
Forum
ERROR :10030
#property copyright "Lucas Mariano Vieira" #property link " https://www.mql5.com " #property version "1.00" input int MAPeriodShort= 9 ; input int MAPeriodLong= 21 ; input int MAShift= 0 ; input ENUM_MA_METHOD MAMethodS= MODE_SMA ; input ENUM_MA_METHOD MAMethodL= MODE_SMA ; input
MQL5 Array - did you forget array subscript []?
Hi there, Bellow code works perfectly in MQL4: void HMA07_LINES_ARRAY( int &HMA07_LINES_ARRAYx[]) { HMA07 b= 0 ; int result2[]; int n = EnumToArray(b, result2, - 100 , 100 ); int HMA07_ENUMSIZE = n; ArrayResize(HMA07_LINES_ARRAYx,HMA07_ENUMSIZE,HMA07_ENUMSIZE);
Multi Symbols Indicator in MT5 - is it possible?
In MT4 - multiple offline charts can be created with only 1 RangeBar indicator which is attached to M1 regular chart For example - created 10 pip RangeBars chart as M21 offline timeframe and 50 pip RangeBars chart as M31 offline timeframe Then attached Multi Time Frame (MTF) indicator on both
Why HistoryDealsTotal & HistoryOrdersTotal returns bigger number than actual MT5 History Tab?
Hi there, void OnStart () { //--- request all the existing history on the account if (! HistorySelect ( 0 , TimeCurrent ())) { Print ( "HistorySelect() failed. Error " , GetLastError ()); return ; } //--- get the number of deals in the list and display it in the journal
MQL5 custom indicator turns to EA
Hi there, I am very new to MQL5 and trying to create custom indicator //+------------------------------------------------------------------+ //| Hull_info.mq5 | //| Copyright 2024, MetaQuotes Ltd. | //|
How to get current month working day in MQL4?
Hi, How to get current month working day in MQL4? int CurrentWorkDay() { int WorkDay = 0; for (int i=Day(); i >= 1; i--) { if( TimeDayOfWeek(TimeToStr(TimeCurrent() - 60 * 60 * 24 * i,TIME_DATE)) >= 1 && TimeDayOfWeek(TimeToStr(TimeCurrent() - 60 * 60 * 24 * i,TIME_DATE)) <= 5 ) { WorkDay++;
[SOLVED] iCustom trouble
Hello, I am trying to get the values from indicator attached with iCustom: int barx = 0 ; int Loops = 8 ; for ( int x= 0 ; x<=Loops; x++) { ObjectCreate ("TEST" + ( string )x, OBJ_LABEL , 0 , 0 , 0 ); ObjectSet ("TEST" + ( string )x, OBJPROP_CORNER , 3 ); ObjectSet ("TEST" + ( string )x
iCustom TROUBLE - Too Many Extern Variables & repeatedly initialized and deinitialized
Hello, Already read Detailed Explanation of iCustom but still can't make iCustom working. As can see on above picture, ZigZagAdvanced_mj_v1.13 indicator has 66 extern variables. When include all 66 extern variables in iCustom: iCustom ( NULL , 0 ,"ZigZagAdvanced_mj_v1. 13 ","== set a unique prefix
Creating Enum from Array?
string TEST_A[ 3 ] = { "TEST_A_1" , "TEST_A_2" , "TEST_A_3" }; string TEST_B[ 5 ] = { "TEST_B_1" , "TEST_B_2" , "TEST_B_3" , "TEST_B_4" , "TEST_B_5" }; string TESTEnum[ 8 ]; ArrayResize (TESTEnum, ArraySize (TEST_A)+ ArraySize (TEST_B), ArraySize (TEST_A)+ ArraySize (TEST_B)); for ( int i= 0 ; i<
Data Types in Array
double test[ 3 ][ 2 ] = { { 1.11 , "test1" }, { 2.22 , "test2" }, { 3.33 , "test3" } }; // Result - compiler warnings "implicit conversion from 'string' to 'number'" // 1.11, 0 // 2.22, 0 // 3.33, 0 double test[ 3 ][ 2 ] = { { 1.11 , ( char ) "test1" }, { 2.22 , ( char ) "test2" }, { 3.33 ,( char )