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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    238 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    154 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    163 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    246 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    199 views
    0 likes
    Last Post CarlTrading  
    Working...
    X