Replies

PanagiotisCharalampous
30 Dec 2024, 08:11

Hi there,

You should be able to choose which columns you can see by right clicking in the grid's header.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Dec 2024, 08:05

Hi there,

It is not possible to rename profiles, you would need to create a new profile.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Dec 2024, 07:59

RE: RE: Optimisation Mac vs Windows

algobeginner said: 

PanagiotisCharalampous said: 

Hi there,

It seems you are using the genetic algorithm for optimization. In this case passes will be different even between subsequent optimization on the same machine.

Best regards,

Panagiotis

Yes it’s genetic , is grid more precise ?

Yes but it will take much more time to complete. It's a compromise between speed and accuracy


@PanagiotisCharalampous

PanagiotisCharalampous
30 Dec 2024, 07:45

RE: RE: RE: RE: MACD query - is the calculation correct in cTrader?

markmath01 said: 

PanagiotisCharalampous said: 

markmath01 said: 

PanagiotisCharalampous said: 

Hi there,

Please share the code you are using to print these values.

Best regards,

Panagiotis

Hi - see code below.  Thanks.

 

        protected override void OnStart()
       {
           _macd = Indicators.MacdCrossOver(SlowMAPeriod, FastMAPeriod, SignalLinePeriod);
           Print("MACD-Analysis started with MACD parameters: Fast MA = {0}, Slow MA = {1}, Signal Line = {2}",
                 FastMAPeriod, SlowMAPeriod, SignalLinePeriod);
       }

       protected override void OnBar()
       {
           double macdValue = _macd.MACD.LastValue;
           //Print("MACD = {0:F7}, Time = {1}, {2}", macdValue, Bars.OpenTimes.LastValue, Bars.OpenTimes.Last(1));
           //Print("MACD = {0:F7}", macdValue);
  Print("Last MACD = {0:F7}, MACD = {1}, Last(0) = {2}, LastVal = {3}", lastMACD, macdValue, Bars.ClosePrices.Last(0), Bars.ClosePrices.LastValue);
  
           // Check for zero-line crossing
           if (lastMACD.HasValue)
           {
               if ((lastMACD < 0 && macdValue > 0) || (lastMACD > 0 && macdValue < 0))
               {
                   // A zero-line crossing occurred
                   ProcessWave(macdValue < 0);
               }
           }

           lastMACD = macdValue; // Update the last MACD value
           //Print("Last MACD = " + lastMACD) ;
           
       }
 

Hi there,

You are printing the _macd.MACD.LastValue which prints the value of the current at the opening of the bar and then you compare it with the MA values of closed bars. The LastValue  can change by the time the bar is closed. You should print  _macd.MACD.Last(1) instead.

Best regards,

Panagiotis

I have checked the same piece of code in the “Calculate” event when drawing the Indicator and used it in various "On" events of a cBot and they do not perform equivalently, at least not in my calculations. Hence, the same piece of code will fire at different times and produce different results.

I have tried to perform the same calculation in OnTick, OnBar and OnBarClosed and NONE of them yield the same values that are correctly being produced in the “Calculate” event for an Indicator.

Can you guide please?

Hi there,

I have explained to you what the issue is in my previous reply. I am not sure what other guidance you need. If you still use the same piece of code, you will experience the same problem.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Dec 2024, 07:39

Hi there,

Can you please explain which example you are referring to?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Dec 2024, 07:38

Hi there,

Can you explain what are the differences by sharing a screenshot of the cTrader indicator and explain what you would expect to see instead?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Dec 2024, 07:33

RE: cTrader Desktop 5.0.46 Release Notes

firemyst said: 

When are we going to see release notes for version 5.1.xx?

It's been over a week since its release.

5.1 is a major release therefore you can see what is new in the What's New section


@PanagiotisCharalampous

PanagiotisCharalampous
30 Dec 2024, 07:27

RE: RE: Symbol.MarketHours not working in backtest

stefan1 said: 

algobeginner said: 

How about use your own historical data to emulate this factor ?

Hello and thanks for your reply. Unfortunately I don't have data other than those provided by the Ctrader charts. In case I manage to get other data, could you please explain what you mean by “emulate this factor”? Furthermore, do you know if Spotware has plans to fix this issue? Could someone from Spotware please comment here?

Thanks and best regards, Stefan

Hi there,

This is not supported at the moment and will not be supported in the future as historical data regarding market hours are not available.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Dec 2024, 07:25

Hi there,

Do your custom indicators have source code?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Dec 2024, 07:21

RE: RE: CSV Export and Load

algobeginner said: 

PanagiotisCharalampous said: 

Hi there,

Please share a screenshot of the exported data so that we can check.

Best regards,

Panagiotis

Hi there,

Did you try removing the header. I don't think it is necessary.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Dec 2024, 09:58

Hi there,

This is a known issue and will be fixed in the following updates.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Dec 2024, 08:53

Hi there,

You can see deposits/withdrawals in the Transactions tab.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Dec 2024, 08:47

Hi there,

Here you go

(ChartManager.ActiveFrame as ChartFrame).Chart.AddHotkey()

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Dec 2024, 08:36

Hi there,

Please share a screenshot of the exported data so that we can check.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Dec 2024, 08:27

Hi there,

It seems you are using the genetic algorithm for optimization. In this case passes will be different even between subsequent optimization on the same machine.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Dec 2024, 08:27

Hi there,

It seems you are using the genetic algorithm for optimization. In this case passes will be different even between subsequent optimization on the same machine.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Dec 2024, 08:23

Hi there,

There is no built in feature for this. You would need to write your own custom functionality to export all this information in a format of your choice.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Dec 2024, 08:21

RE: RE: Labelling an Exit for Better Optimization

thecaffeinatedtrader said: 

PanagiotisCharalampous said: 

Hi there,

Where exactly do you want to see this information? In the log?

Best regards,

Panagiotis

Hi,

I would like to view this after optimization in the events tab. But with that said, I don't know if this is even an option do.

Currently it displays 4 event types, 

  1. Create Position
  2. Take Profit Hit
  3. Stop Loss Hit

And the one related to the MA Exit criteria displays as:
   4. Position Closed

But in doing so, does not tell me which MA Type was actually triggered. 


Please let me know if this is possible or if there is a way you would recommend so I can see which MA's perform the best in use of an exit criteria so I can eliminate one's that underperform and keep the one's that do and re-run the optimization accordingly. 

Thank you!

Hi there,

You can't modify what is written in the Events tab. You can only print information in the Log. Ideally you should use it to print the information that is meaningful to you.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Dec 2024, 08:02

Hi there,

It will be added in a future update.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
27 Dec 2024, 07:44

Hi there,

Can you explain what do you mean when you say that it is not editable? What exactly do you need to edit?

Best regards,

Panagiotis


@PanagiotisCharalampous