Indicator Name: Direction - Congestion Description
Indicator Name: Direction - Congestion Description
Description:
This formula is based on an RSI study and identifies general direction and areas of congestion.
Formula Parameters:
Price Source: Default is "Close"
RSI Length: Default is 21.
LEN: Default is 9. This is a constant used by the formula calculation.
Upper_Dot_Color: Default is Cyan.
Lower_Dot_Color: Default is Maroon.
Notes:
1. Bars that have dots both above and below the bars represent the areas of congestion.
2. If the dots are only above the bars, the general direction is negative (bearish).
3. If the dots are only below the bars, the general direction is positive (bullish).
/*********************************
Provided By : eSignal. (c) Copyright 2003
*********************************/
function preMain() {
setPriceStudy(true);
setStudyTitle("Direction/Congestion ");
setShowCursorLabel(false);
setComputeOnClose(true);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarStyle(PS_SOLID, 1);
setPlotType(PLOTTYPE_DOT, 0);
setPlotType(PLOTTYPE_DOT, 1);
setDefaultBarThickness(1, 0);
setDefaultBarThickness(1, 1);
setDefaultBarFgColor(Color.maroon, 0);
setDefaultBarFgColor(Color.maroon, 1);
var Constnt = 4;
if (getBarState() == BARSTATE_NEWBAR) {
BarCntr += 1;
}
setBarFgColor(Upper_Dot_Color, 0);
setBarFgColor(Lower_Dot_Color, 1);