Is it possible to refer to the previous bar value of a study/function/formula the same way as it is available for price values?
MyVar = close(-1) is a valid statement, but
MyVar = study.getValue(MAStudy.MA)(-1) or
MyVar = study.getValue(MAStudy.MA(-1)) is not
Can you please help? Being able to refer to previous values is mandatory in any meaningful strategy.
Thank you
MyVar = close(-1) is a valid statement, but
MyVar = study.getValue(MAStudy.MA)(-1) or
MyVar = study.getValue(MAStudy.MA(-1)) is not
Can you please help? Being able to refer to previous values is mandatory in any meaningful strategy.
Thank you
Comment