♥ 0 |
Hi, below is a basic code meant for the daily chart to calculate a 14 period ATR excluding the last/current bar if there are more than 14 bars on the daily chart and averages the ATR for the total number of candles on the daily chart if there are less than 14 bars. The code runs fine when simply calculating the ATR for daily charts that have clearly more than 14 bars but for IPO charts like FROG, SNOW and NNOX it either returns an incorrect ATR value (NNOX) or just N/A (FROG, SNOW). I am stumped right now and would appreciate any help. TIA.
Marked as spam
|
Please log in to post questions.