Melbourne, Australia
Experience: Intermediate
Platform: NinjaTrader
Trading: ES
Posts: 18 since Aug 2013
Thanks Given: 2
Thanks Received: 5
|
Can anyone offer guidance or examples toward implementing automated unit testing in NT8?
I am currently refactoring several complex Indicators originally designed to operate under Calculation.OnBarClose to operate under .OnBarClose AND .OnEachTick.
Ideally, I would like to develop Unit Tests for each Indicator which would operate under .OnBarClose OR .OnEachTick. I believe this would require mocking (or similar) a specified sequence of OnBarUpdate events. Ideally, a sequence of tick data could be recorded (or extracted) and used to develop a mock series. Unit Tests could then consume the mock series (under .OnBarClose OR .OnEachTick) to test and validate Indicator behavior.
Thanks
Shannon
|