• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

max/low of the day before

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

    max/low of the day before

    Hello, how can i save the last value of currentdayohl of the day before? thank's

    #2
    Hello bergimax,

    There is an excellent indicator that gets the Prior day Open High Low Close that is included with NinjaTrader.

    You can access the prior day values from within your indicator or strategy by using the statements below.
    Code:
     PriorDayOHLC().PriorOpen[0]
     PriorDayOHLC().PriorHigh[0]
     PriorDayOHLC().PriorLow[0]
     PriorDayOHLC().PriorClose[0]
    You can view the code for it by doing the following:
    From the NinjaTrader control center window
    Click Tools
    Select Edit Ninjascript
    Click Indicator
    Open the PriorDayOHLC indicator.

    Here is a reference on the usage of the PriorDayOHLC indicator
    http://www.ninjatrader.com/support/h...r_day_ohlc.htm

    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by brian meade, Today, 01:39 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by Johnny Santiago, Today, 12:20 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by NinjaTrader_Brandon, Today, 10:24 AM
    0 responses
    46 views
    0 likes
    Last Post NinjaTrader_Brandon  
    Started by ptertich, Today, 07:56 AM
    2 responses
    14 views
    0 likes
    Last Post Johnny Santiago  
    Started by aslane, Today, 08:24 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X