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 KevinWalker, Today, 07:48 PM
    0 responses
    3 views
    0 likes
    Last Post KevinWalker  
    Started by WaveAtElliot, Today, 05:11 PM
    1 response
    10 views
    1 like
    Last Post hdge4u
    by hdge4u
     
    Started by bosajin, Yesterday, 09:15 AM
    5 responses
    40 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by Dolfan, Today, 12:24 PM
    4 responses
    23 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by WeyldFalcon, Today, 11:09 AM
    7 responses
    30 views
    0 likes
    Last Post WeyldFalcon  
    Working...
    X