Several Examples of Code that did not Translate Correctly
Author: grahamgk
Creation Date: 10/10/2009 3:45 PM
profile picture

grahamgk

#1
Here are several lines of code that did not translate correctly from 4.5 to 5.5:

PriceIncrFirst = (double)LinearRegLine(WL_CLOSE, LastTroughBarNew, LastPriceCloseHighBar, LastTroughBarNew);

This gave an error, but with Eugene's help, I was able to manually translate it.


The following run correctly, but are not in WL5.5 standard syntax:

DrawLine(LastTroughBarNew, PriceIncrFirst, j, PriceIncrLast, 0, WL_BLUE, WL_THICK);
PlotSeries(JumpySumAveSeries, JumpySumAvePane, WL_BLUE, WL_THIN);
DrawText("JumpySumAve", JumpySumAvePane, 5, 3, WL_BLUE, 9);
DrawHorzLine(VIXFactorValue, VIXPane, WL_GREEN, WL_THICK);
AnnotateBar("BE", (j + 1), true, WL_BLACK, 12);
LastTroughBarNew = (int)TroughBar(j, WL_CLOSE, 1.07);









This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).