![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Mar 2008
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Mar 2008
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
|
thank you very much
Nico |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |