Download MetaTrader 5
To add comments, please log in or register
Articles have already helped many traders. Come and read them!
Reuven 2014.12.04 12:04 

Here's a where. Lower "Print" prints "1.loss 1" and the upper 0 . Who can help ...

   Print(" 1.loss ",loss,
  " profit ",profit);
        Print(" ");
       Print(" Ord: ",OrderTicket(),
             " profit: ",profit,
             " comment: ",OrderComment(),
             " loss ",loss);
whroeder1 2014.12.04 13:22  
reuvenb: .Who can help ...

  1. Don't paste code
    Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. No one can because there are no mind readers here:
    • You don't show all the code. We have no idea what the data type of profit and loss is, or whether you initialized them and to what. We have no idea whether you selected an order before using OrderTicket and OrderComment.
    • We have no idea why you're in an infinite loop.
    • We have no idea what your problem is because "upper 0" is meaningless and you don't state what you wanted and what it does.
To add comments, please log in or register