- void OnTick()
- {
- double Ask,Bid;
- int Spread;
- Ask=SymbolInfoDouble(Symbol(),SYMBOL_ASK);
- Bid=SymbolInfoDouble(Symbol(),SYMBOL_BID);
- Spread=SymbolInfoInteger(Symbol(),SYMBOL_SPREAD);
- Comment(StringFormat("Show prices\nAsk = %G\nBid = %G\nSpread = %d",Ask,Bid,Spread));
- }
复制代码
|