Hey, i'm learning how to code in mql4, but i havent found a logic to code the following:
I want to allow a new trade to open only if there are no more than X trades opened.
i know it works like this:
if(OrdersTotal()<X)
{
blablabla
}
But i want this to only apply to a given magic number, not the whole index of them.
anyone could lend a help?
I want to allow a new trade to open only if there are no more than X trades opened.
i know it works like this:
if(OrdersTotal()<X)
{
blablabla
}
But i want this to only apply to a given magic number, not the whole index of them.
anyone could lend a help?