• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 rouillard, Today, 03:34 PM
    0 responses
    10 views
    0 likes
    Last Post rouillard  
    Started by mquinteroj, Today, 02:41 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by JPPoulin, Today, 01:32 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by bltdavid, Today, 01:09 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by pstrusi, Today, 12:50 PM
    2 responses
    8 views
    0 likes
    Last Post pstrusi
    by pstrusi
     
    Working...
    X