Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to program MetaStocks PREV function in Wealth-Lab?

0
Posted

How to program MetaStocks PREV function in Wealth-Lab?

0

There is a function in MetaStock formula language called PREV that slows down processing dramatically, but is quite helpful. A common mistake when translating a MetaStock formula with PREV statement is confusing it with the series value on the previous bar. However, MetaStock does have a way to reference previous bar value which is “Ref”: e.g. “Ref(c,-1)”. PREV is a statement-oriented self-referencing directive that references its own value on the previous bar.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123