Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bigger than, Lowest than

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

    Bigger than, Lowest than

    Hello,
    I need the edit strategy to make the entry run under the condition that today's volume will be greater than the previous ten lines of volume and at the same time Low Candles the lowest for the last ten candles. Thank you for any advice.

    #2

    Hello Quikc,
    Thanks for your post and welcome to the NinjaTrader forum.

    You can use the MAX() and MIN() indicators to get the highest and lowest values over a period and you can pass the VOL() indicator in as a series.



    For example, to get the maximum volume reading from the VOL() indicator over the last 10 bars you could do something similar to the following snippet:
    Code:
    Print("The maximum volume reading over the last 10 bars is  : "+MAX(VOL(),10)[0]);
    Please see the following reference sample in our help guide that demonstrates how to get the highest high or lowest low during a specific period: https://ninjatrader.com/support/help...est_high_o.htm
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Thank you very much,
      if I worked in the wizard, would it look like this ?:

      1.) The lowest low for ten candles:
      Click image for larger version

Name:	lowest.png
Views:	469
Size:	52.8 KB
ID:	1053418

      2.) Highest volume for ten lines:
      Click image for larger version

Name:	bigger.png
Views:	460
Size:	53.0 KB
ID:	1053419

      Thanks.

      Comment


        #4
        Quikc,

        For the first one that looks correct, except you would want to use "<=" instead of just "<" to compare the two values. If the current price is the lowest low over that 10 bar period it would be equal.

        For the second one if you want to compare the current volume to the max volume over a 10 bar period you will want to be sure to set the "Input series" for the MAX() indicator to Volume.


        Click image for larger version

Name:	2019-04-04_0745.png
Views:	221
Size:	37.9 KB
ID:	1053441
        Josh G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        54 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        29 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        40 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        56 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        47 views
        0 likes
        Last Post CarlTrading  
        Working...
        X