Replies

trader.andyng
03 Jun 2020, 16:41

RE:

PanagiotisCharalampous said:

Hi trader.andyng,

Can you please provide more information about this issue e.g. some screenshots or the error messages you receive?

Best Regards,

Panagiotis 

Join us on Telegram

 

PLATFORM VERSION INFO
    Windows             : 10.0.18362.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll         : 4.8.3752.0 built by: NET48REL1
    clr.dll             : 4.8.4180.0 built by: NET48REL1LAST_B
    dfdll.dll             : 4.8.3752.0 built by: NET48REL1
    dfshim.dll             : 10.0.18362.1 (WinBuild.160101.0800)

SOURCES
    Deployment url            : file:///C:/Users/Desktop/Desktop/Fx%20platform/cTrader/IC%20Markets%20cTrader.appref-ms%7C
                        Server        : nginx
    Deployment Provider url        : http://icmarkets.ctrader.com/xTrader-IC%20Markets.application

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of C:\Users\Desktop\Desktop\Fx platform\cTrader\IC Markets cTrader.appref-ms| resulted in exception. Following failure messages were detected:
        + Cannot activate a deployment with earlier version than the current minimum required version of the application.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [6/3/2020 9:41:12 PM] : Activation of C:\Users\Desktop\Desktop\Fx platform\cTrader\IC Markets cTrader.appref-ms| has started.
    * [6/3/2020 9:41:12 PM] : Performing necessary update check as specified by the deployment.

ERROR DETAILS
    Following errors were detected during this operation.
    * [6/3/2020 9:41:12 PM] System.Deployment.Application.DeploymentException (SubscriptionState)
        - Cannot activate a deployment with earlier version than the current minimum required version of the application.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.SubscriptionStore.CheckMinimumRequiredVersion(SubscriptionState subState, AssemblyManifest deployment)
            at System.Deployment.Application.SubscriptionStore.CheckUpdateInManifest(SubscriptionState subState, Uri updateCodebaseUri, AssemblyManifest deployment, Version currentVersion, Boolean& bUpdateInPKTGroup)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState& subState, String& errorPageUrl)
            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, Uri& deploymentUri)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- End of stack trace from previous location where exception was thrown ---
            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.


@trader.andyng

trader.andyng
18 Apr 2019, 19:00

RE:

Andrey Pisarev said:

Hi Noppanon,

Distance for Trailing Stop is taken from the distance from Stop Loss to current price when Trailing Stop is applied.

You can't specify when Trailing Stop will start working. It can be done from the the code. Here is an example:

double TrailingStopPips = 20;

if (position.Pips >= 10 && position.HasTrailingStop == false)
{
    var newStopLoss = position.TradeType == TradeType.Buy ? Symbol.Bid - Symbol.PipSize * TrailingStopPips : Symbol.Ask + Symbol.PipSize * TrailingStopPips;
    ModifyPosition(position, newStopLoss, position.TakeProfit, true);
}

 

Regards,
Andrey

Hi cTrader team,

I totally new and fresh to read about coding word as you explained.

Can you please teach me step by step how can I apply or setting trailing stop as distance by thru coding?

Besides this, shall I keep turn on cTrader flatform to avoid trailing stop invalid? Or, it is okay once my trailing stop set and I can shut down my computer?

If we need to code distance trailing stop, what is the function to check the small box of "Trailing stop" inside the PlaceLimitOrder window?

Please teach me, I need auto distance trailing stop while I am not infront of my computer..

Thank you

 


@trader.andyng