Close Series

Category: Indicators By: Nicolas Created: May 29, 2017, 2:35 PM
May 29, 2017, 2:35 PM
Indicators
0 Comments

The Close Series indicator is used in combination with other indicators and gives exit points on short-term trend trading.

  • Internal closing (red line) indicates closing which is located within the range of the previous bar. The series of such closings speak of “creeping” or horizontal movement. The longer the series, the more likely for a breakthrough, respectively, define the point (points) of entry using the other instruments.
  • External/net closing (purple line) is a closing located above high and below low of the previous bar. Usually the series of the external closings include 3-5 bars and speak of either flat will run, or the price reverse.
  • Single direction closing (grey line) is a current bar which closes in the same direction as the previous bar. The appearances of such series speaks that short-term trend is terminated.
  • Each line’s value is the number of bars in the corresponding series.

Recommendations:

  • It is recommended to use on older timeframes in combination with the other indicators.
  • When a series of 3-4 external closings appears, close or at least defend the position.
  • When a series of 4 or more closings appears, close or defend the deal.
  • It is important: series of external and single directed bars are not the signals of reverse, but they testify of a current short-term trend termination.

Description from the author Serhii Ivanenko and translated from Russian.

Converted from MT5 code by a request on the french forum.

//PRC_Close Series | indicator
//29.05.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//translated from MT5 code

if ( close[0] <= high[1] and close[0] >= low[1] ) then
 if ( InCloseBuffer[1] > 0 ) then
  InCloseBuffer = InCloseBuffer[1] + 1
 else
  InCloseBuffer = 1
 endif
else
 InCloseBuffer = 0
endif

if ( open[0] > high[1] ) then
 if ( OutCloseBuffer[1] > 0 ) then
  OutCloseBuffer = OutCloseBuffer[1] + 1
 else
  OutCloseBuffer = 1
 endif
elsif (open[0] < low[1] ) then
 if ( OutCloseBuffer[1] < 0 ) then
  OutCloseBuffer = OutCloseBuffer[1] - 1
 else
  OutCloseBuffer = -1
 endif
else
 OutCloseBuffer = 0
endif
//---
if ( close[0] > open[0] ) then
 if ( DirectCloseBuffer[1] > 0 ) then
  DirectCloseBuffer = DirectCloseBuffer[1] + 1
 else
  DirectCloseBuffer = 1
 endif
elsif ( close[0] < open[0] ) then
 if ( DirectCloseBuffer[1] < 0 ) then
  DirectCloseBuffer = DirectCloseBuffer[1] - 1
 else
  DirectCloseBuffer = -1
 endif
else
 DirectCloseBuffer = 0
endif

RETURN InCloseBuffer coloured(255,0,0) style(line,2) as "In Close", OutCloseBuffer coloured(255,0,200) as "Out Close", DirectCloseBuffer coloured(150,150,150) style(line,2) as "Direct Close", 3 style(dottedline) as "level 3", -3 style(dottedline) as "level -3"

 

Download
Filename: PRC_Close-Series.itf
Downloads: 73
Download
Filename: Close-Series-indicator.png
Downloads: 20
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...