I want to use Html Agility Pack to grab CME data from indicator.
Html Agility Pack consist of 9 folders:
- [Net20]
- [Net40]
- [Net40-client]
- [Net45]
- [sl3-wp]
- [sl4]
- [sl4-windowsphone71]
- [sl5]
- [winrt45]
Each folder contain 3 files:
- HtmlAgilityPack.dll
- HtmlAgilityPack.pdb
- HtmlAgilityPack.xml
([winrt45] folder contain, also, "HtmlAgilityPack.pri" file)
I put "using HtmlAgilityPack;" string to my indicator.
Then I made right click -> References in indicator window (i tried HtmlAgilityPack.dll from all folders.
After that I compilled my simplest code with no errors.
string url = "http://www.cmegroup.com/trading/energy/crude-oil/light-sweet-crude_quotes_globex_options.html?exchange=XNYM&foi=OPT&venue=G&productCd=CLX3&underlyingContract=CL&floorContractCd=CLX3&expMonth=201311&prodid="; string htmlCode = ""; HtmlWeb webGet = new HtmlWeb(); HtmlAgilityPack.HtmlDocument document = new HtmlAgilityPack.HtmlDocument(); document = webGet.Load(url); Print( htmlCode );
(I also tried to put HtmlAgilityPack.dllfiles to [c:\Users\Andrei\Documents\NinjaTrader 7\bin\Custom\] folder - no result).
And I tried to use "gacutil.exe" to register library in system.
I using Windows 8 x64.
Please, tell me what else I have to do to use Html Agility Pack objects in NinjaScript?
Thank You!
Comment