|
At first look, there maybe a mistake calling LSMA() : shift should be 0 and 1 as you have already a one bar offset in the func: for(i = length; i >= 1 ; i--)
Another mistake may be here :
(lsma25/oldLsma)/timeframe*1000; shouldn't be (lsma25-oldLsma)/timeframe*10000; or better : (lsma25-oldLsma)/(Period()*Point); ???
|