Hi Bruce,
Through search, I found this useful PCF Indicator coded by you. I intend to use this transformed into a 1-Ago indicator as a column.
I've tested the original below as a column and it does work that way.
IIF(L > H1, 1, IIF(H < L1, -1, IIF(L > MINH2.1, 2, IIF(H < MAXL2.1, -2, IIF(L > MINH3.1, 3, IIF(H < MAXL3.1, -3, IIF(L > MINH4.1, 4, IIF(H < MAXL4.1, -4, IIF(L > MINH5.1, 5, IIF(H < MAXL5.1, -5, IIF(L > MINH6.1, 6, IIF(H < MAXL6.1, -6, IIF(L > MINH7.1, 7, IIF(H < MAXL7.1, -7, IIF(L > MINH8.1, 8, IIF(H < MAXL8.1, -8, IIF(L > MINH9.1, 9, IIF(H < MAXL9.1, -9, IIF(L > MINH10.1, 10, IIF(H < MAXL10.1, -10, IIF(L > MINH11.1, 11, IIF(H < MAXL11.1, -11, IIF(L > MINH12.1, 12, IIF(H < MAXL12.1, -12, IIF(L > MINH13.1, 13, IIF(H < MAXL13.1, -13, IIF(L > MINH14.1, 14, IIF(H < MAXL14.1, -14, IIF(L > MINH15.1, 15, IIF(H < MAXL15.1, -15, IIF(L > MINH16.1, 16, IIF(H < MAXL16.1, -16, IIF(L > MINH17.1, 17, IIF(H < MAXL17.1, -17, IIF(L > MINH18.1, 18, IIF(H < MAXL18.1, -18, IIF(L > MINH19.1, 19, IIF(H < MAXL19.1, -19, IIF(L > MINH20.1, 20, IIF(H < MAXL20.1, -20, IIF(L > MINH21.1, 21, IIF(H < MAXL21.1, -21, IIF(L > MINH22.1, 22, IIF(H < MAXL22.1, -22, IIF(L > MINH23.1, 23, IIF(H < MAXL23.1, -23, IIF(L > MINH24.1, 24, IIF(H < MAXL24.1, -24, IIF(L > MINH25.1, 25, IIF(H < MAXL25.1, -25, IIF(L > MINH26.1, 26, IIF(H < MAXL26.1, -26, IIF(L > MINH27.1, 27, IIF(H < MAXL27.1, -27, IIF(L > MINH28.1, 28, IIF(H < MAXL28.1, -28, IIF(L > MINH29.1, 29, IIF(H < MAXL29.1, -29, IIF(L > MINH30.1, 30, IIF(H < MAXL30.1, -30, IIF(L > MINH31.1, 31, IIF(H < MAXL31.1, -31, IIF(L > MINH32.1, 32, IIF(H < MAXL32.1, -32, IIF(L > MINH33.1, 33, IIF(H < MAXL33.1, -33, IIF(L > MINH34.1, 34, IIF(H < MAXL34.1, -34, IIF(L > MINH35.1, 35, IIF(H < MAXL35.1, -35, IIF(L > MINH36.1, 36, IIF(H < MAXL36.1, -36, IIF(L > MINH37.1, 37, IIF(H < MAXL37.1, -37, IIF(L > MINH38.1, 38, IIF(H < MAXL38.1, -38, IIF(L > MINH39.1, 39, IIF(H < MAXL39.1, -39, IIF(L > MINH40.1, 40, IIF(H < MAXL40.1, -40, IIF(L > MINH41.1, 41, IIF(H < MAXL41.1, -41, IIF(L > MINH42.1, 42, IIF(H < MAXL42.1, -42, IIF(L > MINH43.1, 43, IIF(H < MAXL43.1, -43, IIF(L > MINH44.1, 44, IIF(H < MAXL44.1, -44, IIF(L > MINH45.1, 45, IIF(H < MAXL45.1, -45, IIF(L > MINH46.1, 46, IIF(H < MAXL46.1, -46, IIF(L > MINH47.1, 47, IIF(H < MAXL47.1, -47, IIF(L > MINH48.1, 48, IIF(H < MAXL48.1, -48, IIF(L > MINH49.1, 49, IIF(H < MAXL49.1, -49, IIF(L > MINH50.1, 50, IIF(H < MAXL50.1, -50, 0))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
Wow, are we lucky to have a master mathematician at Worden!
traderlady
|