Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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:	407
Size:	52.8 KB
ID:	1053418

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

Name:	bigger.png
Views:	394
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:	193
Size:	37.9 KB
ID:	1053441
        Josh G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,404 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        95 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        7 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        159 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        8 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X