Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

P&F charts

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

    P&F charts

    Hi

    I am having trouble back testing a strategy based on a P&F chart. Currently the simple strategy is GoLong when an up bar starts and GoShort when a down bar starts. In order to get in at the start of the bar I am having to do the following :-

    if (Historical)
    {
    if (Open[0] < Close[1])
    EnterLong();
    if (Open[0] > Close[1])
    EnterShort();
    }
    elseif (!Historical)
    {
    if (Open[0] > Close[1])
    EnterLong();
    if (Open[0] < Close[1])
    EnterShort();
    }

    This is baffling to me !

    Thanks for any help

    regards dave



    #2
    Hi Dave, thanks for the post - unfortuntately there are known limitations with backtesting point and figure bars per default accurately - in a backtest there's not enough granular info available to replicate the realtime order execution behavior on those types - please review also the intro section on our bars types - http://www.ninjatrader.com/support/h.../bar_types.htm

    With NinjaTrader's flexible programming framework, you can submit orders to a finer series for execution though to simulate a more accurate, intrabar fill -

    You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    52 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X