Posted By: webradio
ATRS() from indicators.c - 09/21/14 08:55
from indicators.c
I'm wondering if it should be rather
what am I missing?
Code:
// Simple ATR based on SMA var ATRS(int Period) { Period = max(1,Period); var vATRS = 0; for(g_count = 0; g_count < Period; g_count++) vATRS = priceHigh(g_count)-priceLow(g_count); return vATRS/Period; }
I'm wondering if it should be rather
Code:
vATRS += priceHigh...
what am I missing?