• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add AngleSharp library

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

    Add AngleSharp library

    I want to parse some web-pages from my strategy.

    I choose AngleSharp.

    I made dll, add a reference (see screen-shot) and write this code:

    Code:
    using AngleSharp.Parser.Html;
    using AngleSharp;
    ....
     HtmlParser parser = new HtmlParser();
    and got error - please, look at screen-shot once more.

    I tried to add reference at mscorlib.dll but get error like "It was already added".

    How to fix this?

    How to fix this?
    Attached Files
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.practic,

    Thank you for writing in.

    Please add a reference to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5. 2\Facades\System.Runtime.dll and attempt compile once more.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      I got this error:
      Attached Files
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #4
        Hello fx.practic,

        Please remove the reference to that .dll and attempt to compile again.
        Zachary G.NinjaTrader Customer Service

        Comment


          #5
          I got error from post #1 again:
          Attached Files
          fx.practic
          NinjaTrader Ecosystem Vendor - fx.practic

          Comment


            #6
            Hello fx.practic,

            Have you added a reference to System.Runtime.dll?

            Additionally, have you added the using statement?

            Code:
            using System.Runtime;
            Zachary G.NinjaTrader Customer Service

            Comment


              #7
              Sorry, I'm a bit confused in Your instructions.

              Here all changes I've did in indicator code and references.
              Attached Files
              fx.practic
              NinjaTrader Ecosystem Vendor - fx.practic

              Comment


                #8
                Hello fx.practic,

                Please remove the reference to System.Runtime.dll and shut down NinjaTrader.

                Once you have done this, navigate to the (My) Documents\NinjaTrader 8 directory on your computer. Right-click on the Config.xml file and select Edit.

                Once the Config.xml file has been opened, you will need to scroll down to the <References> section.

                Below <string>System.Xml.Ling.dll</string>, add:
                Code:
                <string>System.Runtime.dll</string>
                Save the file and restart NinjaTrader. Then, attempt to compile once more.
                Zachary G.NinjaTrader Customer Service

                Comment


                  #9
                  Yahoo! Thank You very much!

                  I attach screen-shot of Config.xml - may be it will help to someone.
                  Attached Files
                  fx.practic
                  NinjaTrader Ecosystem Vendor - fx.practic

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by tff2011, Today, 01:15 AM
                  1 response
                  14 views
                  0 likes
                  Last Post NinjaTrader_PatrickG  
                  Started by StevenNelson, Today, 05:39 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post StevenNelson  
                  Started by Tradix10, 11-14-2018, 09:34 PM
                  25 responses
                  668 views
                  1 like
                  Last Post aprendiz  
                  Started by GLFX005, Today, 05:05 AM
                  0 responses
                  6 views
                  0 likes
                  Last Post GLFX005
                  by GLFX005
                   
                  Started by ArmKnuckle, Today, 01:25 AM
                  0 responses
                  18 views
                  0 likes
                  Last Post ArmKnuckle  
                  Working...
                  X