Errors, bugs, questions - page 2122

 
Aleksey Rodionov:

Here's an interesting one:


If you remove %G in pintf, the value will not be displayed, while in Print it will be displayed without %G

Print also shows a balance value of 10000.0, while printf shows a simple integer 10000

I am more interested in what is the difference between Print and Printf and most importantly, why it is not shown without %G. I did not understand anything in the reference book.

I think you should go here. Or here.

Вопросы от начинающих MQL5 MT5 MetaTrader 5
Вопросы от начинающих MQL5 MT5 MetaTrader 5
  • 2018.01.27
  • www.mql5.com
Подскажите пожалуйста, такой показатель тестера в жизни реален? И хороший это или плохой результат за год с депо 3000...
 
Artyom Trishkin:

Use the function CopyXXXX

I tried it, it didn't work, I don't understand it, I guess I don't have enough knowledge, is there an example, a piece of EA where this function is described and how it is inserted? Many thanks.

 
VadimR:

I tried it, it didn't work, I don't understand it, I guess I don't have enough knowledge, is there an example, a piece of EA where this function is described and how it is inserted? I would be very grateful to you.

Help in the MetaEditor. Put the cursor on the function name and press F1
 

Hi all.

I can't figure out if this is a bug or a feature, if it's the latter, help me beat it.

When I open any chart in the terminal window, the Expert Advisor starts on it at once, and it's always the same one. I searched all over, I cannot find a solution to the problem.

Sorry if this is off topic.

 
Totosha16:

Hi all.

I can't figure out if this is a bug or a feature, if it's the latter, help me beat it.

When I open any chart in the terminal window, the Expert Advisor starts on it at once, and it's always the same one. I searched all over, I cannot find a solution to the problem.

Sorry if this is off topic.

Is it saved in your default template?
 
Right! (Laughs) The default template was the problem! Thank you, friends!
 

MetaTrader 4 does not work after installation, it starts and then hangs (service not responding) ??????

 
Николай Бородулин:

MetaTrader 4 does not work after installation, starts and then hangs (service not responding) ??????

I need more details. Where did you download MT4 from? What operating system and so on.

It is better with all this case + screenshots in the CD to contact.

 

Unspecified methods in the SB

//+------------------------------------------------------------------+
//| Stored position's current state                                  |
//+------------------------------------------------------------------+
void CPositionInfo::StoreState(void)
  {
   m_type       =PositionType();
   m_volume     =Volume();
   m_price      =PriceOpen();
   m_stop_loss  =StopLoss();
   m_take_profit=TakeProfit();
  }
//+------------------------------------------------------------------+
//| Check position change                                            |
//+------------------------------------------------------------------+
bool CPositionInfo::CheckState(void)
  {
   if(m_type==PositionType() && 
      m_volume==Volume() && 
      m_price==PriceOpen() && 
      m_stop_loss==StopLoss() && 
      m_take_profit==TakeProfit())
      return(false);
//---
   return(true);
  }
Question forCPositionInfo users: what is the convenience of this class?
 
fxsaber:

Unwritten methods in SB

Question to CPositionInfo users: what is the convenience of this class?

Similar question and observation about half-methods in COrderInfo.

There is also a clearly erroneous method

ulong             COrderInfo::Ticket(void) const { return(m_ticket); }