Topics
Replies
Spotware
26 May 2014, 14:52
RE:
AlexanderRC said:
TradeType for position is not updated on position reversal.
Steps to reproduce.
1. Attach Position Stats indicator to a chart with default settings to EURUSD
2. Sell 1K. Indicator shows "-1 000 EUR" as total volume.
3. Execute a "reverse position" (double arrow button).
4. Wait for the next tick for the indicator to be updated. The indicator still shows "-1 000 EUR" as a total volume.
If I change the chart time frame to any other (which leads to indicator reinitialization), the output is correctly updated with the total volume.
Thank you for the bug report. We will fix it as soon as possible. We apologize for any inconvenience.
@Spotware
Spotware
26 May 2014, 13:58
RE: RE:
AlexanderRC said:
Spotware said:
Market depth is provided by LP connected to the broker. Please contact your broker for additional information.
The fact that cTrader and cAlgo provide access to Level-II prices shows the transparency of our platforms.
In cTrader and cAlgo you can find detailed information about every deal including the Market Snapshot - the state of market depth at the moment of triggering.
When that snapshot is taken? When cServer sends request to LP or when acknowledgement from LP is received that the request has been executed?
When cServer sends request to LP
@Spotware
Spotware
26 May 2014, 12:11
No, we remove old source code file only if migration was successful.
You can see "Source code is not available" message if you removed [Robot] attribute from the source code file. In order to fix that you need to open your source code file in notepad and restore [Robot] attribute. You can find the source code file in the following folder: Documents\cAlgo\Sources\Robots\Robot Name\Robot Name\.
@Spotware
Spotware
23 May 2014, 12:13
Thank you for reply... Sure I am stopping the timer....
_Timer.Stop() line is commented in your code. That is why your cBot continues to write to file after you stop it. You need to stop your System.Timers.Timer in OnStop method because cAlgo doesn't control it. As we already said, we do not recommend you to use the System.Timers.Timer class.
Timers can not work correctly in backtesting... Even if you will provide us with cAlgo Timers...
We prepared a Timer which will correctly work with emulated time in backtesting.
Please investigate bug 2 - not bug 3
That bug will be fixed as soon as possible. Thank you for your detailed bug report.
And one more question base.OnStop I do not remember myself from where I copied it - Do I need to use it? and what does it do?
OnStop method is invoked when cBot is stopped. You can put there some deinitialization logic such as stopping your timers, closing connection to the database, etc.
@Spotware
Spotware
23 May 2014, 09:25
Bug1: will be fixed as soon as possible.
Bug2 and Bug3: we cannot handle memory leaks in your code. In your example you need to stop the Timer. Additionally, it is not recommended to use system timers because cAlgo.API isn't thread safe. In next version of cAlgo we will release our own Timer.
1 Question : why Server.Time not always go forward? sometimes it's go back in time for some secs...
We will investigate it, thank you for your report.
ability to restart just one cBot on starting cAlgo
We plan to implement it in the future.
@Spotware
Spotware
29 May 2014, 16:47
RE:
cTrader already supports CFDs and other instruments, but it's up to your broker to provide them, not Spotware. You have to contact your brokers and ask them to include more symbols in cTrader.
@Spotware