NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 04-14-2008, 08:16 AM   #1
nico_p
Member
 
Join Date: Mar 2008
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
Default How to write correct syntax

How to I write the correct syntax in order to get the High value of a 1 period swing indicator while using the BarsArray[index]

Swing(1).SwingHigh(BarsArray[2])[0] ?

Thank you

Nico
nico_p is offline  
Reply With Quote
Old 04-14-2008, 08:21 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Likely should be
Swing(BarsArray[2], 1).SwingHigh[0]

Note: The intellisense feature in the NinjaScript editor usually is a good source to answer this type of questions.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-14-2008, 08:24 AM   #3
nico_p
Member
 
Join Date: Mar 2008
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
Default

thank you very much

Nico
nico_p is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax of BarsArray with LowestBar() method Sidhartha General Programming 7 04-13-2008 09:55 AM
Referencing the correct bar NinjaTrader_Josh Tips 0 01-01-2008 02:32 PM
Compiler bug or hidden syntax error sbgtrading General Programming 3 11-22-2007 07:14 AM
Syntax Warning on Ninja Editor but not Microsoft ct General Programming 2 10-05-2007 07:03 AM
Is this correct? ct General Programming 2 05-02-2007 05:06 PM


All times are GMT -6. The time now is 11:43 PM.