Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

cart before the horse

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

    cart before the horse

    Hi,
    Here's my dilemma:
    When I enter a short position using
    EnterShortLimit(lowestLow)
    I have programmed a two point (8 tick) profit target using:
    SetProfitTarget(CalculationMode.Ticks, 8)
    When I check the chart and both the entry and the exit happens on the same bar, the cart comes before the horse meaning the target price is reached before the entry price when the price starts out low and goes high. It seems the program doesn't know which came first....
    How do I overcome this?
    Thanks
    KK
    Attached Files

    #2
    If you are backtesting there is no intrabar granularity. You only have OHLC and as such you will not know if the High was hit before the Low or vice versa.

    What you can try is add more granularity through this tip: http://www.ninjatrader-support2.com/...ead.php?t=6652
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      the cart....

      I would imagine then, that this won't be a problem in live trading if the sell signal (the horse) is the first signal traded?

      Thanks for your input (pun intended!)
      Ken

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      647 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      368 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      571 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X