[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another PREV example



PureBytes Links

Trading Reference Links

Hi All,

I've been struggling to figure out how to code an MS indicator in AFL
without using VBScript or JScript. The function is pretty straight forward,
but the solution still eludes me. Here is the function:

If(Month()<>Ref(Month(),-1),1,PREV+1)

It is recursive, which makes it very simple to understand. It is an
indicator that plots the current trade day number of the month.

Can anybody offer any ideas on how to get this going?

Thanks in advance!

Daniel