Topics
Replies
bfis108137
07 Jan 2016, 08:39
RE:
bfis108137 said:
There is a name attribute but what does it do? I can't see the name of the robot change in my list of robots.
What I mean is the way the robot starts is
[Robot("newRobot")]
It seems that the text here doesn't matter. In the api reference it's called the name attribute.
@bfis108137
bfis108137
02 Dec 2012, 02:42
you could always write to a file in one platform and read from it in the other
@bfis108137
bfis108137
29 Nov 2012, 23:26
( Updated at: 21 Dec 2023, 09:20 )
RE:
No I mean can I programatically take a screen shot?In cTrader you can click on the chartshot icon from the toolbar to the right. This will turn the cursor into a camera button. You may click it on the chart.
Files are saved by default in this location: C:\Users\...\Documents\cTrader\Chartshots
They are also saved on the web at http://spotware.ctrader.com/images/screens/...
After you click on the camera button it will pop up a new browser page with the information.
@bfis108137
bfis108137
29 Nov 2012, 09:34
RE:
Have you actually tried this? When I create create a class library, it puts a whole bunch of files in the Robots folder and it doesn't compile to algo file. This is of course because a class library is a dll file. The only way I have found is to code the robot in vs, and then copy the code to cAlgo editor and compile there. I think probably a better soltion would be to implement a few features in the cAlgo editor and I think most people would be happy. Features like hotkeys for things like build and run, code blocking so after you write a function or region you can colapse it so it doesn't get in the way, search, and comment out block of text with hotkey. If these were implemented I think most people wouldn't even care about visual studio. Obviously if there was a way in force visual studio to use the cAlgo comiler then this might be easier but I don't know too much about that.You can create a class library in c#. Make sure you add a reference to the cAlgo.API and that you are using .NET framework 4. You can build the project in visual studio and set the project output path to the folder where the indicators/robots are saved. This will create the algo file and then you will need to create an empty text (cs) file with the same name so that you can find it in the indicators/robots list and execute it there. Alternatively you may just copy paste the code into the cAlgo editor and just build it there.
Let us know if you require additional help.
@bfis108137
bfis108137
28 Nov 2012, 17:59
( Updated at: 21 Dec 2023, 09:20 )
I didn't know that you had to add the image into the post. Anyways, here is the image.
@bfis108137
bfis108137
28 Nov 2012, 17:57
Ok so look at the attached photo. The bottom box is where my new class is, but the name of the new class doesn't show up when I start to type the name of the class. It doesn't matter if I compile either.
@bfis108137
bfis108137
28 Nov 2012, 10:17
Hi-
I have seen it written that you can develop in visual studio. Could someone elaborate on the steps. For example what kind of project do you use and how can you compile it?
@bfis108137
bfis108137
08 Jul 2016, 18:19
nope still waiting
nope still waiting
@bfis108137