Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Kagi Chart: exit on the close of current bar,rather than on the open

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

    Kagi Chart: exit on the close of current bar,rather than on the open

    To solve some of the problems of back tests with Kagi charts, you could write the code , in a way that when you enter the market you take the close of current bar rather than the open.
    Is this possible?
    The problem is in the trades in profit, as you can see from the attached graphs. While you cancel when the trade is a loss, as can be seen from the graphs attached.

    Roberto
    Attached Files

    #2
    Hi Roberto,

    Thank you for your post.

    This is not possible with the back test. The reason is that we don't know the last close price of the bar to the next bar is started. This is due the fact that the last tick of the bar is the first tick of the next bar. This last tick is what closes that bar.

    The link below will explain how the bars are built.
    http://www.ninjatrader.com/support/h..._are_built.htm

    Let me know if I can be of further assistance
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    562 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    325 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X