Rejoignez notre page de fans
Utility to view the statistics for a Single Bar of any time frame - indicateur pour MetaTrader 5
- Vues:
- 10170
- Note:
- Publié:
- 2019.07.28 19:35
- Mise à jour:
- 2019.07.28 19:43
- Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
The utility will display the high, low, open, close and time statistics for any user selected bar of any timeframe for the symbol of the chart
the utility resides on. The indicator posts an event (EventChartCustom) to process its data collection and display activities,
keeping the processing time for those activities outside of the indicator's quote (OnCalculate) processing times.
User Input values:
input int Uniquifier = 3; // Display Offset and Unique Instance Number
This value mkes the object names unique t this indicator instance; change this number if you are using multiple instances of the indicator. Also, this number changes the display offset of the inidicator.
input ENUM_ON_OFF DirectClick = ON; // select bars with a mouse click
The bar to display may be selected by clicking on the chart. This turns that feature on or off. This feature on can interfere with clicking on the other controls.
Display Controls:
Bar_Up: Click this text to increment the bar for which information is displayed by one.
Bar_Dn: Click this text to decrement the bar for which information is displayed by one.
‘The Box”: This is a text input box, the number of the bar to display information about can be directly entered here.
Period: Click this text to increment the timeframe of the bar display.
“_H4” {Time Frame}: Click this text to decrement the timefame of the bar display.
“Rates” {Data acquisition method}: Click this text to increment thru multiple data acquisition methods.
There are 3 different ways to get a single bar’s statistics implemented in the indicator:
COPY_FUNCS: CopyClose, CopyHigh, CopyLow and CopyTime.
DIRECT: iClose, iHigh, iLow, iOpen and iTime.
RATES: CopyRates (to an MqlRates structure)
This is control and functionality is in the indicator purely for those who want to see how to get the information in different ways.
The Indicator also highlights the bar for which statistics are being displayed - this shows the highlight of an H4 bar on an M30 chart:
When the timeframe of the bar is less than the timeframe of the chart (or the same as the chart), this highlight can be difficult to discern.
This utility allows monitoring of multiple symbols and positions on one chart with one-click switching of the chart symbol.
BearsBullsPowerIndicator Bears and Bulls Power for MT5 together in one separate window.
Arrow trends by iBearsPower and iBullsPower indicator for MT5
Classic 2 Moving Averages crossover EAClassic and one of the most popular trading strategies based on 2 moving averages crossover. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951