[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 137

 

Here's an article

https://www.mql5.com/ru/code/9376

but there's something wrong with the website, has anyone come across a similar one?

 
Could you please tell me if it is possible to change the lot of a pending order via OrderModify ? Something didn't work on Alpa. Thanks in advance, colleagues.
 
Pyro:
Could you please tell me if it is possible to change the lot of a pending order via OrderModify ? Something didn't work on Alpa. Thanks in advance, colleagues.

You can not!
 

Hi all)

Newbie question, there is a price Ask, Bid - to look at ticks, bars Close, etc., but on the currency chart, what price is given, any average? Price on the chart=(Ask+Bid)/2 ?

 
orb:

Hi all)

Newbie question, there is a price Ask, Bid - to look at ticks, bars Close, etc., but on the currency chart, what price is given, any average? Price on the chart=(Ask+Bid)/2 ?


No, just the Bid. And Ask is red at the top.
 
first_may:

Here's an article

https://www.mql5.com/ru/code/9376

but there's something wrong with the website, has anyone come across a similar one?


Interesting. It's about the article, and the link is in CodeBase
 
Vinin:

Interesting. It's about the article, and the link is in CodeBase.

Found an indicator on this link, so I wanted to ask if there are any such indicators, but showing volume.
 

When closing a position, tell me which is the correct entry to use (below), or does it make no difference:

int tic; double lot;
if (OrderSelect(...)) ...
// --- 1
if (...)
{  tic=OrderTicket(); lot=OrderLots();
   RefreshRates();
   OrderClose(tic,lot,Ask,3);
}
// --- 2
if (...)
{  RefreshRates();
   OrderClose(OrderTicket(),OrderLots(),Ask,3);
}
 
serg1:

Hello !

Problem with signal calculation:

if RSI is above overbought level or below oversold level more than N bars, signal = "0", in all other cases signal = "1".

Maybe an error with the cycle - the counter does not work, i.e. signal "0" occurs just after the levels...

I tried it differently, see if you like it...
Files:
 

I can't get the EA to open 2 buy orders above and below price at once with Pending Orders.

It only opens bystop.

Please give me the correct code to make my EA open 2 pending buy orders simultaneously bypass and bylimit.

   if (OrdersTotal() == 0) 
   {
   OrderSend (Symbol(),OP_BUYSTOP,ll*1,Ask+10*Point,0,0,Ask+Point*tp);
   OrderSend (Symbol(),OP_BUYLIMIT,ll*2,Ask-40*Point,0,0,Ask+Point*tp); 
   }
   return(0);
   }