Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Long Entry at the break out price on historical data

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

    Long Entry at the break out price on historical data

    While working on a strategy to backtest , I am facing an issue : I want to enter long / short on break of a 30 min swing high / low. But when I use EnterLong or EnterShort methods , it enters on the open price of the next candle and not on the breakout price.

    I understand that this is because of the historical nature of data, but us there any way we can simulate the long/short price to be the exact breakout price and not next candle open or close !?

    #2
    Hello sachin shetty,

    You would either need to use high fill resolution here or an added series to add granularity for intrabar fills. The other alternative is to use a realtime testing mode such as market replay or live data.
    https://ninjatrader.com/support/help...FillResolution
    There is a sample of backtesting with added granularity here: https://ninjatrader.com/support/help...ipt_strate.htm

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by op1031, Today, 01:52 AM
    0 responses
    0 views
    0 likes
    Last Post op1031
    by op1031
     
    Started by Aramunno, Yesterday, 10:11 PM
    2 responses
    14 views
    0 likes
    Last Post Aramunno  
    Started by sdauteuil, Yesterday, 09:38 PM
    0 responses
    4 views
    0 likes
    Last Post sdauteuil  
    Started by fscabrera03, Yesterday, 09:23 PM
    0 responses
    7 views
    0 likes
    Last Post fscabrera03  
    Started by WeyldFalcon, Yesterday, 07:03 PM
    0 responses
    7 views
    0 likes
    Last Post WeyldFalcon  
    Working...
    X