Forum

I want to copy only 2 years of data with CopyBuffer()

Hi all, I'm trying to copy only 2 years of history to my indicator buffer (I want to conduct some study on the 2 years of history of values) My problem is that when I run below code and check size of copied array it returns over 100'000 of 1 hour bars which is probably almost entire available

Check if symbol is selected for CSymbolInfo methods

Hi, is there a way to check if the symbol was already selected for use with CSymbolInfo methods

ENUM conversion warning

Hi, I don't want to say it's a bug but... Below code is giving me implicit conversion warning on compilation even though I don't think there is any conversion happening there... Please correct me if I'm wrong. enum ENUM_STRATEGY_DIRECTION {DIRECTION_NONE = 0 , DIRECTION_LONG = 1 , DIRECTION_SHORT =

Enum as a function parameter - can I check for NULL?

Hi, I'm trying to figure out a way to use ENUM_POSITION_TYPE in function argument in such a way that: - if function argument is empty then I count all open positions for the symbol PositionCount(); - if function argument is POSITION_TYPE_BUY then I count only BUY positions for the symbol

Debugging

Very open question but I'm hoping to start a discussion and learn some new tricks from you. I find debugging in mql5 particularly cumbersome after spending some time with Pine Script (please take it easy on me, I'm just learning...) What are your methods for debugging? Do you use any tricks and want