Running Pattern Code 844 0 0
11/20/2012 10:12:00 AM Bullish Trigger Found -0.0025390625 :: -0.742286396026611
Execution='07691ff27caf46cab121c3d15f091cf1' Instrument='NQ 12-12' Account='Sim101' Name='Long Hammer Low Limit' Exchange=Default Price=2575 Quantity=1 Market position=Long Commission=0 Order='eda880d6ebe44e76962605220170fac2' Time='11/20/2012 10:12:00 AM'
**NT** Strategy 'CandleScalperV1/7184306c9a3d45cba6efb73191c174bb' lost price connection but will keep running.
Running Pattern Code 845 0 1
**NT** Strategy 'CandleScalperV1/7184306c9a3d45cba6efb73191c174bb' lost order connection but will keep running.
**NT** Strategy 'CandleScalperV1/7184306c9a3d45cba6efb73191c174bb' lost price connection but will keep running.
Running Pattern Code 846 0 1
Execution='8ff7002a223843babdd6b99a19ef16a9' Instrument='NQ 12-12' Account='Sim101' Name='JSTarget' Exchange=Default Price=2578.25 Quantity=1 Market position=Short Commission=0 Order='9c5e2c931f0743baa11010c4abcd3cc5' Time='11/20/2012 10:18:36 AM'
Running Pattern Code 847 0 0
**NT** Error on calling 'OnBarUpdate' method for strategy 'CandleScalperV1/7184306c9a3d45cba6efb73191c174bb': Object reference not set to an instance of an object.
CurretBar, PendingEntryDirection, EntryDirection
PendingEntryDirection and EntryDirection are -1 for short, 0 for flat and 1 for long
What I'm trying to figure out is why OnBarUpdate throws an error? I have an "if" statement encompassing all of the code within that event to only check for the new triggers ONCE PER NEW BAR. So something odd must be throwing that type of error ??
Check the second chart out. After the code completed the trade and dropped the OnBarUpdate error, the chart goes back to normal.
Comment