I am trying to run a strategy on my chart, but after clicking "OK" in the strategy window, nothing happens. My strategy simply prints the state it is currently in (i.e. SetDefaults, Configure, Active, etc). In fact, I copied the SampleMACrossOver strategy and added a single unconditional line Print(State) inside of the OnStateChange() event handler. I can see that it goes through SetDefaults, Terminated, and Configure just fine, but after clicking "OK" in the strategy configuration window, the strategy shows "Terminated" four times in the output window and then (obviously) does nothing. I also added a single unconditional line Print("Bar Update") to the OnBarUpdate() event handler, and it is never called --which verifies that the strategy is indeed terminated.
I am using NT8 and I do have chart trading disabled (Set to "Off", not hidden) so I am very confused why I'm having so much trouble getting a sample strategy to run properly. Your input is much appreciated.
Thank you!
jflaggs
Comment