Topics
Replies
Spotware
02 Oct 2014, 16:11
RE:
cbellew said:
Great job Spotware! The genetic algorithm is great, really clever stuff. I have a single request.
Can we ask the optimizer to try all 28 of the major symbols and tell us what the ideal parameters are for all pairs combined? I want to avoid tuning a bot to an individual symbol. Currently I will have to run the optimizer 28 times and exhaustively compare the results.
Thanks again.
Do you want to find the Symbol that shows the best results?
@Spotware
Spotware
30 Sep 2014, 12:14
Hello,
Thank you for your suggestion. It will be taken into consideration for future implementation.
You could also post your suggestion here: http://vote.spotware.com
@Spotware
Spotware
29 Sep 2014, 16:15
RE:
Futuresmo said:
PLATFORM VERSION INFO
Windows : 6.2.9200.0 (Win32NT)
Common Language Runtime : 4.0.30319.34011
System.Deployment.dll : 4.0.30319.33440 built by: FX45W81RTMREL
clr.dll : 4.0.30319.34011 built by: FX45W81RTMGDR
dfdll.dll : 4.0.30319.33440 built by: FX45W81RTMREL
dfshim.dll : 6.3.9600.16384 (winblue_rtm.130821-1623)SOURCES
Deployment url : file:///C:/Users/Miroslav/Desktop/RoboForex%20cTrader.appref-ms%7C
Server : nginx
Deployment Provider url : http://roboforex.ctrader.com/xTrader.applicationERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\Miroslav\Desktop\RoboForex cTrader.appref-ms| resulted in exception. Following failure messages were detected:
+ Activation failed.
+ The system cannot find the file specified. (Exception from HRESULT: 0x80070002)COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.WARNINGS
There were no warnings during this operation.OPERATION PROGRESS STATUS
* [29/09/2014 09:09:28] : Activation of C:\Users\Miroslav\Desktop\RoboForex cTrader.appref-ms| has started.
* [29/09/2014 09:09:28] : Performing necessary update check as specified by the deployment.ERROR DETAILS
Following errors were detected during this operation.
* [29/09/2014 09:09:28] System.Deployment.Application.DeploymentException (Activation)
- Activation failed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.IO.FileNotFoundException
- The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
It looks like there is the ClickOnce issue. The most common way to resolve ClickOnce issues is to uninstall the application, and then perform the installation again.
If it does not help, we recommend remove the ClickOnce file directory and install application again:
To clear ClickOnce file directory
-
Hold down the Windows key, and press R. The Run box should appear.
-
Into the Open field, enter C:\Users\%USERNAME%\AppData\Local\Apps, then click OK. This will open Windows Explorer. ( %USERPROFILE%\AppData\Local\Apps)
For windows xp the path it is different, so the command will be the below
%USERPROFILE%\Local Settings\Application Data\
3. Delete the folder names **2.0** 4. Reinstall the application
@Spotware
Spotware
29 Sep 2014, 15:51
We can recommend you 2 things:
- add a try catch statement to the somethingToRunInThread method. It is the best practice to add try catch block to the separate thread even if you think it is safe.
- obtain all required data in the main thread (OnTimer method) and then pass it to somethingToRunInThread method using any synchronization mechanism
@Spotware
Spotware
29 Sep 2014, 14:46
You can use Label for such purpose.
[Parameter(DefaultValue = "cBot unique identifier")] public string Label { get; set; }
When you open position, you need to use Label:
ExecuteMarketOrder(TradeType.Buy, Symbol, someVolume, Label);
Then you will be able to calculate profit/loss for positions with that specific label:
var pnl = Positions.FindAll(Label).Sum(position => position.NetProfit);
You can also close all positions with specific label:
foreach (var position in Positions.FindAll(Label)) { ClosePosition(position); }
@Spotware
Spotware
29 Sep 2014, 12:26
RE:
AlexanderRC said:
I had a similar problem.
Currently I am setting a timer with the first interval for to be fired at expected time of bar in a different timeframe and in the handler I restart the timer with the interval adjusted for the next bar. I have to recalculate the interval in the handler every time due to the handler being fired
Are there any better solutions to generate OnBar() events for a timeframe that is different from the one selected on a chart or specified as a parameter in backtester/optimizer?
No, there is no at the moment. We plan to add OnBar event to the MarketSeries object.
@Spotware
Spotware
02 Oct 2014, 17:02
We can recommend you to try other data modes:
@Spotware