![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2007
Location: Russia
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
I was wondering if there is a way to catch the end of a minute bar when updating a strategy on a tick per tick basis?
I explain: protectedoverridevoid Initialize() { .... Add(PeriodType.Minute,1); CalculateOnBarClose = false; } |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
No, since the end of the bar only would be determined as the first tick of the new bar was seen.
BTW: No need for Add(PeriodType.Minute,1); Just execute your strategy on a 1 minute series.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: Jul 2007
Location: Russia
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
Knowing the end of the bar of a given context before the first tick of the next bar would be handy to update my entry or exit trigger one tick earlier. Thanks, Fabrice. |
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Thanks for your suggestion. We'll add it to the list.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Jun 2007
Posts: 40
Thanks: 0
Thanked 0 times in 0 posts
|
Fabrice,
Maybe is it possible to retrieve the time remaining from the indicator BarTimer. ( I do not know how to do it) |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
This is not possible.
Maybe PercentComplete would work? http://www.ninjatrader-support.com/H...tComplete.html
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Easiest way to check for last tick on a tick bar? | higler | General Programming | 8 | 02-28-2009 02:01 PM |
| Woodie's Pivots different on minute and tick charts. | laura | Charting | 11 | 09-06-2007 06:39 AM |
| Open tick to DOM | deanldavis475 | Connecting | 3 | 06-22-2007 08:11 AM |
| nt open tick | riccja | Connecting | 3 | 06-15-2007 12:18 PM |
| Tick counter gone? | LG | Charting | 2 | 02-06-2007 07:31 AM |