Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjatrader Help regarding historical data and live data

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

    Ninjatrader Help regarding historical data and live data

    Hi Ninjatrader Team,

    Can you please tell me what is Ninjatrader doing or looking at when I type this code in. (what bars is it looking at)

    Code:
    if (Close[-4] >= Open[0]
    .

    When I run historical return the results look very good but when I go live nothing happens, or the chart looks very weird

    #2
    Originally posted by wallsteetking View Post
    Hi Ninjatrader Team,

    Can you please tell me what is Ninjatrader doing or looking at when I type this code in. (what bars is it looking at)

    Code:
    if (Close[-4] >= Open[0]
    .

    When I run historical return the results look very good but when I go live nothing happens, or the chart looks very weird
    Maybe the more important question is what you intend your statement to mean. As written, it is an attempt to peek 4 bars into the future. Is that what you intended?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DayTradingDEMON, Today, 09:28 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    8 responses
    31 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by helpwanted, Today, 03:06 AM
    2 responses
    21 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by navyguy06, Today, 09:28 AM
    0 responses
    2 views
    0 likes
    Last Post navyguy06  
    Started by rjbtrade1, 11-30-2023, 04:38 PM
    2 responses
    77 views
    0 likes
    Last Post DavidHP
    by DavidHP
     
    Working...
    X