![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2009
Location: DFW
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
|
I'm using calculations on one data series to trigger trades on another using AtmStrategyCreate(). I want to use CalculateOnBarClose = true; also.
If I trap only the BarsInProgress of the analysis data series, then the AtmStrategyCreate() submits orders in the analysis data series, not the traded data series. I've found the overrides on the standard "enterLong" type order triggers, but I don't see an override for AtmStrategyCreate(). How can I use AtmStrategyCreate() to submit an order for the traded instrument immediately after a bar completes on my analysis series? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
Prospectus, unfortunately there's no overload for this - you would have to work with CalculateOnBarClose = false to submit an order on the next available tick. To do trigger calculations on the bar close, you can work with FirstTickOfBar and referencing then one bar back further in your conditions to make up for calling those on the open of the next bar.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2009
Location: DFW
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks for the tip. Changing CalculateOnBarClose will work for me. Ninja support rules!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multi-time frame strategy - Longer-term real-time calculations | Shansen | Strategy Development | 1 | 04-19-2009 06:36 AM |
| multi-instrument when one instrument doesn't have data | cunparis | Suggestions And Feedback | 2 | 03-16-2009 06:05 AM |
| Questions regarding multi-day, multi instrument capability | bridenour | Strategy Development | 39 | 01-24-2009 07:08 PM |
| Designing multi-instrument, multi-timeframe | mikeyork | Strategy Development | 5 | 07-08-2008 08:47 PM |
| Multi Time Frame/Multi Instrument? | GreenTrade | Strategy Development | 3 | 01-14-2008 02:24 PM |