After the trader has an application or trading platform, the next step trader will definitely see the price on the screen / chart to do the analysis. There are several ways the price is displayed, the most popular way is to display the price with candlestick design.
Candlesticks are shaped like candle bars, sometimes accompanied by needles above and below. There are 4 components of a candlestick design called OHLC:
Open means the opening of a price at a certain timeframe.
High means the highest price on a particular timeframe.
Low means the lowest price at a certain timeframe.
Close means the closing price at a certain timeframe.
Candlestick pattern can give meaning to trader, usually big candle or long needle indicating pressure or strong impulse. OHLC is often used in the manufacture of indicators or EA robots.
How to use is as follows:
/* Parameter : - Shift / Candle, 0 artinya candle sekarang, 1 artinya candle kedua dari kanan */ Open; High; Low; Close;
The above code is used on current timeframe and current symbol (currency pair). Whereas if we want to retrieve data from a specific timeframe or currency pair and candle with a certain order we must use the following codes instead:
/* Parameter : - Symbol - Period Timeframe - Shift / Candle */ iOpen("USDCHF",PERIOD_H1,0); iHigh("USDCHF",PERIOD_H1,0); iLow("USDCHF",PERIOD_H1,0); iClose("USDCHF",PERIOD_H1,0);
Please note that price is a "Double" Data Type.