Has anyone converted DoubleMAPaintHolyGrail used in Sharkys strategy? I have made a few attempts but I dont have it quite right. My version is close but one of the issues I have come across is understanding the C# code that paints the line yellow. I am just trying to create the MA not the paint bars.
Here is what I have so far:
Input: LengthOne(55), Length2(55), UpColor(Blue), DnColor(Red);
Vars: DoubleWMA(0), EMA1(0), EMA2(0),ZLAGEMA(0), Difference(0) ;
//*** zero lag moving average from nexusfi.com (formerly BMT)
EMA1 = XAverage(CLOSE, LengthOne);
Difference = EMA1 - XAverage(EMA1,Length2);
ZLAGEMA = EMA1 + Difference;
//*** Double moving average
DoubleWMA = WAverage( WAverage( ZLAGEMA, LengthOne ), Length2);
//*** This section paints the moving average
Plot1( DoubleWMA, "DoubleWMA" ) ;
If DoubleWMA > DoubleWMA[1] then
SetPlotColor( 1, UpColor )
Else If DoubleWMA