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

Identifying Low of bar while processing by tick

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

    Identifying Low of bar while processing by tick

    hello ... I need to identify the low and the high of a given bar in my strategy, however the strategy executes at every tick (CalculateOnBarClose = false). Can you direct me to any resource that would help me achieve this. thank you!

    #2
    Hello,

    Thanks for writing in.

    You can do this by using FirstTickOfBar and the index of 1.

    For example:

    if (FirstTickOfBar)
    Print("Low: " + Low[1] + " High: " + High[1]);

    Below is a link to the help guide on FirstTickOfBar.
    http://www.ninjatrader.com/support/h...ttickofbar.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DawnTreader, Yesterday, 05:58 PM
    5 responses
    22 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by kevinenergy, Today, 12:01 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by ILM8008, Today, 01:31 PM
    0 responses
    3 views
    0 likes
    Last Post ILM8008
    by ILM8008
     
    Started by swjake, Today, 12:04 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Richozzy38, Yesterday, 01:06 PM
    6 responses
    26 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X