• 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

    #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

      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

          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

              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

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by fredfred, Today, 03:41 AM
                  2 responses
                  6 views
                  0 likes
                  Last Post fredfred  
                  Started by TraderYoda, Today, 03:33 AM
                  0 responses
                  0 views
                  0 likes
                  Last Post TraderYoda  
                  Started by pjsmith, Today, 02:56 AM
                  0 responses
                  2 views
                  0 likes
                  Last Post pjsmith
                  by pjsmith
                   
                  Started by ntbone, Yesterday, 08:10 PM
                  0 responses
                  10 views
                  0 likes
                  Last Post ntbone
                  by ntbone
                   
                  Started by chrislou, 08-28-2015, 03:27 AM
                  14 responses
                  2,882 views
                  0 likes
                  Last Post nkhoi
                  by nkhoi
                   
                  Working...
                  X