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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    47 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    15 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X