![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Member
|
Hello,
I would like to create a strategy using the VolumeUpDown indicator. My strategy must look at the last 2 green bars of the indicator. how can i write it? VolumeUpDown()[0]) is all what i can find. isn't there a (VolumeUpDown.VolumeDomwn()[0]) or(VolumeUpDown()[0].VolumeUp ??? Thanks for help Regards, Frederic |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Please try VolumeUpDown().Values[0][0] and VolumeUpDown().Values[1][0].
[0][0] being up. [1][0] being down.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
|
Hello Josh,
Thanks a lot. It is what I was looking for. I want that the my strategy look if the actual VolumeUpDown (Down) is greater than the precedent one. VolumeUpDown().Values[1][1] > VolumeUpDown().Values[1][0]) Is VolumeUpDown working with it? Thanks for all.. Regards, Frederic |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
If you want the current to be greater than the previous you need to do [1][0] > [1][1] not [1][1] > [1][0].
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Put Daily Volume on VolumeUpDown Indicator | dwalls | Indicator Development | 1 | 02-27-2009 10:06 AM |
| Volumeupdown indicator incorrect | chuckt101 | Miscellaneous Support | 3 | 11-19-2008 07:12 AM |