#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
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);
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
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
Hi there, I am very new to MQL5 and trying to create custom indicator //+------------------------------------------------------------------+ //| Hull_info.mq5 | //| Copyright 2024, MetaQuotes Ltd. | //|
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++;
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
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
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<
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 )