Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Lowest low..3day

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • zachj
    replied
    That got it, just needed a [0] on the end. Thank You

    Leave a comment:


  • NinjaTrader_CalH
    replied
    Zachj,

    I do apologize, that is indeed correct.

    You will need to use MIN(Lows[1], 3); That will return the lowest price from 3 bars ago.
    http://www.ninjatrader.com/support/h...inimum_min.htm

    Leave a comment:


  • zachj
    replied
    Originally posted by NinjaTrader_Cal View Post
    Hi Zachj,

    Thank you for your post.

    You may want to look into using LowestBar() function to get the lowest price over a specified look back period -
    http://www.ninjatrader.com/support/h...?lowestbar.htm

    Additionally, you would want to use one day instead of three and use try this code -
    Code:
    LowestBar(Lows[1], 3);
    Let me know if I can be of further assistance.

    This isn't giving the price though, it's giving the # of bars back? I see it in the print output, it show 1, 2 or 3 not a price.

    Leave a comment:


  • NinjaTrader_CalH
    replied
    Zachj,

    Lows is used for the BarsArray collection to access the particular Data Series.

    In this case Lows[1] will use the first Data Series that you have added to the script.

    Index [0] will always be the primary Data Series.

    http://www.ninjatrader.com/support/h....html?lows.htm

    Leave a comment:


  • zachj
    replied
    The [1] you use below is for Index 1 correct?

    Leave a comment:


  • NinjaTrader_CalH
    replied
    Hi Zachj,

    Thank you for your post.

    You may want to look into using LowestBar() function to get the lowest price over a specified look back period -
    http://www.ninjatrader.com/support/h...?lowestbar.htm

    Additionally, you would want to use one day instead of three and use try this code -
    Code:
    LowestBar(Lows[1], 3);
    Let me know if I can be of further assistance.

    Leave a comment:


  • zachj
    started a topic Lowest low..3day

    Lowest low..3day

    How would I go about getting the lowest low of the previous 3 days? I was trying to use Add("ABC", PeriodType.Day,3); and use Lows[1][0] but that apparently gives the value for 3 days back instead of the whole 3day period.

    Looking at it again it actually looks like Add("ABC", PeriodType.Day,3); & Lows[1][0] is giving the low from 4 days back?
    Last edited by zachj; 12-24-2013, 08:17 AM.

Latest Posts

Collapse

Topics Statistics Last Post
Started by Newtrader101, Today, 06:36 AM
1 response
14 views
0 likes
Last Post NinjaTrader_Spencer  
Started by Rainmakersg, Today, 12:34 AM
3 responses
20 views
0 likes
Last Post NinjaTrader_Jim  
Started by guidoisot, Today, 03:09 AM
2 responses
21 views
0 likes
Last Post guidoisot  
Started by ntbone, Yesterday, 10:31 PM
3 responses
23 views
0 likes
Last Post NinjaTrader_Jason  
Started by 7robert, Yesterday, 11:38 PM
3 responses
32 views
0 likes
Last Post 7robert
by 7robert
 
Working...
X