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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    646 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    367 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
    570 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