Hi,
I have this simple script ( only for testing )
this problem is described in manual:TimeFrame does not affect a few indicators that do not use a Data series, but directly the current asset price series. This is mentioned in the description of the indicator.
void run()
{
assetList("AssetsCur.csv");
set(LOGFILE|PLOTNOW);
set(TICKS);
NumYears = 1;
StartDate = 20170101;
PlotScale = 8;
PlotWidth = 1200;
PlotHeight1 = 450;
PlotHeight2 = 120;
PlotDate = 20170601;
PlotBars = 200;
BarPeriod = 5;
TimeFrame = 12;
var *Price = series(price());
vars Trend1 = series(LowPass(Price,80));
plot ("Price",Price,MAIN|LINE,ORANGE);
plot("LP",Trend1,MAIN|LINE,BLUE);
}
after run I get this screen:
but after remove the
- run only with BarPeriod is the indicator smoothed.
After change BarPeriod=60; / 5*12 / I get also different values in the indicators:
Sumary:
BarPeriod*TimeFrame / TimeFrame > 1 / not get the same value from indicator