Detected Country (United States) : English
Market Info - codingforex.com

Welcome to CodingForex.Com!

Knowledge portal where you can learn how to create forex indicators and robot.

Click button below to choose level that suite you:

Market Info

Level Active [2017-11-20 11:58:15] - by hillzx
Featured Image

Market info is used to get these values:

  1. Bid Price
  2. Ask price
  3. Price Point
  4. The number of digits / digits behind the comma on the price
  5. The amount of spread

How to use it as follows:

 

// Mencari harga Bid
double vbid    = MarketInfo("EURUSD",MODE_BID);

// Mencari harga Ask
double vask    = MarketInfo("EURUSD",MODE_ASK);

// Mencari harga 1 point
double vpoint  = MarketInfo("EURUSD",MODE_POINT);

// Mencari jumlah angka / digit di belakang koma
int    vdigits = (int)MarketInfo("EURUSD",MODE_DIGITS);

// Mengetahui besaran spread
int    vspread = (int)MarketInfo("EURUSD",MODE_SPREAD);


Good luck, do not forget to share and follow our official facebook and youtube, happy trading!


Previous Article

Featured Image

Strings

Next Article

Featured Image

Math Functions


- Provided by HiLLzX - Contact hillzx@gmail.com -