hi there,
i am new in MT programming.
can anyone help to advise me what is the problems with this simple MarketInfo() function:
double eurusd_ask;
double eurusd_bid;
double usdchf_ask;
double usdchf_bid;
int start(){
eurusd_ask = MarketInfo("EURUSD",MODE_ASK);
eurusd_bid = MarketInfo("EURUSD",MODE_BID);
usdchf_ask = MarketInfo("USDCHF",MODE_ASK);
usdchf_bid = MarketInfo("USDCHF",MODE_BID);
Comment(eurusd_ask,eurusd_bid,usdchf_ask,usdchf_bid);
}
all the variables appear to be 0000.
i am running this program in the GBPUSD chart.
i am new in MT programming.
can anyone help to advise me what is the problems with this simple MarketInfo() function:
double eurusd_ask;
double eurusd_bid;
double usdchf_ask;
double usdchf_bid;
int start(){
eurusd_ask = MarketInfo("EURUSD",MODE_ASK);
eurusd_bid = MarketInfo("EURUSD",MODE_BID);
usdchf_ask = MarketInfo("USDCHF",MODE_ASK);
usdchf_bid = MarketInfo("USDCHF",MODE_BID);
Comment(eurusd_ask,eurusd_bid,usdchf_ask,usdchf_bid);
}
all the variables appear to be 0000.
i am running this program in the GBPUSD chart.