![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Feb 2012
Posts: 17
Thanks: 1
Thanked 0 times in 0 posts
|
Hi
Can you tell me if FirstTickOfBar is valid only for the primary bars object or is it valid for other BarArray ? i.e protectedoverridevoid Initialize() { Add(Instrument.FullName ........); // Instrument 1 Add(Instrument.FullName ........); // Instrument 2 ..... protectedoverridevoid OnBarUpdate() { if (FirstTickOfBar == true) // Valid for base instrument if(BarsInProgress !=0) { if (BarsInProgress ==1) { If (FirstTickOfBar == true) // Is this valid for Instrument 1 { if (BarsInProgress ==2) { If (FirstTickOfBar == true) // Is this valid for Instrument 2 { Thanks for any help |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
Downhillryder, welcome to our forums here - FirstTickOfBar would work in any bars series context.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Tags |
| firsttickofbar |
| Thread Tools | |
| Display Modes | |
|
|