Hi guys.. I know this is an old thread, but i'm trying to get the line chart for overlay as I think that's the best way to view overlay charts.
I changed DRAW_HISTOGRAM to DRAWLINE but it now displays a lot many lines. Refer to the picture below.
I think this has to do because of these pieces of code (and possibly others too). Because this indicator was written for Candles, thus we have Bull/Bear and the two outlines. Can someone help to correct this please?
//+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //Initialize Indexes Prefix = "OverLayChart" + SubSymbol; IndicatorShortName( "OverLay Chart( " + SubSymbol + " )" ); SetIndexBuffer( 0, ExtMapBuffer1 ); SetIndexBuffer( 1, ExtMapBuffer2 ); SetIndexBuffer( 2, ExtMapBuffer3 ); SetIndexBuffer( 3, ExtMapBuffer4 ); SetIndexStyle( 0, DRAW_LINE, DRAW_LINE, 1, BullBarColor ); SetIndexStyle( 1, DRAW_LINE, DRAW_LINE, 1, BearBarColor ); SetIndexStyle ( 2, DRAW_LINE, DRAW_LINE, 1, BullBarColor ); SetIndexStyle( 3, DRAW_LINE, DRAW_LINE, 1, BearBarColor ); SetIndexEmptyValue( 0, 0.0 ); SetIndexEmptyValue( 1, 0.0 ); SetIndexEmptyValue( 2, 0.0 ); SetIndexEmptyValue( 3, 0.0 ); return( 0 ); }
Hi guys.. I know this is an old thread, but i'm trying to get the line chart for overlay as I think that's the best way to view overlay charts.
I changed DRAW_HISTOGRAM to DRAWLINE but it now displays a lot many lines. Refer to the picture below.
I think this has to do because of these pieces of code (and possibly others too). Because this indicator was written for Candles, thus we have Bull/Bear and the two outlines. Can someone help to correct this please?
The linechart is same as simple moving average period one close price
So why not place that moving average on the chart with your candlestick ???
Hi guys,
i know that this topic is old, but as I don't achieved show the graphic in lines...
Anybody knows how convert the histogram to lines? I think that it can't be too difficult to someone that knows programe for MT4 but unfortunately I'm a beginner.
Thanks in advice if someone can help.
Cheers.
There is someone who added the MA. The coder is LEGRUPO.
The modified Overlay charts indicator is included here.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
How to modify overlay chart from candle stick to line chart?
It is quite difficult to see in candlestick?
Can i convert the overlay chart to display line chart instead?
Thanks