[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 612

 
41ckm39fi:
I've rewritten the logic for comparing muwings still no messages, can't figure out what the error is.

Have you looked at my version?
 
Vinin:

Have you seen my version?
No, where is it?
 
41ckm39fi:
No, where is he ?

On the previous page.
 
Vinin:

On the previous page.
Found it. I'll have a look.
 
Reshetov:
No way. Every kitchen has its cotiers.


Turns out it's not so hopeless http://www.onix-trade.net/forum/index.php?showtopic=87470&st=0&gopid=398757&#entry398757

Continuing the search ))

 
vlad123:

How do I get MathRand to work correctly, I get the same set of random numbers every time I run it. Which means they are not random.

MathRand should be initialized with MathSrand() before use,

and I recommend passing TimeLocal() as a parameter of MathSrand().

Initialization is required once, then for 32768 requests MathRand() has no repeats,

After that you can initialize again if you want a new sequence, otherwise the same thing happens.

You can of course initialize each step, but you need to monitor initialization parameter to change,

otherwise it's the same sequence.

 
It's the holidays or something. Nobody's writing anything. Happy Holidays, everyone.
It's a simple question, but I'm really stupid. and it's not the holidays... ;)

We need to find the highest high and lowest low in N number of days of history, starting now...

Maybe there is a ready solution, so I don't have to reinvent the wheel...
ZS. Please don't kick me too much. I know it's elementary, but work has knocked out all my thinking and I'm in deep prostration/nirvana... I should...

 

Stuck in a problem ... help ...

for(int i = 0; i < OrdersTotal(); i++)
  {
    
    if(!OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) continue;
    if(OrderSymbol() != Symbol()) continue;
    if(OrderMagicNumber() != MAGA) continue; 
    if(OrderType() == OP_BUY)DS=1;


The selector finds an order if there is an open but if there is no open how can I find it ? the selector will still show the last existing closed position ...
 

- get the numbers of the outermost bars for the period in question.

- use the maximum and minimum search functions.

https://docs.mql4.com/ru/series/iLowest

https://docs.mql4.com/ru/series/iHighest

 
How do I check the absence of an open order or a pending order with a given magic number? We can check the presence of an order select, but how do I check the absence of an order?
Reason: