If I use an SMA of an function-series, I get an offset. Is there another way as "offsetSeries(sma(14, series),-1);" in order to prevent this problem?
PHP Code:
function preMain()
{
setPriceStudy(false);
setDefaultBarFgColor(Color.black,0);
setDefaultBarFgColor(Color.red,1);
}
function main()
{
series = efsInternal("test");
return new Array ( sma(10, sma(10)), sma(10, series) );
}
function test() {return sma(10);}
Comment