Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

iPulsar - indicator of critical price levels - indicator for MetaTrader 4

Views:
18762
Rating:
(30)
Published:
2015.12.11 11:06
Updated:
2016.11.22 07:32
ipulsar_v3.mq4 (8.69 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The indicator registers the price level breakout moments and the significance of these levels. The significance of a level is determined by how long it had not been broken through in the past. The level breakout may be interpreted as a possible start of the price movement reversal.

There is a noise filter and a signal significance filter, which allow to exclude reactions to insignificant levels, as well as the signals with no substantially new information.

Developed in 2012, published on the MQL4 forum. Improved on 2015 on the request of Lesorub — added alerts for parallel tracking of several price charts by the trader.

External variables:

  • Scale — the timescale of "looking into the past" (in minutes). I generally use 1440, i.e. I measure the significance of the level in 24 hours.
  • ScaleDigits — the number of digits after the decimal point on the "looking into the past" timescale (y-axis). Does not affect anything but the digitizing of the y-axis.
  • LevelFilter — the minimum significance (depth of operation) of the displayed levels. Measured in Scale periods, i.e. in my case — in natural days.
  • SignalFilter — the signal significance filter; specified either in bars (if >=0), or in Scale periods (if <0). It allows to exclude the display of the signals which contain no substantially new information relative to the one already displayed. The zero value simply disables the repeated display of the already present levels.
  • SetSignalFilter — command for activation of the SignalFilter. If false, then the signals are not filtered by significance.

Usage example:

Launching the indicator on November 27, 2015, with the significance filter disabled and with the levels of significance below 5 trade days (a trading week) omitted, gives:

This shows that numerous signals point at the levels of approximately the same significance (140-160 trade days), which were recognized by the indicator in a short history interval (12 trade days). In other words, this may as well be one and the same support level. Determine this level using the signal significance filter. Enabling this filter and setting its value to three trade days gives:

Thus, it was determined that the significance of the current (latest as of November 27) support level on the EURUSD pair equals 151 trade days, and the value of this level is around 1.06592 (shown by a blue horizontal line).

Let's see what was happening in the market 151 trade days prior to the appearance of the signal and in the preceding days (5-10 trade days). To do that, switch to the D1 timeframe and leave the level on the chart, the indicator is no longer needed:

It can be seen that the most significant signal indeed points to the possible reversal level. See which of the trading reference points should be taken into account in the vicinity of this level. In order to do that, it is necessary to lower the requirements to the significance of the signal, up to the value of 16 trade hours, for instance. Here is the result:

Please note that the value of the indicator is formed in real-time and is "redrawn" (merely correcting the value, but not canceling the signal) only on the zero bar, i.e. it is quite possible to use the determined levels for trading. The only problem is determining the correct values of the filtration parameters.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/14246

High, Low and Close of the previous day, week or month High, Low and Close of the previous day, week or month

The indicator shows the High, Close and Low of the previous day, week or month with time shift.

The function of program operation by time The function of program operation by time

The function allows the execution of the specific code in the specified time interval.

Divergence Divergence

Implementation of a trading system based on divergence detection.

Close all locked orders Close all locked orders

The function closes all locked orders. This really saves money on the spread.