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

Wicks over candle

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

    Wicks over candle

    I wrote a custom indicator on 6.5 to draw my candles (a variation of the heikin ashi).

    This works fine on 6.5 but when I migrated over to NT 7 my wicks are frequently painted on top of the candles.

    This did not occur in 6.5.

    I have also ensured that I paint the wicks first before the candle in the code but this makes no difference.

    Any suggestions?

    Thanks

    #2
    Hello,

    Can you please send a screenshot of this so I can see whats going on. Also, can you please post the code your using to draw this.

    To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CRTL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

    I look forward to assisting you further.

    Comment


      #3
      Hi Brett

      Attached is the screen shot.


      Code is as follows:
      1. in OnBarupdate


      if (ChartControl != null && saveDownColor == Color.Empty && ChartControl.ChartStyle.DownColor != Color.Transparent)
      {
      saveDownColor = ChartControl.ChartStyle.DownColor;
      saveUpColor = ChartControl.ChartStyle.UpColor;
      savePenColor = ChartControl.ChartStyle.Pen.Color;

      ChartControl.ChartStyle.DownColor = Color.Transparent;
      ChartControl.ChartStyle.UpColor = Color.Transparent;
      ChartControl.ChartStyle.Pen.Color = Color.Transparent;
      }


      miscellaneous logic followed by the following to draw the candles


      DrawLine(CurrentBar.ToString() + "OC", true, 0, Values[0][0], 0, Values[3][0], barColor, DashStyle.Solid, ShadowWidth * 3);
      DrawLine(CurrentBar.ToString(), true , 0, Values[1][0], 0, Values[2][0], shadowColor, DashStyle.Solid, ShadowWidth);

      Thanks
      Attached Files
      Last edited by cnecorp; 12-07-2010, 12:11 PM.

      Comment


        #4
        Hello,

        Thanks for posting.

        Unfortunately this is unsupported at this time and I do not have anything to point you towards at this time. I will leave this open if some of the community may be able to help here however.

        Comment


          #5
          Brett

          This is not a case of doing something out of the ordinary nor are we asking you to debug custom code.

          It is NT's programming language variant and NT syntax not working as prescribed.

          It is in fact the same code from the NT 6.5 supplied Heikin Ashi indicator

          Merely migrating the supplied Heikin Ashi with no custom coding would reproduce the issue.

          May I request that you log this as an issue with your development team for investigation as it should be a supported issue. My guess is that it has something to do with Z-Orders or similar.

          The service levels from you and the support team is exemplary.

          Thanks so much for your help in this matter.
          Last edited by cnecorp; 12-07-2010, 04:28 PM.

          Comment


            #6
            cnecorp, Brett is correct here - you can use the unsupported ChartControls but we do not offer support for it - 6.5 code may break in NT7, especially when you're working with unsupported methods. For an alternative Heikin Ashi implementation please check the new NT7 Heikin Ashi indicator we now ship.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Thanks Bertrand.

              I'll accept your position although I disagree with it.

              On 6.5 you can control the sequence by painting the wicks first followed by the candle in your code.

              On 7.0 it ignores the coded sequence and paints them at random.

              This has far wider implications than just the Heikin Ashi. It is a fundamental requirement of programming and as highlighted by the number of times it has been raised in other threads, an issue.

              I cannot use your supplied HA because it lacks our custom coding.

              I am not asking for an immediate fix as I don't think there will be any.

              All I am asking is for it to be logged with your development team for investigation.

              Last edited by cnecorp; 12-14-2010, 05:41 PM.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by PaulMohn, Today, 05:00 AM
              0 responses
              8 views
              0 likes
              Last Post PaulMohn  
              Started by ZenCortexAuCost, Today, 04:24 AM
              0 responses
              6 views
              0 likes
              Last Post ZenCortexAuCost  
              Started by ZenCortexAuCost, Today, 04:22 AM
              0 responses
              3 views
              0 likes
              Last Post ZenCortexAuCost  
              Started by SantoshXX, Today, 03:09 AM
              0 responses
              16 views
              0 likes
              Last Post SantoshXX  
              Started by DanielTynera, Today, 01:14 AM
              0 responses
              5 views
              0 likes
              Last Post DanielTynera  
              Working...
              X