mirror of
https://github.com/raa251/Liquidity_Predator.git
synced 2026-07-06 13:42:02 +00:00
17 lines
No EOL
418 B
MQL5
17 lines
No EOL
418 B
MQL5
bool M_GetCandleData(ENUM_TIMEFRAMES TimeFrame, MqlRates &CDL[], int NrOfCandles)
|
|
{
|
|
ArraySetAsSeries(CDL, true);
|
|
bool copied = CopyRates(_Symbol, TimeFrame, 0, NrOfCandles, CDL);
|
|
if(copied)
|
|
{
|
|
return true;
|
|
}
|
|
else
|
|
{
|
|
string Message = "CopyRates() " + EnumToString(TimeFrame) + " Error: " + IntegerToString(GetLastError());
|
|
M_LogError(Message);
|
|
|
|
return false;
|
|
}
|
|
|
|
} |