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

BzvOpeningRange

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

    BzvOpeningRange

    Hi

    For getting Todays low price value. We write the code.

    Syntax : double value = CurrentDayOHL().CurrentLow[0];


    Like that how do we use BzvOpeningRange Indicator in our strategy for getting Opening Range High/Low value.

    Syntax : ___________

    Thanks...
    Last edited by Sameer; 06-04-2013, 03:21 PM.

    #2
    Hello Sameer,

    Thanks for your note.

    The BzvOpeningRange indicator does not have these values in plots or in variables that are made public to call from another indicator.

    To get these values, you will need to edit the BzvOpeningRange indicator.

    You will need to add two dataseries which you will make public. Save the values for the highest high and lowest low to these dataseries.

    I have made these edits for you and called the edited indicator BzvOpeningRangeMod. Please look these edits over. The made differences are in the Variables region, the OnBarUpdate, and the Properties region.

    Once the edits are made the call syntax would be something like:

    double myDouble = BzvOpeningRange(Color.Orange, DashStyle.DashDotDot, 2, "0930", "0932").HighestHigh[0];


    Please let me know if this does not resolve your inquiry.
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thankssss a lot ChelseaB,

      I tried the code but it is not working and its giving an error : No overload for method BzvOpeningRangeMod takes '0' arguments.

      double OpenRangeLow = BzvOpeningRangeMod().lows[0];

      So please how to code it.

      Comment


        #4
        Hello,

        This indicator has properties that must be set. The arrangement/order of these properties that a indicator will take are called overload methods.

        For example:
        Code:
        double myDouble = BzvOpeningRange(Color.Orange, DashStyle.DashDotDot, 2, "0930", "0932").HighestHigh[0];
        or for the low
        Code:
        double myDouble = BzvOpeningRange(Color.Orange, DashStyle.DashDotDot, 2, "0930", "0932").LowestLow[0];
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Segwin, 05-07-2018, 02:15 PM
        14 responses
        1,789 views
        0 likes
        Last Post aligator  
        Started by Jimmyk, 01-26-2018, 05:19 AM
        6 responses
        838 views
        0 likes
        Last Post emuns
        by emuns
         
        Started by jxs_xrj, 01-12-2020, 09:49 AM
        6 responses
        3,294 views
        1 like
        Last Post jgualdronc  
        Started by Touch-Ups, Today, 10:36 AM
        0 responses
        13 views
        0 likes
        Last Post Touch-Ups  
        Started by geddyisodin, 04-25-2024, 05:20 AM
        11 responses
        63 views
        0 likes
        Last Post halgo_boulder  
        Working...
        X