
Topics
Replies
PanagiotisCharalampous
03 Oct 2017, 17:09
Hi cauedotnet,
We have investigated the issue and the discrepancy is caused because in cAlgo's profit calculation equation, the conversion rate (the ... * 1/76.107 ... part) is not taken from the position's closing price, instead a single value is used which taken from the backtesting period's last day. It has been implemented this way to facilitate the need to convert the profit to any currency account, for which the conversion rate is not available for every single point in time. However, as your calculations show it might lead to confusion when the account's currency is one of the Symbol's currencies and the conversion rate is available in real time. Therefore, the cAlgo team is considering changing this logic for such cases. We will keep you posted.
In a nutshell your calculations are correct, it is just the fact that cAlgo uses a different formula to calculate P&L and might lead to these small discrepancies.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Oct 2017, 15:57
Hi dordkash@gmail.com,
Thanks for the additional info. I tried both broker platforms but I could still not reproduce it. It might be something specific with your computer. Could you please send troubleshooting information to our quality assurance team so that they can investigate further? In order to do so, please press Ctrl+Alt+Shift+T and in the form that pops up, provide a description of the issue and press Submit. The necessary information will be sent to the support team and they will be able to investigate if something is going wrong.
Best Regards,
cTrader Team
@PanagiotisCharalampous
PanagiotisCharalampous
03 Oct 2017, 09:02
Hi dordkash@gmail.com,
These settings are saved and kept after cTrader closes and reopens. We checked this on Spotware cTrader and works fine. Could you please tell us the broker you are using to check it further?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Oct 2017, 15:28
Hi rhikmet,
Thanks for the clarification. If you have difficulties uploading the image here, please send it to community@spotware.com.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Oct 2017, 14:46
Hi rhikmet,
Thanks for posting in the forum. Do you get any message during installation? Could you please provide us with a screenshot of what you see?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Oct 2017, 11:32
Hi mbenes,
Thanks for the clarification. Please send me an email at community@spotware.com so that I can send you more information about our backend APIs
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Oct 2017, 11:18
Hi MaVe,
Ok thanks it is clear now. I will pass your suggestion to the product managers for consideration. I would also advise you to post your suggestions in the Suggestions section so that all suggestions are kept in one place. This section is visited often by product managers to evaluate suggestions and add them in their backlogs.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Oct 2017, 10:02
Hi Martin,
Thanks for posting in our forum. For traders, there is no other API that could be suitable for your needs. There are APIs for our backend solutions but they are available only to brokers and cannot be used without their permission. Would you like to elaborate a bit more on your application, on the requirements and why it is impossible to use OAuth? If we know some more information we will be able to assist you better.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Oct 2017, 09:55
Hi irmscher9,
A more elegant way to do that is the following
var rsi = Indicators.RelativeStrengthIndex(MarketSeries.Close, 14); bool under30 = rsi.Result.Minimum(30) < 30;
Let me know if this works for you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Oct 2017, 09:37
( Updated at: 21 Dec 2023, 09:20 )
Hi dordkash@gmail.com,
Which setting would you like to be saved exactly?
Regarding position information, you can go to History tab, select Deal Information and then Position Details. In the Position Info window that will open you can see all relevant information for this position. See below
Let me know if the above information is helpful for you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Oct 2017, 09:24
( Updated at: 21 Dec 2023, 09:20 )
Hi MaVe,
You can switch to List View and have the Indicators as a List. See below.
Let me know if this what you mean.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Oct 2017, 09:19
Hi fordswv@gmail.com,
Check also our Consultants list. You can find somebody to help you there.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Oct 2017, 09:17
Hi cauedotnet,
Can we also have the broker you are using in order to use the same historical data for backtesting?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Sep 2017, 16:59
Hi davideng5555,
Deals are closed based on a First In First Out order according to their created timestamp.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Sep 2017, 14:45
( Updated at: 21 Dec 2023, 09:20 )
Hi davideng5555,
Your P&L will depend on the value of the closing deal. You will better understand how this works if you try it yourself in cTrader. Try the following scenario.
- Open a buy position for €5000 on EURUSD.
- Double the position twice. You will end up with a position of €20000 composed of three deals.
- Modify position and close €8000.
- Go to history, find the latest deal and click on "i". You should see a Deal Info window like the below.
There you can see all the information of the closing deal as well as which opening deals have been closed fully or partially by this closing deal. I am sure that if you experiment a little bit with the deals you will understand how it works. Let me know if you need any further clarifications
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Sep 2017, 11:44
Hi petra41@bigpond.com,
It is disabled to prevent other problems that might occur due to not supporting backtesting on multiple symbols. Hopefully, with multiple symbols backtesting this restriction will be removed.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Sep 2017, 10:48
Hi petra41@bigpond.com,
We still do not have an ETA but it is in our backlog. I will keep you posted.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Sep 2017, 10:13
Hi petra41@bigpond.com,
Thanks for posting in our forum. To make it easier for the community to help you please provide the following
1) A cBot that builds successfully. The one you provided has build errors. Log function is not defined anywhere.
2) Point us exactly to where the problem is. Tell us how do you expect the robot to behave and how it does actually behave.
This information will help us to assist you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Sep 2017, 09:51
Hi Alex,
Spot Prices at any moment are the highest Bid price and the lowest Ask price. If you need to retrieve these prices using FIX, you can use the Market Data Request. However, from what I understand from your questions, what you need is the deal's filled price and not the spot price. The filled price is a volume weighted average price (VWAP) and might be different to spot price due to available liquidity and market depth and. Each deal's filled price can be retrieved in the Execution Report message which is sent by cServer after a position is opened. You can find it in Tag 6. If you then need to get the positions opening prices, you can use Request For Positions message which will generate a Position Report. In the Position Report, tag 730 is the average price of the opened volume for the position.
Let me know if this clarifies the situation for you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Oct 2017, 17:16
Hi k_baghyan,
Thanks for your post. Could you please let us know the broker and share a cBot and Indicator that will allow us to reproduce the problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous