Questions from a "dummy" - page 36

 
sergeev:

is that an unsolvable problem? make it dynamic.
So that's the conundrum. When to make it static and when to make it dynamic.
 
Silent:

So can or can't StringSplit() be used with static arrays?

If you can, there should be no error if there is enough memory. If not, it shouldn't work.

Don't be a programmer. Go to lawyer.
 
MetaDriver:
Don't go into programming. Go into law.

Thanks for the advice, I have some.

You, dear self-taught wit, were you born that way, seven fingers on the pulse?

 
Silent:

Were you, dear self-taught wit, born that way, seven feet in the forehead?

I was born five in the heels, the other two and a half in sweat and humility.
 
Silent:

Thanks for the advice, I have some.

Were you, dear self-taught wit, born that way, seven fingers in the crown?

I might even add seven in the lab. :)
 
MetaDriver:
I was born five-five, the other two and a half I earned in sweat and humility.

Your answer implies that you know how those stakes are sometimes obtained.

Nevertheless, you, as an excellent (from others) programmer, give completely impractical advice. It is just a phobia.

I suggest you stop flooding the thread, it is unlikely that someone's outpouring here is appropriate.

Urain:
I'll even add seven in the lab. :)
I don't doubt it.
 

Silent:

........ you give completely impractical advice. ....

All right, fine. Don't go to lawyer, go to computer programmer.

Just walk yourself, not take turns being wheeled around in a free wheelchair, and make excuses for the squeaky wheelchair... ;)

--

I'm not saying you can't ask for advice. You're welcome. I'll lift your eyelids, zip up your fly. Expensive, but good.

 
What a predictable little man...
MetaDriver:

I don't mean you can't ask for advice. You're welcome. I'll lift your eyelids, zip up your fly. Expensive, but good quality.

Would you like to make a counter-offer on your own?

Have a nice day. Don't make it hard on yourself.

 

In the article"A Step-by-Step Guide to Writing MQL5 Expert Advisors for Beginners", there is such a block of code:

//--- есть ли открытые позиции?
    bool Buy_opened=false;  // переменные, в которых будет храниться информация 
    bool Sell_opened=false; // о наличии соответствующих открытых позиций
    
    if (PositionSelect(_Symbol,100) ==true)  // есть открытая позиция
    {
         if (PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_BUY)
         {
            Buy_opened = true;  // это длинная позиция
         }
         else if(PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_SELL)
         {
            Sell_opened = true; // это короткая позиция
         }
    }

And then there is this explanation:

bool  PositionSelect(
   string  symbol      // имя символа
   uint    timeout=0   // таймаут в миллисекундах
   );

And in the help, PositionSelect() has only one parameter:

bool  PositionSelect(
   string  symbol     // имя инструмента
   );
Has this function been changed since the article was written? If so, we need to make changes in the article, too.)
 
tol64:

In the article"A Step-by-Step Guide to Writing MQL5 Expert Advisors for Beginners", there is such a block of code:

And then there is this explanation:

And in the help, PositionSelect() has only one parameter:

Has this function been changed since the article was written? If so, we need to make changes in the article too.)

Ok, we'll fix it. Thanks for the message.
Reason: