Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Graphics graphics, ...

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

    Graphics graphics, ...

    Please, what is the NT8 correct statement for the following;

    private void DrawArrow(int arrowSize, Graphics graphics, int x, int y, SolidColorBrush brush, bool up)

    I receive Error Message: The type or namespace name 'Graphics' could not be found (are you missing a using directive or an assembly reference) during a conversion from NT7 to NT8.

    Lolu

    #2
    Originally posted by omololu View Post
    Please, what is the NT8 correct statement for the following;

    private void DrawArrow(int arrowSize, Graphics graphics, int x, int y, SolidColorBrush brush, bool up)

    I receive Error Message: The type or namespace name 'Graphics' could not be found (are you missing a using directive or an assembly reference) during a conversion from NT7 to NT8.

    Lolu
    Hi Lolu,

    I had the same issue with "Graphics" when converting NT7 add-ons to NT8. I think "Graphics" may not be not supported in NT8. You can either use the simple Draw.ArrowUp/Down or use OnRender SharpDX coding for specific arrows.

    Comment


      #3
      Hello Lolu,

      Thanks for your post.

      We would suggest referencing NinjTrader 7 NinjaScript items that do not work in NinjaTrader 8 in the Code Breaking Changes page of the Help Guide. Under "Filter results" you can look for specific NinjaScript items that have changed in NinjaTrader 8.

      Code Breaking Changes - https://ninjatrader.com/support/help...ng_changes.htm

      Drawing methods NinjaTrader 8 - https://ninjatrader.com/support/help...t8/drawing.htm

      Custom plotting that was done with GDI+ graphics in the Plot() override is now done with SharpDX in OnRender. To get more acquainted with SharpDX rendering, please see the Help Guide article below, and please see the SampleCustomRender indicator that comes with NinjaTrader.



      We look forward to assisting.

      Comment


        #4
        Originally posted by aligator View Post

        Hi Lolu,

        I had the same issue with "Graphics" when converting NT7 add-ons to NT8. I think "Graphics" may not be not supported in NT8. You can either use the simple Draw.ArrowUp/Down or use OnRender SharpDX coding for specific arrows.
        Thanks ... I'll have a look at all these stuff that you have mentioned.

        Lolu

        Comment


          #5
          Originally posted by NinjaTrader_Jim View Post
          Hello Lolu,

          Thanks for your post.

          We would suggest referencing NinjTrader 7 NinjaScript items that do not work in NinjaTrader 8 in the Code Breaking Changes page of the Help Guide. Under "Filter results" you can look for specific NinjaScript items that have changed in NinjaTrader 8.

          Code Breaking Changes - https://ninjatrader.com/support/help...ng_changes.htm

          Drawing methods NinjaTrader 8 - https://ninjatrader.com/support/help...t8/drawing.htm

          Custom plotting that was done with GDI+ graphics in the Plot() override is now done with SharpDX in OnRender. To get more acquainted with SharpDX rendering, please see the Help Guide article below, and please see the SampleCustomRender indicator that comes with NinjaTrader.



          We look forward to assisting.
          Jim,

          Thanks, Jim ... I have lots of stuff to go through on this issue ... I'll try the best I can.

          Lolu

          Comment


            #6
            Gator - I was annoyed with the drop down menus for drawing tools, did a quick search for N8 pinning icons to the toolbar, and came up with your indicator. DEAD SIMPLE to install, and does EXACTLY what I was looking for - many thanks Bud !!! I'm a trader, not a programmer, so this gift from you is incredible, sooo many thanks, Man...J

            Comment


              #7
              Originally posted by Jaakson View Post
              Gator - I was annoyed with the drop down menus for drawing tools, did a quick search for N8 pinning icons to the toolbar, and came up with your indicator. DEAD SIMPLE to install, and does EXACTLY what I was looking for - many thanks Bud !!! I'm a trader, not a programmer, so this gift from you is incredible, sooo many thanks, Man...J
              Thanks. Right on. Keeping it simple for 43 years of trading is my best strategy.

              Cheers!

              Comment

              Latest Posts

              Collapse

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