• 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

Ticks above/below

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

    Ticks above/below

    Hi,
    How do I go about coding X number of Ticks above previous High? The time frame is in minutes.
    if (High[0]>=High[1]+ 4Ticks) {do something}

    Thanks

    #2
    Hello 2Look4me,

    Thank you for writing in.

    You will want to multiply the TickSize property by the number of ticks.

    https://ninjatrader.com/support/help.../?ticksize.htm

    Example:
    Code:
    if (High[0] >= High[1] + 4 * TickSize)
    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ypbtrainer, Yesterday, 05:38 PM
    1 response
    5 views
    0 likes
    Last Post brucerobinson  
    Started by AxelrodWins, Yesterday, 09:56 PM
    0 responses
    11 views
    0 likes
    Last Post AxelrodWins  
    Started by trader14, Yesterday, 08:12 PM
    0 responses
    8 views
    0 likes
    Last Post trader14  
    Started by GARZONJ, 01-17-2020, 11:22 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by mike09, 01-17-2020, 07:37 PM
    1 response
    25 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X