Topics
16 Nov 2023, 07:42
 1106
 1
15 Nov 2023, 10:36
 1982
 16
Replies

Spotware
02 Oct 2014, 17:02

We can recommend you to try other data modes:

  • m1 bars (open prices)
  • tick data mode

@Spotware

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
02 Oct 2014, 14:15 ( Updated at: 21 Dec 2023, 09:20 )

That is not possible at the moment. We plan to implement such functionality in the future. However you can manually add corresponding indicators using Indicators menu:


@Spotware

Spotware
02 Oct 2014, 10:33

RE:

jagtrading said:

When will this be available on fxpro??? Should I switch to spotware to use it???? Is it still in beta stages or is it ready to use??
 

thanks for replies.

It is ready to use. We plan to delivery it to all brokers next week.


@Spotware

Spotware
02 Oct 2014, 10:16

The following indicators could help you:

/algos/indicators/show/45

/algos/indicators/show/253

/algos/indicators/show/431


@Spotware

Spotware
02 Oct 2014, 10:10

var position = Positions.Find(MyLabel);

You need to check position variable for null before accessing it:

if (position != null)
{
   ...
}

 


@Spotware

Spotware
02 Oct 2014, 10:06

Do you observe the same problem with standard built-in cBots?


@Spotware

Spotware
02 Oct 2014, 10:05

Please try to disable your antivirus, run cTrader and enable antivirus again.


@Spotware

Spotware
30 Sep 2014, 17:13

We plan to deliver current Spotware version to all brokers next week. We cannot provide a time estimate for the release of other performance optimizations.


@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
30 Sep 2014, 09:23

You can check value for NaN using the following code snippet:

if (double.IsNaN(the_series[index]))
...

 


@Spotware

Spotware
29 Sep 2014, 17:25

Please check your firewall and antivirus settings. Regarding to the error message you cannot download file http://dl.ctrader.com/roboforex/cTrader AppFiles/1.24.102.34376/cTrader.exe


@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.application

ERROR 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

  1. Hold down the Windows key, and press R. The Run box should appear.

  2. 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, 16:09

is possible to obtain the same result in another way?

Don't think so. If you find a solution, please post it here.


@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, 15:24

RE:

Futuresmo said:

same problem here, cannot start since today

Please post the error message here.


@Spotware

Spotware
29 Sep 2014, 15:20

cAlgo.API is not thread safe. Please avoid accessing API objects and methods from separate threads. If exception happens, the entire application will crash.


@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:27

Does the problem persist? If so, please check your internet connection and firewall settings.


@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