Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

code for graphics kagi

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

    code for graphics kagi

    I try to understand how to structure a code to make it work on Kagi charts. That is, that the bactest are reliable!
    Is anyone interested in helping to solve this problem?
    Thank you.
    Hello.
    Roberto

    #2
    Hi Italy,

    Thank you for your post.

    What is the exact question that you are trying to ask?

    There are many ways to structure code to work with bar types.
    You may want to start by knowing how a Kagi bar works with NinjaTrader and then you can start building off an idea based of that.

    Below are links on Bar Types and Strategy/Indicator Development
    http://www.ninjatrader.com/support/h...?bar_types.htm
    http://www.ninjatrader.com/support/h...strategies.htm
    http://www.ninjatrader.com/support/h...indicators.htm
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      I already have some code that made ​​use of candlestick charts. I tried them and they work well on the charts Kagi. The problem is in the backtest the results of which do not correspond with the real time.
      I wanted to understand how to intervene on the code to find a solution. I was told to use CalculateOnBarClose = false, for Kagi charts. What does it mean?
      Thank you.

      Comment


        #4
        You won't be able to use CalculateOnBarClose set to false as the backtest is always going to be set to true.

        However you can use Intrabar granularity to get the effect of CalculateOnBarClose set to false in a backtest.

        Below is a reference sample on how to accomplish the Intrabar Granularity -
        http://www.ninjatrader.com/support/f...ead.php?t=6652
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by PaulMohn, Today, 03:49 AM
        0 responses
        7 views
        0 likes
        Last Post PaulMohn  
        Started by inanazsocial, Today, 01:15 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by rocketman7, Today, 02:12 AM
        0 responses
        10 views
        0 likes
        Last Post rocketman7  
        Started by dustydbayer, Today, 01:59 AM
        0 responses
        4 views
        0 likes
        Last Post dustydbayer  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        5 responses
        23 views
        0 likes
        Last Post trilliantrader  
        Working...
        X