Replies

amml
17 Apr 2022, 19:54

Awesome!

That's great news. Looking forward to testing v4.2 in the coming days.

Thanks a lot for the nice tech you guys are developing.

 


@amml

amml
23 Nov 2021, 14:19

Thanks, amusleh. Yes, I'm using OnStart to verify validity. I like your suggestion of implementing my own UI using Windows form and resolving this limitation from there. Many thanks.


@amml

amml
11 Nov 2021, 13:31

RE:

These are actually very good news. Many thanks for your support, Panagiotis.

Best wishes,
amml

 


@amml

amml
11 Nov 2021, 11:51 ( Updated at: 11 Nov 2021, 11:53 )

RE:

Hi Panagiotis,

I would appreciate to know if there are more command-line options to cTrader.exe besides /compile. Maybe there is an option for verbose output (to detect if there were errors).

Many thanks and best regards,
amml


@amml

amml
11 Nov 2021, 10:43

For whoever that wants to use Visual Studio Code and build from there, create a task.json file under the .vscode folder and add the following:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Build",
            "type": "shell",
            "command": "C:\\Users\\USERNAME\\AppData\\Local\\Apps\\FIND\\YOURSELF\\YOUR\\PATH\\TO\\cTrader.exe",
            "args": [
                "/compile=${workspaceFolder}\\${workspaceFolderBasename}\\${workspaceFolderBasename}.csproj"
            ],
            "problemMatcher": [],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

You can now press Ctrl+Shift+B and build your .algo file.


@amml

amml
11 Nov 2021, 10:25

RE:

Hi Panagiotis,

I got it working now - many thanks. The output is a MyFirstRobot.algo file under 

C:\Users\amml\Documents\cAlgo\Sources\Robots\

Could you please tell me other command line options besides /compile? I'm particularly interested in a more verbose output (currently, I see no output, so not sure if there are errors).

Best regards,
amml

 


@amml

amml
11 Nov 2021, 10:06 ( Updated at: 11 Nov 2021, 10:09 )

RE:

Hi Panagiotis,

Many thanks for this. It's been a while since you replied and only now I could come back to my algo trading experiments using ctrader. I'm still (apparently) not able to get this right.

I managed to find the path to cTrader.exe via Visual Studio (not sure why, but this was a non-trivial finding, as things in AppData are hidden away from users -- I'm new to Windows):

C:\Users\amml\AppData\Local\Apps\2.0\RW0TM076.FG6\4SEMHSJE.LY5\xtrader_9ah856fd4bdxd746_0002.0002_270472ff031s70h9\cTrader.exe

Let's say the path to MyFirstRobot.csproj is 

C:\Users\amml\Documents\cAlgo\Sources\Robots\MyFirstRobot\MyFirstRobot

In the command prompt, if I execute this:

C:\Users\amml\AppData\Local\Apps\2.0\RW0TM076.FG6\4SEMHSJE.LY5\xtrader_9ah856fd4bdxd746_0002.0002_270472ff031s70h9\cTrader.exe /compile=C:\Users\amml\Documents\cAlgo\Sources\Robots\MyFirstRobot\MyFirstRobot

nothing seems to happen (no algo file built, no output whatsoever). I've also tried adding MyFirstRobot.csproj to the end of the path above, and nothing seems to happen.

Could you please point me to the documentation of this (I could not find docs for cTrader.exe) or tell me what I'm doing wrong? 

Best regards,
amml

 


@amml

amml
06 Oct 2021, 15:40 ( Updated at: 06 Oct 2021, 15:43 )

Any revision of plans now, in 2021, to allow properties from a base class to show up in the cAlgo robot GUI (under Parameters)? The above solution makes sense only when there are a few parameters. In case there are many/several, and they become common among many robots, a lot of duplicate code is needed.

 

Edit:

Just found out here, cTDN Forum - Inherited Parameter Attributes (ctrader.com), that this is planned to be released in cTrader Desktop v4.2 - great!

 


@amml

amml
10 May 2021, 11:27

Dear Panagiotis,

Many thanks for this. Yes, in the meantime I implemented my own Donchian channel indicator and the performance issue reported here was resolved. 

The average calculation is not a problem because the new average in a new tick should be quickly updated using the average from the last tick. Assuming, however, that this is what cTrader does (which most likely is, given that there is no performance issue on the MovingAverage calculations). It would be helpful if the standard indicators in cTrader were open-source, as this would welcome contribution from some users.

Best regards,
A.


@amml