Candles arbitrary seconds Indicator For MT5
Table Of Contents:
- Candles arbitrary seconds Indicator For MT5
- Installing the Candles arbitrary seconds Indicator For MT5
- Parameters of the Candles arbitrary seconds Indicator For MT5
- Buffers of the Candles arbitrary seconds Indicator For MT5
- Main Parts Of The Code
The Candles arbitrary seconds Indicator For MT5 is a unique technical trading indicator which forms candlesticks which are not tick-based - it solely works on the basis of time to formulate candlesticks - a new bar is generated with the Open, Close, High and Low for the selected period within seconds. Therefore this version does not depend on ticks in any aspect of its computation meaning that it may even work on currency pairs when the market is closed however there will just be a flat line simply because there is no active price changes taking place over the weekends. The bearish bars in its series are painted in an orange color and the bullish bars in its series are painted in a green color it - should be noted that this indicator does not plot offline data. Furthermore, if a trader or analyst decides to upload this indicator in multiple instances with the same settings at a different time it will not produce the same chart because ultimately the data will be different. It is not an indicator that will give traders apparent signals or trade setups but it should be deemed as an added-analysis tool which generally does not hold a direct role in triggering buy and sell orders.
Installing the Candles arbitrary seconds Indicator For MT5
After you downloaded the indicator via the form above you need to unzip the zip-file. Then you need to copy the file Candles_parbitrary_seconds8_1.1.mq5 into the folder MQL5\Indicators of your MT5 installation. After that please restart MT5 and then you will be able to see the indicator in the list of indicators.
Parameters of the Candles arbitrary seconds Indicator For MT5
The Candles arbitrary seconds Indicator For MT5 has 1 parameters to configure.
input int Seconds = 3; // Seconds for candles interval
Buffers of the Candles arbitrary seconds Indicator For MT5
The Candles arbitrary seconds Indicator For MT5 provides 5 buffers.
SetIndexBuffer(0,cano ,INDICATOR_DATA); SetIndexBuffer(1,canh ,INDICATOR_DATA); SetIndexBuffer(2,canl ,INDICATOR_DATA); SetIndexBuffer(3,canc ,INDICATOR_DATA); SetIndexBuffer(4,colors,INDICATOR_COLOR_INDEX);
Main Parts Of The Code
int OnCalculate(const int rates_total, const int prev_calculated, const datetime& time[], const double& open[], const double& high[], const double& low[], const double& close[], const long& tick_volume[], const long& volume[], const int& spread[]) { int bars = Bars(_Symbol,_Period); if (bars lt rates_total) return(-1); updateData(); return(rates_total); }