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

help to draw custom candle with my data

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

    help to draw custom candle with my data

    Hi all
    i want to draw candles in chart.
    so i want to change OCLH of current candle and redraw it, or cancel chart drawing and draw my candle.
    Can anybody help me?

    #2
    Hello salehi,

    We can point you to similar implementations for this but actual coding will have to be done on your end.

    The system indicator HeikenAshi draws chart bars and hides the default OHLC series. You can edit to view source code by clicking Tools > Edit NinjaScript > Indicator > Open HeikenAshi.

    You can also view source code for all bar types. Browse to:
    My Documents\NinjaTrader\bin\custom\type\@BarTypes.cs
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hi.
      So RyanM1 said that the system indicator HeikenAshi draws chart bars and hides the default OHLC series.
      I don't see in the code wherhe is the part that hides the OHLC.
      Is this possible to have the the system indicator HeikenAshi drawing both the heikin ashi AND the OHLC candles on the chart ?

      Regards.

      Comment


        #4
        Hello thanajo,

        Thanks for your post.

        Just to be clear, you are posting in NinjaTrader7 general development forum.

        In lines 58 - 62 the charts bars and outline are set to transparent which hides the bars.

        If you want to make a copy of the indicator and comment out those lines then you would see both.



        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Outch, my bad. My question was for NT8.
          But answer is the same ! So thank you very much.
          Last edited by thanajo; 05-07-2021, 11:01 AM.

          Comment


            #6
            Hello thanajo,

            Thanks for your reply.

            In NinjaTrader8 you can just add the indicator to the chart and it will display Heiken-Ashi bars and then add a second (duplicate) data series and put the second data series in the same panel to see both real and Heiken-Ashi bars. No need to program.

            If you would rather modify the indicator, you can make a copy of it and comment out lines 66 & 67, then compile. The indicator will then show both bars.

            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by usazencort, Today, 01:16 AM
            0 responses
            1 view
            0 likes
            Last Post usazencort  
            Started by kaywai, 09-01-2023, 08:44 PM
            5 responses
            603 views
            0 likes
            Last Post NinjaTrader_Jason  
            Started by xiinteractive, 04-09-2024, 08:08 AM
            6 responses
            22 views
            0 likes
            Last Post xiinteractive  
            Started by Pattontje, Yesterday, 02:10 PM
            2 responses
            21 views
            0 likes
            Last Post Pattontje  
            Started by flybuzz, 04-21-2024, 04:07 PM
            17 responses
            230 views
            0 likes
            Last Post TradingLoss  
            Working...
            X