Hello everyone, I need help from the Easylanguage experts. I am delighting with some changes but I am unable to achieve my aim. Specifically, I changed the code of the original MACD to display only the MACD line and I entered two extremes of overbought and oversold. No problem so far. But now I would like to add, the graphic evidence of overbought or oversold. To be clear, the same thing happens with the RSI code included in the library (in overbought the line becomes cyan and red on the contrary). If anyone could help me I would be grateful. I would like to do the same thing on the stochastic, but if I understand "I hope" what needs to be added in the code, maybe I can do it myself .... Below is the code I made and an image to understand what I would like to see.
Thanks to those who have time to help me.
Code: Select all
inputs:
FastLength( 12 ),
SlowLength( 26 ),
MACDLength( 50 ),
OverSold ( -12 ),
OverBought ( 12 ),
OverSColor ( Red ),
OverBColor ( Blue );
variables:
var0( 0 ), var1( 0 ), var2( 0 ) ;
var0 = MACD( Close, FastLength, SlowLength ) ;
Plot1( var0, "MACD" ) ;
Plot2( 0, "ZeroLine" ) ;
Plot3( OverBought, "OverBot" ) ;
Plot4( OverSold, "OverSld" ) ;