what are the new predefined variables in MQL5?

 

Understand that all these predefined variables from MQL4 are missing in MQL5 - Ask, Bars, Bid, Close, Digits, High, Low, Open, Point, Time, Volume . What are they represented as in MQL5 now?

Thanks

 
Emerson Ng:

Understand that all these predefined variables from MQL4 are missing in MQL5 - Ask, Bars, Bid, Close, Digits, High, Low, Open, Point, Time, Volume . What are they represented as in MQL5 now?

Thanks

SymbolInfoDouble(_Symbol,SYMBOL_ASK)

SymbolInfoDouble(_Symbol,SYMBOL_BID)

Bars(_Symbol,_Period)

iOpen(_Symbol,_Period,index) , similarly for High Low Close Volume Time

_Point

_Digits

Documentation on MQL5: Market Info / SymbolInfoDouble
Documentation on MQL5: Market Info / SymbolInfoDouble
  • www.mql5.com
SymbolInfoDouble - Market Info - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Emerson Ng: Understand that all these predefined variables from MQL4 are missing in MQL5 - Ask, Bars, Bid, Close, Digits, High, Low, Open, Point, Time, Volume . What are they represented as in MQL5 now?

I suggest doing some research into learning MQL5 as well as how to transition from MQL4. Here are a few starting points ...


Articles

Migrating from MQL4 to MQL5

Sergey Pavlov, 2010.05.17 13:32

This article is a quick guide to MQL4 language functions, it will help you to migrate your programs from MQL4 to MQL5. For each MQL4 function (except trading functions) the description and MQL5 implementation are presented, it allows you to reduce the conversion time significantly. For convenience, the MQL4 functions are divided into groups, similar to MQL4 Reference.

Articles

Transferring Indicators from MQL4 to MQL5

Vasily, 2010.07.28 10:44

This article is dedicated to peculiarities of transferring price constructions written in MQL4 to MQL5. To make the process of transferring indicator calculations from MQL4 to MQL5 easier, the mql4_2_mql5.mqh library of functions is suggested. Its usage is described on the basis of transferring of the MACD, Stochastic and RSI indicators.
 
thank you all
Reason: