Strong Historical Levels – indicator MetaTrader 5

Historical Levels are prices over life time of a symbol which technically believed as most repeated prices. From financial point of view, these prices are important limits of economical conditions of a financial environment which is shadowed over dedicated symbol chart. There are scientific materials shows these levels has linkage to financial limits/phases which price/rate can not easily pass those levels unless financial phase changes for considered symbol. These are strong reasons that a trader has to empower their market analyses with Historical Levels.

I tried to create a structural view on these levels from candle formation analyses point of view. Price/rate behavior over these levels most probably has strong effect on candle shape. As an example, if there is a strong level for a price, we should have a PRICE JUMP because of high amount of money sleeping on that price/rate or its around.

Considering this concept, two rules are developed:

  • Rule 1(bull candle on sup. level): if close – low > Jump Factor
  • Rule 2(bull candle on res. level): if close – low > Jump Factor & (close-low)/(high-low)>ratio

To make rules more clear two images are prepared.

Image1: jumping from S/R levels with same action (like bull candle on support)


Ratio

Image 2: jumping from S/R levels but in reverse (like Bull candle under resistance)


Based on these rules (rules are selectable) an indicator developed which gathers data in two different matrix (sup_mat and res_mat). Number of S/R levels obeying selected rules are shown on screen during gathering data. Hense, AlgLib(dataanalysis.mqh)Β library used to make a clustering process over gathered data through K-means method. Results illustrated as columns of Support and Resistance Levels data.

Alternative:  RUBBERBANDS_3 EA - EA MetaTrader 4

After enhancing levels, its open a chart with same symbol analysed and then draws all levels(clusters) over that chart accordingΒ  clustering process. Some parameters of indicator can be changed from screen to make it more user-friendly. Here is a brief illustration od screen graphics of tool and its results.

Indicator screen

Image 3: indicator screen


Results

Image 4: auto drawing of results of Levels on chart

As conclusion, tool is very powerful even if we have to very basic rules and levels are showing strong support and resistance behavior. Adding more rules is possible and code is in an easy mode to make more rules to enhance it. Adding to extra rules, dividing clustering areas and make more dedicated clustering for those areas, searching for max distance taken before retouching levels can be further improvements for tool. Anyone who like to have more, please contact me.


    πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks