Topics
16 Nov 2023, 07:42
 1170
 1
15 Nov 2023, 10:36
 2069
 16
Replies

Spotware
16 Aug 2017, 12:13

Dear hungtonydang,

We have replied to your question here.

Best Regards,

cTrader Team


@Spotware

Spotware
16 Aug 2017, 11:58

Dear nmaxcom,

Indeed we cannot reproduce your issue. Can you please provide a cBot that reproduces the exception so we can investigate further?

Best Regards,

cTrader Team


@Spotware

Spotware
16 Aug 2017, 11:55

Dear alpha_austin,

Thanks for posting your questions in the forum. Regarding the timeframe selection, indeed you can select it either from the chart or from the cBot parameters. It is just two ways of doing the same thing. The purpose of having the timeframe in the cBot parameters as well is better usability as it allows users to see all the parameters affecting a cBot at one place.

Regarding your backtesting results, they depend on the cBot itself. In order to provide an explanation to the cBots backtesting resutls you will need to provide us with the cBot's source code.

Best Regards,

cTrader Team


@Spotware

Spotware
16 Aug 2017, 11:34

Dear conny.rosenberg@gmail.com,

If you are signing in using the same cTID on both platforms then you should be able to see the same accounts. Could you please post some screenshots of the two platforms so we can see the issue?

Best Regards,

cTrader Team


@Spotware

Spotware
16 Aug 2017, 11:30 ( Updated at: 23 Jan 2024, 13:15 )

Dear nmaxcom,

Thanks for your constructive comments. First of all, we would like to let you know that a new section has been added to the forum, called [Coming Soon]. In the following days, we will start publishing there the platform's upcoming features. Also we would like to let you know that a new community platform is in the pipeline. The new platform will offer the features required to follow your suggestions about the community and will improve the communication between you and us.

Best Regards,

cTrader Team


@Spotware

Spotware
16 Aug 2017, 11:22

Dear hungtonydang,

The parameter is a DateTime. See more info here. You need to specify the exact date time that the order expires. See an example below

var datetime = new DateTime(2017,8,16,11,25,0);
PlaceLimitOrder(TradeType, Symbol, Volume, targetPrice);

Best Regards,

cTrader Team


@Spotware

Spotware
16 Aug 2017, 11:14

Dear mparama,

Thank you for clarifying this. What kind of charts would you like to overlap? If you give us more specific requirements then we or a community member might be able to propose a solution.

Best Regards,

cTrader Team


@Spotware

Spotware
14 Aug 2017, 17:22

Dear Trader,

We have replied to you through email. We still have not been able to reproduce the message using your algorithm. We will keep trying.

Best Regards,

cTrader Team


@Spotware

Spotware
11 Aug 2017, 17:29

Hi hungtonydang,

You could try something like the following. You can record the time of the last executed order and then check if 24 hours have passed from the last order or not

        protected override void OnBar()
        {
            if (_lastExecutedOrder.AddHours(24) < DateTime.Now)
            {
                ExecuteMarketOrder(TradeType.Buy, Symbol, 1000);
                _lastExecutedOrder = DateTime.Now;
            }
        }

Best Regards,

cTrader Team


@Spotware

Spotware
11 Aug 2017, 10:58

Hi andi21,

Thanks for your questions.

1) Stop Loss and Take Profit are executed on the server no matter in which platform you set them, cAlgo or cTrader. It is Advanced Stop Loss and Advanced Take Profit that require cTrader to be running. See more info here http://help.spotware.com/trading/positions#advanced_take_profit

2) Regarding the trade side of stop loss, this is something that will be included in a future release of cAlgo.

Best Regards,

cTrader Team


@Spotware

Spotware
11 Aug 2017, 09:42

Dear deltrader.pt@gmail.com,

What do you mean when you say that the pending order should move along with the ASK price? Do you mean that you need to place a limit/stop order 5 pips away from the ask price?

Best Regards,

cTrader Team


@Spotware

Spotware
11 Aug 2017, 09:37

Dear hungtonydang,

Stop Loss and Take Profit are executed on the server, therefore it does not matter whether your cBot is running or not. Since your logic will not be executed when you have a position open, why do you need to stop the cBot from running? If you elaborate a bit on what you need to do, maybe somebody could propose a better way to handle this.

Best Regards,

cTrader Team


@Spotware

Spotware
11 Aug 2017, 09:25

Dear ycomp,

You can use Free-Chart mode and drag one chart below the other. Let us know if you need more detailed instructions on how to do this.

Best Regards,

cTrader Team


@Spotware

Spotware
10 Aug 2017, 10:17

Dear acrigney,

There was an update recently in VS2017 so maybe you are using v 15.2. Can you please update your vsixmanifest as follows?

<?xml version="1.0" encoding="utf-8"?>
 
<Vsix Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">
  <Identifier Id="2c72cc50-6c69-4b16-b1f4-ab470673f284">
    <Name>cBots and Custom Indicators</Name>
    <Author>Spotware</Author>
    <Version>1.4</Version>
    <License>EULA.txt</License>
    <Description xml:space="preserve">Building cBots and Custom Indicators in Visual Studio</Description>
    <Locale>1033</Locale>
    <InstalledByMsi>false</InstalledByMsi>
    <SupportedProducts>
      <VisualStudio Version="10.0">
        <Edition>Pro</Edition>
      </VisualStudio>
      <VisualStudio Version="11.0">
        <Edition>Pro</Edition>
      </VisualStudio>
      <VisualStudio Version="12.0">
        <Edition>Pro</Edition>
      </VisualStudio>
<VisualStudio Version="13.0">
  <Edition>Community</Edition>
</VisualStudio>
<VisualStudio Version="14.0">
  <Edition>Community</Edition>
</VisualStudio>
<VisualStudio Version="15.0">
  <Edition>Community</Edition>
</VisualStudio>
<VisualStudio Version="15.1">
  <Edition>Community</Edition>
</VisualStudio>
<VisualStudio Version="15.2">
  <Edition>Community</Edition>
</VisualStudio>
    </SupportedProducts>
    <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" />
  </Identifier>
  <References>
    <Reference Id="Microsoft.VisualStudio.MPF" MinVersion="10.0">
      <Name>Visual Studio MPF</Name>
    </Reference>
  </References>
  <Content>
    <VsPackage>VSExtension.pkgdef</VsPackage>
  </Content>
</Vsix>

Let us know if the above solves the problem.

Best Regards,

cTrader Team


@Spotware

Spotware
10 Aug 2017, 09:36

Dear BeardPower,

Indeed the idea of Connect API is to be open and allow users to integrate cTrader Platform with other software systems. Yes it is possible to do the integration yourself. Just create a Connect API application and we will get in touch with you.

Best Regards,

cTrader Team


@Spotware

Spotware
10 Aug 2017, 09:09 ( Updated at: 09 Oct 2017, 09:46 )

Dear trend_meanreversion,

Thanks for asking this question. Stop Limit orders are coming soon in cAlgo API as well.

Best Regards,

cTrader Team


@Spotware

Spotware
09 Aug 2017, 14:37

Dear hungtonydang,

Thanks for posting in our forum. If you just need to have one position open at a time, you can check the number of open positions before executing your logic. See a small example below

        protected override void OnBar()
        {
            if (Positions.Count == 0)
            {
                // Execute your logic here
            }
        }

Please let us know if the above is helpful for you.

Best Regards,

cTrader Team


@Spotware

Spotware
09 Aug 2017, 11:46

Dear Trader,

Thanks for posting your question in the forum. Currently, it is not possible to get a specific range of cashflow history using the Connect API. You will need to filter the results on your side. We will consider this suggestion for future releases of Connect API.

Best Regards,

cTrader Team

 


@Spotware

Spotware
09 Aug 2017, 09:53

Dear hungtonydang,

Currently there is no function that places an order based on the output of an indicator. You need to program this yourself.

Thanks for your suggestion for the example. We will be adding more examples in the Guide in the near future.

Best Regards,

cTrader Team


@Spotware

Spotware
09 Aug 2017, 09:42

Dear nullx8,

You can have a look at the TimeZones class here. It can be used as a parameter in your robot. We hope this answers your question.

Best Regards,

cTrader Team


@Spotware