Topics
Replies
PanagiotisCharalampous
22 Feb 2024, 08:41
Hi there,
Thanks for reporting the issue. It will be fixed in an upcoming update of the platform.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Feb 2024, 07:54
Hi there,
Unfortunately this is not possible at the moment.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Feb 2024, 07:51
Hi Bourbara,
Thank you for your encouraging feedback. Feel free to post your suggestion in the correct section
https://ctrader.com/forum/suggestions
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Feb 2024, 07:49
Hi bienve.pf,
This is not an indication of a problem. If the traded volume is 0.39 per 1k, then for 10k it rounds to 4k and for 110k it rounds to 42k.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Feb 2024, 10:15
Hi there,
Advanced protection will be added in future updates.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Feb 2024, 10:01
Hi,
I still do not understand what the problem is. The cBot does exactly what you have programmed it to do. Here are the bars you are checking. The Open price is higher than the previous close price.
@PanagiotisCharalampous
PanagiotisCharalampous
21 Feb 2024, 09:56
RE: How to get Orders in OnMessageReceived
iggys77 said:
Hi!
Thanks, yes I did, I used it a lot to get to this point, but I can't find any example where the private void OnMessageReceived(IMessage message) is used to read the actual message, it only writes it out.
I couldn't find any example at all where the OnMessageReceived did anytheing else that just writing out, could you post here how I should get/create the ROTO_OA_ORDER_LIST_RES from the message? In this case it's the orders list but it could be any of the other objects returned by the API…
Or please point me to the file where there is such an example, I did check them all I think.
Thx!
Hi there,
It is a lot of work to develop such an example so I cannot provide one at the moment. You can leave a comment in the GitHub repository so that it can be considered for future updates. In the meanwhile, have a look at the OpenApiMessageToString() method in WinForms.Demo.OpenApiMessagesPresentation class, to see some examples how other messages are read.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Feb 2024, 07:11
Hi there,
You can check our Open API example here
https://github.com/spotware/OpenAPI.Net
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Feb 2024, 07:06
Hi there,
As far as I can see, the trade was taken three bars ago. Therefore these are the bars you should be looking at
@PanagiotisCharalampous
PanagiotisCharalampous
20 Feb 2024, 10:23
Hi there,
Your calculation method does not make much sense to me. Here is the correct one
var maxAmountRisked = Account.Equity * (Risk / 100);
return Symbol.NormalizeVolumeInUnits(maxAmountRisked / (StopLoss * Symbol.PipValue), RoundingMode.Down);
@PanagiotisCharalampous
PanagiotisCharalampous
20 Feb 2024, 07:00
Hi ncel01,
Understood. The root cause of the problem is the same as in the other thread. It will be resolved in an upcoming update.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Feb 2024, 06:59
Hi there,
Try listening to the Chart.MouseMove event that gives you the location of the mouse on the chart.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Feb 2024, 06:57
Hi there,
Please provide the code in proper format so that we can easily copy, paste and build it.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Feb 2024, 06:54
Hi there,
Have you set your access rights to Full Access?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Feb 2024, 10:34
RE: RE: Backtest: position.NetProfit at close not matching History.Last().NetProfit
ncel01 said:
PanagiotisCharalampous said:
Hi ncel01,
Can you share an example cBot that allows us to reproduce this?
Best regards,
Panagiotis
Hi Panagiotis,
Can you please first try to check this by just adding a Print(o.Position.NetProfit) inside Positions_Closed()?
I need to create a whole cBot sample for this. I'll do it in case the above is not working with you.
Just let me know.
Works fine for me
@PanagiotisCharalampous
PanagiotisCharalampous
19 Feb 2024, 10:15
It would be better to contact the indicator developer. If it works fine for me then It does not seem a general cTrader issue
@PanagiotisCharalampous
PanagiotisCharalampous
19 Feb 2024, 06:38
Hi there,
This happens because trading costs like commissions and swaps are considered in your net profit.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Feb 2024, 06:36
Hi ncel01,
Can you share an example cBot that allows us to reproduce this?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Feb 2024, 06:45
RE: RE: Exception #9946F327 in cTrader 4.8.902.0 - cTrader An error has occurred. The problem has been submitted to the cTrader team. We apologise for the inconvenience. Please restart cTrader.
simplicity10101 said:
Unfortunately we do not have an ETA. Fixes are released as soon as they are ready and tested
@PanagiotisCharalampous