In an attempt to organize, I'll add it into this thread as it's too good of a code to be missed

This version comes with (newer drop down box) Multi-timeframe + Interpolation, Shadow, Color Change options & more.
Thank you Mrtools.
Code: Select all
if (divergenceOnChartVisible) DrawPriceTrendLine("h",Time[currentPeak],Time[lastPeak],High[currentPeak],High[lastPeak],divergenceBearishColor,STYLE_SOLID);
if (divergenceOnValuesVisible) DrawIndicatorTrendLine("h",Time[currentPeak],Time[lastPeak],values[currentPeak],values[lastPeak],divergenceBearishColor,STYLE_SOLID);
}
if(values[currentPeak] > values[lastPeak] && High[currentPeak] < High[lastPeak])
{
if (divergenceOnChartVisible) DrawPriceTrendLine("h",Time[currentPeak],Time[lastPeak],High[currentPeak],High[lastPeak], divergenceBearishColor, STYLE_SOLID);
if (divergenceOnValuesVisible) DrawIndicatorTrendLine("h",Time[currentPeak],Time[lastPeak],values[currentPeak],values[lastPeak], divergenceBearishColor, STYLE_SOLID);
}
On this one you can change the width,style and color, just remember if you want to use something instead of STYLE_SOLID your width will have to be 0 or 1.TEAMTRADER wrote: Tue Oct 01, 2019 1:56 am I am not able to pick up the divergence areas via the thin lines on chart (because of other chart indicators ). I have tried to get the divergence price and indicator trendlines to be thicker but cannot see how to do it.
These, I believe, are the line of code involved.
Thanks
TEAMTRADER
Code: Select all
if (divergenceOnChartVisible) DrawPriceTrendLine("h",Time[currentPeak],Time[lastPeak],High[currentPeak],High[lastPeak],divergenceBearishColor,STYLE_SOLID); if (divergenceOnValuesVisible) DrawIndicatorTrendLine("h",Time[currentPeak],Time[lastPeak],values[currentPeak],values[lastPeak],divergenceBearishColor,STYLE_SOLID); } if(values[currentPeak] > values[lastPeak] && High[currentPeak] < High[lastPeak]) { if (divergenceOnChartVisible) DrawPriceTrendLine("h",Time[currentPeak],Time[lastPeak],High[currentPeak],High[lastPeak], divergenceBearishColor, STYLE_SOLID); if (divergenceOnValuesVisible) DrawIndicatorTrendLine("h",Time[currentPeak],Time[lastPeak],values[currentPeak],values[lastPeak], divergenceBearishColor, STYLE_SOLID); }
Code: Select all
I2 = .15*I2+.75*I2[1]; Q2 = .15*Q2+.75*Q2[1];
Jimmy wrote: Tue Sep 24, 2019 9:56 pm Some one requested for the latest version of the ALMA (Arnaud Legoux Moving Average) VHF Adaptive by Mladen and the newest one I've managed to find is version 1.4.
Currently, we only had up to version 1.1 here.
This version comes complete with (newer drop down box) Multi-timeframe + Interpolation, Floating Levels, Alerts & more.
Thanks to Mladen for this fine code.
Ah! He likes it! Hehe glad you're trying them out bro