Watch how to download trading robots for free. So post a link to it - let others appraise it. You liked the script? Try it in the MetaTrader 5 terminal. The indicator shows the High, Close and Low of the previous day, week or month. These levels are very commonly used as support and resistance among traders, so the indicator will draw them and leave a gap between periods to make it easy to distinguish when a new one started. When timeshift and precision settings are used, the indicator may display the incorrect levels for a few seconds, this is because MetaTrader is downloading the required bars.
So, if you use the H1 for precision, check if the bars were downloaded. The following image shows High, Close and Low for: This template can be downloaded. Just created an account to thank you. Fixed compilation error in newer metatrader compilers. Which timeframe must be used to calculate the High, Close and Low of the period.
This setting is required when time shift is applied, otherwise, it can be ignored. For example, if you want the indicator to calculate the GMT 0 High, Close and Low for the period on a GMT 2 broker , you would need to set the Hour shift to -2 and Precision to H1 to allow the indicator to use the hourly chart for its calculation, it'll affect the closing value, so choose wisely.
Previous day, previous week or previous month, you can only choose one of them. Add more instances of the indicator if want all modes drawn. Specifies how many days, weeks or months should be drawn on the chart. This way, only the relevant prices will be calculated. Be aware that it'll require Precision to be set to at least H1. Be aware that it'll require Precision to be set at a multiple of the minutes shift, e. A 15 minutes shift requires precision to be set at least to M Sunday bars will be merged into Monday.
Affects only the previous day mode. Saturday bars will be merged into Friday. Color of the value tags. Text displayed in the data window and tool tip for each line. Last comments Go to discussion Vinicius Silva Campos Pereira 6 Nov at Does exist a similar indicator in MQ5 format? The function of program operation by time The function allows the execution of the specific code in the specified time interval.
Divergence Implementation of a trading system based on divergence detection.More...