Topics
16 Nov 2023, 07:42
 1097
 1
15 Nov 2023, 10:36
 1973
 16
Replies

Spotware
03 Apr 2014, 14:40

We do not provide time frames through this channel. All I can say is that it's in our roadmap. 

Thank you for your patience. 


@Spotware

Spotware
03 Apr 2014, 14:07

RE: RE: How to split string

breakermind said:

Hi,

how to get current price for all available currency?

You can get current price for specific symbol by the following code:

var symbol = MarketData.GetSymbol("EURUSD");
Print("ask: " + symbol.Ask);
Print("bid: " + symbol.Bid);

There is no list of all available symbols in cAlgo.API. If you want to enumerate some specific symbols you will need to hardcode list of them.


@Spotware

Spotware
02 Apr 2014, 14:07

Desktop versions of cTrader and cAlgo can be run under Windows only. You can not run cBots in cTrader Web.
We can propose you to install virtual machine to your linux and install Windows there.


@Spotware

Spotware
02 Apr 2014, 10:57

No updates. 


@Spotware

Spotware
02 Apr 2014, 10:26

Thank you for your ideas. We will consider it. Additionally, you can post your ideas to vote.spotware.com.


@Spotware

Spotware
02 Apr 2014, 10:21

Unfortunately, we do not provide coding service. We can recommend you to post a job in Jobs section or contact one of our Partners.


@Spotware

Spotware
02 Apr 2014, 10:17

As we can see newStopLossPrice doesn't depend on any position properties:

double newStopLossPrice = Math.Round(Symbol.Bid - TrailingStop * Symbol.PipSize, Symbol.Digits);

Therefore it is expected that all positions (with the same trade type and distance more than Trigger) will have the same value of stop loss.

Could you please be more specific?


@Spotware

Spotware
02 Apr 2014, 10:04

RE: RE:

AXPN said:

Spotware said:

This issue has not been fixed.

I know it hasn't been fixed. I can see that on my platform. I'm asking if it has been looked at? With a major problem like this how long does it take to get it fixed? cTrader is useless and unreliable with problems like this. This is not a requirement for an improvement. This is a BIG BIG PROBLEM that needs to be fixed ASAP! This puts a question mark on the reliability of cTrader!

This issue is under investigation.


@Spotware

Spotware
02 Apr 2014, 10:03

you can use Server.Time:

Print("Server.Time.Minute: " + Server.Time.Minute);
Print("Server.Time.Second: " + Server.Time.Second);
Print("Server.Time.Millisecond: " + Server.Time.Millisecond);

 


@Spotware

Spotware
02 Apr 2014, 10:00

Such export can be performed by custom indicator. You can post a job in Jobs section or contact one of our Partners


@Spotware

Spotware
02 Apr 2014, 09:56

No, it is not currently possible. We plan to extend Chart API in the future.


@Spotware

Spotware
02 Apr 2014, 09:41

Could you please be more specific? It is not clear what you mean.


@Spotware

Spotware
02 Apr 2014, 09:40

Now we can confirm that it is a valid behavior.
Even if trading is not possible platform can receive new prices which could produce new bar. Therefore you need to extend logic of your cBot to handle trading errors.


@Spotware

Spotware
31 Mar 2014, 14:20

This issue has not been fixed.


@Spotware

Spotware
31 Mar 2014, 09:19

It is not currently possible. You can add your idea to vote.spotware.com


@Spotware

Spotware
28 Mar 2014, 10:20

Thank you for your idea, we will consider it. Additionally, you can post your idea to vote.spotware.com


@Spotware

Spotware
28 Mar 2014, 10:15

No, there is no such functionality in cAlgo.API. You can post your idea to vote.spotware.com


@Spotware

Spotware
28 Mar 2014, 10:14

There is no netting functionality in backtesting. Probably you have a mistake in code of your cBot.

Try to backtest the following cBot and you will see that positions are not merged:

using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        protected override void OnStart()
        {
            ExecuteMarketOrder(TradeType.Buy, Symbol, 10000);
            ExecuteMarketOrder(TradeType.Sell, Symbol, 10000);
        }

        protected override void OnStop()
        {
            foreach (var p in Positions)
                ClosePosition(p);
        }
    }
}

 


@Spotware

Spotware
28 Mar 2014, 10:06

Click take profit 1 , select the amount of pips of your take profit and the volume it will close

Click take profit 2 , select the amount of pips of your take profit and the volume it will close etc

You can check out this video for more information

http://youtu.be/v9rUd53B260

 


@Spotware

Spotware
28 Mar 2014, 09:57

If you want to extract some code from cBot it is better to create a class library in Visual Studio and then reference it in cBot with "Add Reference" button.


@Spotware