mirror of
https://github.com/raa251/Liquidity_Predator.git
synced 2026-07-06 13:42:02 +00:00
20 lines
No EOL
587 B
MQL5
20 lines
No EOL
587 B
MQL5
bool M_ExtendActualLines()
|
|
{
|
|
if(stGVL.CurrentLiquidity != 0) // If != 0 we currently have an active liquidity
|
|
{
|
|
string ActualLiquName = stGVL.Line_ActLiqu + IntegerToString(stGVL.Line_ActLiqu_Number);
|
|
if(ObjectFind(0, ActualLiquName) < 0) // check if object exists
|
|
{
|
|
string Message = "Object " + ActualLiquName + " not existing!";
|
|
M_LogError(Message);
|
|
return false;
|
|
}
|
|
else
|
|
{
|
|
M_SetLine(stGVL.Line_ActLiqu, stGVL.Line_ActLiqu_Number, stGVL.CurrentLiquidity, clrOrange);
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
} |