Topics
Replies
Balena
27 Jul 2015, 05:25
( Updated at: 13 Oct 2015, 01:36 )
RE:
This post was removed by moderator because it duplicates another post. /forum/calgo-support/6009?page=1#1
@Balena
Balena
27 Jul 2015, 05:15
( Updated at: 13 Oct 2015, 01:36 )
This post was removed by moderator because it duplicates another post. /forum/calgo-support/6009?page=1#1
@Balena
Balena
27 Jun 2015, 16:57
This post was removed by moderator, because it duplicates another post. /forum/calgo-support/5682?page=1#1
@Balena
Balena
27 Feb 2015, 16:21
RE:
Can you give the same type example of reading from a file back into cAlgo?
admin said:
using System; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.Indicators; using System.IO; namespace cAlgo.Robots { [Robot] public class WriteToFileExample : Robot { StreamWriter _fileWriter; protected override void OnStart() { var desktopFolder = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); var filePath = Path.Combine(desktopFolder, "ServerTimeExample.txt"); _fileWriter = File.AppendText(filePath);//creating file _fileWriter.AutoFlush = true;//file will be saved on each change } protected override void OnTick() { _fileWriter.WriteLine("Server Time: " + Server.Time); } protected override void OnStop() { _fileWriter.Close(); } } }
@Balena
Balena
13 Sep 2014, 23:52
you can use/modify these...
//if (Server.Time.DayOfWeek == DayOfWeek.Sunday && Server.Time > stopTime)
//return;
//if (Server.Time.DayOfWeek == DayOfWeek.Monday && Server.Time > stopTime)
//return;
//if (Server.Time.DayOfWeek == DayOfWeek.Tuesday && Server.Time > stopTime)
//return;
//if (Server.Time.DayOfWeek == DayOfWeek.Wednesday && Server.Time > stopTime)
//return;
//if (Server.Time.DayOfWeek == DayOfWeek.Thursday && Server.Time > stopTime)
//return;
if (Server.Time.DayOfWeek == DayOfWeek.Friday && Server.Time > resetTime.AddSeconds(ySeconds))
return;
if (Server.Time.DayOfWeek == DayOfWeek.Saturday)
return;
@Balena
Balena
03 Sep 2014, 23:06
RE:
tSpotware said:
Our tests show that there is no any significant difference between CPU consumption in cAlgo 1.23 and latest cAlgo 1.24. Probably performance issues that you observe do not relate to the latest update.
We deployed latest version to all our brokers. Different CPU consumption for different brokers could be caused because of different price feeds. For example, if broker provides ticks more frequently your indicators and cBots will require more CPU resources to handle all incoming ticks.
there is a problem for sure... it's not the bots... i see same cpu issue running 1hr as I do running 1 tick
@Balena
Balena
16 Jul 2014, 22:37
RE:
Spotware said:
If you refer to the quality of generated ticks we have great news for you. We are preparing tick data backtesting to be released. By using tick data backtesting you will be able to test your cBots with historical spreads. Furthermore, in tick data backtesting Bid and Ask prices come asynchronously with millisecond precision.
awesome news...
@Balena
Balena
19 Mar 2014, 07:16
RE: RE: RE:
One quick question... I have both a demo instance and a Live instance up on same cpu
when I make changes to one (add a robot, delete a robot, add code, rename, etc) the changes are seen in both instances
so how can I have different robots for each instance?
could you give more details on how you run a parallel system, no logic of course, just can't figure out how to have different robots for each instance
thanks
Cerunnos said:
You only need two different cAlgo instances on an operating system because the API does not allow for switching between accounts. That with the CPU should not matter, but you better inform at Scyware (support@scyware.com )...
Balena said:
Cerunnos said:
Hi. I'm using a parallel system consisting of a demo and live account. If the demo robot (seperate cAlgo instance) is successfull, a boolean variable will be set to true and the live robot will be unlocked. The communication between the robots is done over robolink (very simple - just a few lines of code are necessary), but you can also write a value into text file with StreamWriter and read it from the other robot with StreamReader. Hope that helps.
I currently tab between demo and live on the same cpu...
So if you don't mind sharing...
1. if I use the RobotLink will it work if I currently tab between demo and live on the same cpu; ie "cpu 1"?
2. do I have to run demo on "cpu 1", and live on "cpu 2"?
Thanks Again!
@Balena
Balena
27 Jul 2015, 05:45
RE:
I just tried your suggestion, logged out and then back in, ran backtest, same results... no data forward past 7/16/15
Spotware said:
@Balena