Hi,
I'm trying to write my own ATR to work exactly like AmiBroker ATR (for further implementation of weights). I attempted to apply formula from here
, unfortunately it returns different results and performs worse than AmiBroker implementation in BackTester. Could you help me with that ...