If I use the following code, historical indicator-values are perfect, but at the moment of realtime working, there is only a horizontal line (see pic).
for performance saving, I use setComputeOnClose, intrabar-values are not needed.
for performance saving, I use setComputeOnClose, intrabar-values are not needed.
PHP Code:
function preMain()
{
setComputeOnClose();
}
function main()
{
return offsetSeries(efsInternal("myCalc2"),2);
}
function myCalc() {return (sma(8)+sma(3))/2;}
function myCalc2() {return sma(2, efsInternal("myCalc"));}
Comment