Thread: MQL4 Learning
View Single Post
  #115 (permalink)  
Old 07-23-2007, 11:55 PM
fxd01 fxd01 is offline
Member
 
Join Date: Nov 2005
Posts: 85
fxd01 is on a distinguished road
Quote:
Originally Posted by MQL4 View Post
I have a question:

if(bid == 122.15)

I want to replace 122.15 by current market price.

Is there any function that determines current market price?

Thank You.
Try this:

if(bid == MarketInfo(Symbol(),MODE_BID))

Hope it helps.
Reply With Quote