Topics
Replies
cristianpauna
31 Jan 2016, 20:34
( Updated at: 21 Dec 2023, 09:20 )
I repeted your code for #USNDAQ100 under a FxPro cTrader real account ... the cBot is still blocking on my platform ... only for #USNDAQ100 ...
@cristianpauna
cristianpauna
31 Jan 2016, 19:22
Thank you for your reply.
Any code works for "US30" but no code works for "USNDAQ100" ...
I still wait for a solution ... it seams USNDAQ100 series are the problem ... not the code ...
@cristianpauna
cristianpauna
30 Jan 2016, 10:03
There is still no answer for this error ... to be more clear run this code on cAlgo with 5M timeframe for "#USNDAQ100" ...
//Run this on 5Minute timeframe ... MarketData.GetSeries("#USNDAQ100", TimeFrame.Hour); return no data even I wait more than on hour ...
using System; using System.Net; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.Indicators;
using cAlgo.API.Internals; using cAlgo.API.Requests; using System.IO; using Microsoft.Win32;
namespace cAlgo.Robots
{[Robot("Test1HDataSeries", AccessRights=AccessRights.FullAccess)]
public class Trade:Robot
{
private MarketSeries HS;
protected override void OnStart()
{
Print("Start the test program ...");
HS=MarketData.GetSeries("#USNDAQ100", TimeFrame.Hour);
Print("If you get this message ... the error was fixed ...");
}
protected override void OnTick(){Print("Do something ...");}
}
}
//Run this on 5Minute timeframe ... MarketData.GetSeries("#USNDAQ100", TimeFrame.Hour); return no data even I wait more than on hour ...
@cristianpauna
cristianpauna
18 Jan 2016, 08:40
The error is still active. Starting the US trading session on 14.01.2016, the same error occurs for #US30 index on hourly timeframe ... MarketData.GetSeries(TimeFrame.Hour); block the cBot forever ... We wait for a solution ...
@cristianpauna
cristianpauna
17 Sep 2015, 11:49
RE:
Thank you very much indeed !!!
moneybiz said:
To download something from internet you need to use WebClient.
Add the following using statement to the top, which includes the WebClient class:
using System.Net;
Then inside your OnStart() method you can download the content of the file as follows:
var client = new WebClient(); var content1 = client.DownloadString("http://www.pauna.biz/8052756.txt"); var content2 = client.DownloadString("http://www.pauna.biz/8052756.txt"); if (content1.Contains("8052756")) { // Do something. }
That's it.
@cristianpauna
cristianpauna
06 Feb 2016, 08:33
The problem was solved.
Thank you for your support!
Cristian Pauna
@cristianpauna