mirror of
https://github.com/raa251/Liquidity_Predator.git
synced 2026-07-06 13:42:02 +00:00
17 lines
No EOL
433 B
MQL5
17 lines
No EOL
433 B
MQL5
void M_SetLine(string LineName, int LineNumber, double price, color Clr)
|
|
{
|
|
string FullLineName = LineName + IntegerToString(LineNumber);
|
|
|
|
// check if object exists, otherwise create a new one
|
|
if(ObjectFind(0, FullLineName) < 0)
|
|
{
|
|
M_CreateLine(FullLineName, Clr, price);
|
|
|
|
}
|
|
else
|
|
{
|
|
// Move endpoint to actual time
|
|
ObjectMove(0, FullLineName, 1, TimeCurrent(), price);
|
|
|
|
}
|
|
} |