Good afternoon. Tell me how to translate:
MarketInfo(Symbol(),MODE_POINT);
There are also such functions in mql4 as Bid, Ask, and Time.
MarketInfo(Symbol(),MODE_DIGITS);
MarketInfo(Symbol(),MODE_STOPLEVEL);
MarketInfo(Symbol(),MODE_BID);
MarketInfo(Symbol(),MODE_ASK);
MarketInfo(Symbol(),MODE_MINLOT);
MarketInfo(Symbol(),MODE_MARGINREQUIRED);
MarketInfo(Symbol(),MODE_TICKVALUE);
MarketInfo(Symbol(),MODE_LOTSTEP);
And this is it:
iTime(Symbol(),0,0);
Please help me!
MarketInfo translation, purchase price, sale price, bar opening time on mql5
Share
mvs
Here you will find everything
fxsaber
MarketInfo so
Forum on trading, automated trading systems and testing of trading strategies
Indicators: i-OrdersMQL5
fxsaber, 2017.07.23 13:50
double MarketInfo( const string Symb, const ENUM_SYMBOL_INFO_DOUBLE Property )
{
return(::SymbolInfoDouble(Symb, Property));
}
int MarketInfo( const string Symb, const ENUM_SYMBOL_INFO_INTEGER Property )
{
return((int)::SymbolInfoInteger(Symb, Property));
}
#define MODE_SPREAD SYMBOL_SPREAD
#define MODE_TICKVALUE SYMBOL_TRADE_TICK_VALUE
For other questions, it is better to search.
alexeyvik
All information in the documentation Obtaining market information. Functions such as SymbolInfoInteger() SymbolInfoDouble () and others.
The opening time of the bar and other parameters can be found in the sectionAccess to timeseries and indicators