
Topics
Replies
AlexanderRC
06 Feb 2015, 20:40
We have also seen this behavior in our Romanov Capital cTrader too. Spotware cTrader is almost always ahead of the version of all the brokers and is used as a preview of all new features and bugfixes to come. Last time I checked it (05.02.2015) that issue was present there. So the problem is known and not yet fixed ...
@AlexanderRC
AlexanderRC
06 Feb 2015, 20:24
As far as I can tell there is no ability to specify exact price levels for take profit and stop loss, only relative ones, in pips when entering order in cTrader. Pending orders (limit and stop) cannot be guaranteed to execute at the specified price. Generally speaking, stop orders are likely to execute at equal or worse price and limit orders at the better or equal price of the one specified in the order. But that really depends on the broker (mostly on their liquidity provider). Some execute limit orders as market orders (essentially stop orders). Read terms and conditions of your broker.
As a workaround, you can use some simple cBot which would set take profit and stop loss right after the order is executed. The parameters for the cBot would include take profit price and stop loss price as input parameters. If you use several orders at the same time, more clever logic can be devised to recognize which position has to be set with which TP or SL.
@AlexanderRC
AlexanderRC
06 Feb 2015, 15:55
Spotware, are there any short term plans to support multisymbol cBots in backtesting?
There are some support internally as commission for the same volume for pairs like GBPCAD are different on different days in backtesting, so cross rates to the account currency (USD in my case) are properly accounted for, so they should be downloaded and stored from the server already. Thus, implementing multi currency cBots backtesting should be a couple of steps away.
Caching tick/minute bars data on first invocation of GetSymbol() would be ok for the selected period of backtest so that backtesting engine would not cache all possible symbols present in the broker's cTrader after the user clicks the play button. If caching in the middle of the backtest run requires too many internal changes, you may add UI with a list of checkboxes and the user would have to select which pairs would be used in the backtest or optimization. If the data has not been explicitly cached for the symbol requested via GetSymbol() you may throw an exception. Adding UI for currencies would also cater for data in CSV files, they can be loaded individually for the respective symbols or the format of CSV could be enhanced to include the symbol in each line of the file.
@AlexanderRC
AlexanderRC
04 Feb 2015, 22:23
You even try to not inherit from Indicator and reimplement the feauters you require from it as stubs
And do conditional compilation whether you are running as an externally invoked unit test or inside cAlgo compilation engine. But cAlgo compilation engine ignores symbols defined in Visual Studio properties. You may have to #define you conditional compilation manually or at the unit test project which would not depend on cAlgo API directly and could be run independently.
See /forum/calgo-support/3827 for more info.
@AlexanderRC
AlexanderRC
04 Feb 2015, 22:15
There is a feature request at vote.spotware.com
Please cast you vote for Modify volume of a position
@AlexanderRC
AlexanderRC
02 Feb 2015, 18:46
RE: tick
RedRhinoFX said:
The files are in a proprietary format with scrambling (reversible encryption). The only value of looking at them is to check whether the specific date and symbol has been cached or not.
Will the tick data be available for multipurpose in the future ( without encryption).
As has been suggested elsewhere on this forum you can write a simple cBot which would log the ticks in any format you like. Maybe even someone has already written it.
@AlexanderRC
AlexanderRC
30 Jan 2015, 14:08
RE:
3041865 said:
How can I save optimisation results?
Parameters, trade statistics, history?
For individual optimization run:
Parameters: Click on Parameters tab and then click Save Parameters at the right.
Trade Statistics: currently not possible to export.
History: Click on History tab, then right click on history results and then click Export to Excel.
It is not currently possible to save all (or say, top 10) results at once.
Try Spotware demo, there were some enhancements on Balance Chart in the way equity min/max are displayed which I really like.
@AlexanderRC
AlexanderRC
23 Jan 2015, 15:18
RE: RE:
maninjapan said:
AlexanderRC said:
We do have a working cTrader to cTrader copier working within a single computer. It can be modified to work across computers via a network socket if there is a need.
Thank you for the reply. How much does it cost?
Please contact via email in the signature.
@AlexanderRC
AlexanderRC
23 Jan 2015, 15:14
Sorting parameters which cannot be optimized under all others is a bad idea, it breaks a logical layout of parameters. For instance, unused string based parameters can be used as visual separators. Also, other types like TimeFrames and DataSeries also get below all others and become logically ungrouped from siblings.
@AlexanderRC
AlexanderRC
22 Jan 2015, 23:19
You may want to look into cAlgo built in function GetIndexByTime() instead of using your own. Testing for exact equality of DateTimes may be a problem, just a wild guess.
@AlexanderRC
AlexanderRC
15 Jan 2015, 18:40
You may try to run several instances of cTrader under the same trading account.
@AlexanderRC
AlexanderRC
15 Jan 2015, 18:35
We do have a working cTrader to cTrader copier working within a single computer. It can be modified to work across computers via a network socket if there is a need.
@AlexanderRC
AlexanderRC
15 Dec 2014, 20:36
Ticks are the most precise method currently available in cAlgo.
@AlexanderRC
AlexanderRC
12 Dec 2014, 16:34
Can you post a minimal "non-working" example? From the description you provide it is not clear at what step you get the error.
@AlexanderRC
AlexanderRC
10 Dec 2014, 04:46
You would want to create an idea at vote.spotware.com and post a link here.
@AlexanderRC
AlexanderRC
09 Dec 2014, 18:27
I simple cBot (or Indicator) can be written which would send an email or do some other type of notification. Contact via email in the signature if you are interested.
@AlexanderRC
AlexanderRC
03 Dec 2014, 04:35
RE: RE:
maxim_7 said:
Spotware said:
The most losing position will be closed in that case.
Exactly, this is the problem. From my point of view, this behavior is wrong. and MUST be changed, to close opposite positoin to preserve account in balanced state (X Volumes Long and X Volumes Short), instead of closure one by one all positions of one direction.
As a workaround, a cBot can balance the Long/Short position count by immediately closing a position of the opposite direction. It should be pretty trivial to write one.
@AlexanderRC
AlexanderRC
06 Feb 2015, 20:47
As for the stoppig, this can be done from within and indicator or cBot easily. As for the starting, the situation is more complex. The code of cBot is not executing when you press some key combo. There is simply no running code to detect that. In order to start a cBot or an indicator, the constantly running program should sit in background, wait for the event (key combo, etc) and then do some hacky UI automation in order to start a cBot or indicator in a currently running (or newly started) instance of cAlgo or cTrader.
@AlexanderRC