Announcement

Collapse
No announcement yet.

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.



        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.

            Comment

            Latest Posts

            Collapse

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