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


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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by marcus2300, Today, 02:46 AM
    0 responses
    2 views
    0 likes
    Last Post marcus2300  
    Started by mrgreentrading, 04-11-2025, 08:41 PM
    9 responses
    77 views
    0 likes
    Last Post mrgreentrading  
    Started by michelz, 02-18-2025, 08:30 AM
    38 responses
    1,096 views
    0 likes
    Last Post danwcw
    by danwcw
     
    Started by Taddypole, 06-18-2024, 11:58 AM
    4 responses
    95 views
    0 likes
    Last Post music_p13  
    Started by davydhnz, 04-21-2025, 06:39 AM
    2 responses
    33 views
    0 likes
    Last Post davydhnz  
    Working...
    X