Forum

Vector and Matix are for use only in Python? or can be used in MQL Programs too?

I am trying to use vectors in strategy class. However in one code it works without any error while in other it gives error. Any clues what is wrong? vector vctHigh; vctHigh. CopyRates (mSymbol, PERIOD_M1 , COPY_RATES_HIGH ,begin,end); vector vctLow; vctLow. CopyRates (mSymbol

!!! undeleted objects left

Hello Everyone I have this warning message, and have checked all my classes where I have created CMarketInfo class and made sure that it is deleted on Exit the program. 2024.06.10 17:28:54.019 AlgoEA (XAUUSD,M15) 1 undeleted objects left 2024.06.10 17:28:54.019 AlgoEA (XAUUSD,M15) 1 object of type

Help on Symbol Info Properties

Hi I am trying to get the Broker session times using symbol properties with below code. However I am getting compiler warnings. Please let me know how to correct it. Documentation and search did not help much. // Variables for Symbol's other properties

Is there a bug or change in MQL5 update? Having problem with iHighest / iLowest functions

Another thread with the same issue in OOP class https://www.mql5.com/en/forum/467428 Now today I am trying to run an indicator where Highest values are calculated and I am getting price much lower than the Highest price. double price1 = iHigh (gSymbol, PERIOD_H1 , iHighest (gSymbol, _Period

Different results from ArrayMaximum/ArrayMinimum on same time set of data!!!

Hi Please help me out to debug problem/error in my code. I am getting different values for Highest and Lowest prices, though the data set is for the same period. The CurrOpen, PrevOpen and PrevClose are calculated correctly on each NewH01 bar, but Highest/Lowest prices are changed. Relevant section

Seeking help to identify Custom(FxSession) new day

Goal to get new specified Forex Session start-end times in CPRSession[] ... (Code in ' bold' letters) ForexSession are calculated and populated in cFxSession[day][sessionID] and arrayprint used to display calculated values. CPRSession[] is created to get particular sessionID start-end times (Broker

Is there a way to use data structure as 'Indicator Buffer" ?

Wish all happy beginning of the week. I have following structure and want to use its information in the Indicator Buffer (s). To my understanding indicator buffers are allowed only of 'double' type. Is there any work around to what I want to achieve? struct SFxSession { CENUM_FxSESSION_ID

Error in Strategy Tester: freeing unaligned memory 0x0000005EA7DFED43

Please help me what could cause subjected error while running the strategy tester

Help me on the error in "if...condition"

Hello Friends I am stuck with a following if condition!!! if (!(cCPRM15.rangeR2_R1(CPRD01,j,k) || cCPRM15.rangeR1_Top(CPRD01,j,k))) return ( false ); I want to return(true), if either one condition is true, else return(false). I have tried using && operator too, but it is always returning [false]

Use of Matrix and Vectors!!! MQL structures are in infant stage?

@Lorentzos Roussos @Dominik Egert I was just trying to start with Matrix and Vectors, but reading this thread ( https://www.mql5.com/en/forum/448355 ) makes me think again. Tell me frankly man, is it worth to invest time in learning them? The documentation is very poor to explain the correct ways