Replies

gonzsanc
12 Oct 2019, 20:28

RE: Scyware Backtest Analyser

Mikro said:

Hi Paul,

Do you have any Contacts to Scyware? I'm asking because I find the BacktestVisualizer pretty helpful but I would like to extend the analysed Data to monitor internal Data in my Bot.

 

Or following another approach, have you made experiences with MATLAB and cTrader?

Writing a .csv from within the bot an then analysing it is nice. Really usefull would be writing them to MATLAB during Runtime and perhaps retourning processed Data.

 

Cheers

Mirko

Just to mention that Python (native) has a lot of data analysing extensions. If you use cython or mumba, you can get near-to-c++ speed in your code. Otherwise, it is quite slow.

You basically can use Numpy for fast analysis and Pandas for matrix management.

R is also good, but it is a limited language since it is oriented for statisticians, not for development as Python is.

Then, for advanced statistics, Python is really excellent with packages such as sklearn, Tensorflow or scipy.

The advantage of .Net is that creating GUIs with Python is not really a pleasant task. 

However, for most simple maths and stats, .Net's LINQ is enough.


@gonzsanc

gonzsanc
27 Sep 2019, 11:44

Hi.

The problem with the symbols is because you start debugging in the wrong way.

The steps are the following ones:

  1. Check that your indicator or bot IS NOT RUNNING on Ctrader. If it is on any of the open charts, then unload it.
  2. Select Edit in Visual Studio as explained in the instructions.
  3. Once Visual Studio is opened, switch to Debug mode as explained and COMPILE.
  4. After successfully compiling, set your breakpoints. And NOW the thing becomes interesting...
  5. Go to Debug > Attach to process and attach as explained to Ctrader.exe (this is written in 2019, so if you read this years later, then check if the process has another name then).
  6. Now you can see that the symbols are not loaded, why? Because YOU ARE NOT RUNNING the indicator/bot on Ctrader.
  7. Switch to your Ctrader application and load your indicator/bot on any of the charts.
  8. Now the indicator is running on Ctrader and when it reaches your breakpoint, you will be able to see the stack and all the other stuff.

Therefore, THE MAIN PROBLEM is that when debugging we have forgotten that we need to also start running our bot/indicator with Ctrader itself after we attach the process on VS.

 


@gonzsanc

gonzsanc
26 Sep 2019, 12:40

Very necessary in my opinion. This is a fundamental feature.

The reason is that tools such as Ctrader are oriented towards technical analysts, and we make very extended use of graphic tools. Otherwise we could just use a web-based trading platform, but instead, we need exceptional graphical tools to quickly map our charts with lines and other types of objects. And that must remain locked by default once we drop it on the chart so that we need to unlock it if we want to modify it later.

I spend a lot of time readjusting stuff that is moved when I try to drag the chart, clone, etc.... My levels are also changed and it is hard to set them afterwards because the references I use are multiple and require attention that I cannot afford to lose from my trading.


@gonzsanc