![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2009
Posts: 216
Thanks: 0
Thanked 1 time in 1 post
|
Hi NT experts,
I have a generic questions on the difference in handling order status with OnBarUpdate and OnExecution. Right now stop and target orders are submitted in OnExecution after verifying the associated entry orders are filled. Are there any pitfalls if stop and target orders are submitted in OnBarUpdate after vefifying entries are filled? Suppose CalculateOnBarClose = false. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,556
Thanks: 261
Thanked 1,014 times in 995 posts
|
binwang2, the difference would be the slightly different timing when those methods are called then, OnBarUpdate() on each tick (thus can depend on the speed of the market), while OnExecution() would be called for the incoming executions directly, thus OnExecution() would give you more granular access in the event cycle.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Variable transfer/access between OnBarUpdate and OnExecution | noincomenojobnoassets | Strategy Development | 9 | 09-23-2009 03:36 AM |
| OnOrderUpdate() or OnExecution??? | whself beginner | Connecting | 8 | 03-25-2009 06:46 AM |
| OnExecution Stops | GreenTrade | Strategy Development | 1 | 03-18-2009 07:01 AM |
| OnExecution | Mike Winfrey | Strategy Development | 2 | 12-14-2008 06:59 AM |
| OnExecution question... | heech | Strategy Development | 3 | 11-26-2008 03:09 PM |