Price line in indicator window

 

Hi,

How can we put a price line in the "Three line break" MT4 indicator window please? A price line is present in the MT5 version but not in the MT4 one.

Many thanks


MT5 version with price line in the indicator window (https://www.mql5.com/en/code/1298)

Three Line Break 

 

MT4 version without price line in the indicator window (https://www.mql5.com/ru/code/9770)

 

Three Line Break
Three Line Break
  • votes: 13
  • 2012.12.21
  • Serhii Ivanenko
  • www.mql5.com
The chart of (three) linear breakthrough in a separate subwindow
 
karlson3:

Hi,

How can we put a price line in the "Three line break" MT4 indicator window please? A price line is present in the MT5 version but not in the MT4 one.

Many thanks


MT5 version with price line in the indicator window (https://www.mql5.com/en/code/1298)

 

 

MT4 version without price line in the indicator window (https://www.mql5.com/ru/code/9770)

 

Hi

Probably better to direct the question to the original developer in the code discussion 

 
Filter:

Hi

Probably better to direct the question to the original developer in the code discussion 

Hi,

I did but no answer, does anyone know how to add price line in indicator window please?

 
1 histogram buffer with low width
1 histogram buffer with high width
1 histogram buffer with high width and background color
1 histogram buffer with low width 
1 histogram buffer with low width and background color
 
karlson3 #:

Hi,

I did but no answer, does anyone know how to add price line in indicator window please?

hi, 

i know this is an older thread. i've been wondering this for a while too... in the meantime, has anyone found a solution by any chance? 

 
Try adding
Not tested, not compiled, just typed.
int init()
  { 
   IndicatorSetInteger(INDICATOR_LEVELS, 1);
   IndicatorSetInteger(INDICATOR_LEVELCOLOR, clrGray);
   IndicatorSetInteger(INDICATOR_LEVELSTYLE, STYLE_SOLID); 
⋮
int start()
  { 
 IndicatorSetDouble(INDICATOR_LEVELVALUE, 0, Close[0]); 
⋮
Not tested, not compiled, just typed.
Reason: