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:
    [COLOR="RoyalBlue"]using [/COLOR]AngleSharp.Parser.Html;
    [COLOR="RoyalBlue"]using [/COLOR]AngleSharp;
    ....
     HtmlParser parser = [COLOR="royalblue"]new [/COLOR]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 gravdigaz6, Today, 11:40 PM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by MarianApalaghiei, Today, 10:49 PM
                  3 responses
                  10 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by XXtrader, Today, 11:30 PM
                  0 responses
                  4 views
                  0 likes
                  Last Post XXtrader  
                  Started by love2code2trade, Yesterday, 01:45 PM
                  4 responses
                  28 views
                  0 likes
                  Last Post love2code2trade  
                  Started by funk10101, Today, 09:43 PM
                  0 responses
                  9 views
                  0 likes
                  Last Post funk10101  
                  Working...
                  X