PanagiotisCharalampous's avatar
PanagiotisCharalampous
26 follower(s) 0 following 1006 subscription(s)
Replies

PanagiotisCharalampous
23 Dec 2020, 08:22

Hi EagleMoxy,

If you build your cBot without source code, then the content is encrypted and the source code is not distributed with the .algo file.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
23 Dec 2020, 08:18

Hi 8089669,

You need to explain a bit better what are you trying to do. Your description is not very clear. The OHLC information for bars is stored in the robot's Bars property.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
23 Dec 2020, 08:13

Hi jackhpfilerrowson,

Try smtp instead of smpt.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
23 Dec 2020, 08:11

Hi Martin_I,

Try this instead

        protected override void OnError(Error error)
        {
            
            switch (error.Code)
            {
                case ErrorCode.BadVolume:
                    Print("Bad Volume");
                    break;
                case ErrorCode.TechnicalError:
                    Print("Technical Error");
                    break;
                case ErrorCode.NoMoney:
                    if (error.TradeResult.Position.TradeType == TradeType.Buy)
                    {
                        Kaufen = false;
                        Print("FEHLER - NO MONEY - KAUFEN = FALSE");
                    }
                    if (error.TradeResult.Position.TradeType == TradeType.Sell)
                    {
                        Verkaufen = false;
                        Print("FEHLER - NO MONEY - VERKAUFEN = FALSE");
                    }
                    break;
                case ErrorCode.Disconnected:
                    Print("Disconnected");
                    break;
                case ErrorCode.MarketClosed:
                    Print("Market Closed");
                    break;
            }
        }


    }

Best Regards,

Panagiotis 

Join us on Telegram 


@PanagiotisCharalampous

PanagiotisCharalampous
22 Dec 2020, 16:16

Hi ketos.energy,

Backtesting is rounding the entry time to the minute, if this is what is confusing you. 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Dec 2020, 11:05

Hi LCTRADER,

Out of curiosity, what was the issue?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Dec 2020, 08:43

Hi ifadi123,

The reason that the indicator does not display is that you probably do not have enough bars loaded on the chart. To see the indicator, scroll back the chart to load more bars and then wait for some time for the indicator to be calculated.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Dec 2020, 08:29

Also I cannot see where do you see a minute difference. Can you please point me to the deal you referring to? 


@PanagiotisCharalampous

PanagiotisCharalampous
22 Dec 2020, 08:28

Hi ketos.energy,

Thanks for the screenshots but they are not useful for me. To check this further I need to reproduce this behavior. Therefore you need to share with me the complete cBot code as well as cBot parameters so that I can perform the experiment too.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Dec 2020, 16:56

Hi ketos.energy,

In general, backtesting cannot simulate latency. In backtesting, the entry time is the time at which the tick was generated on the server. In live trading, it takes some time from that moment to the moment your trade is actually executed, since the quote has to travel to your PC, the code needs to be executed, the order needs to be send and then executed on the server. However I cannot know what happens in your case, since the information you provided is very limited.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Dec 2020, 16:27

Hi honeybadger,

Market range orders are IOC orders, hence cancelled if not executed immediately. Limit orders are GTC orders therefore they stay till filled or cancelled. When a limit order is partially filled, you will get following events.
For the first fill, when the position is created:

  1. PendingOrders.Modified
  2. PendingOrders.Filled
  3. Positions.Opened

For subsequent fills:

  1. PendingOrders.Modified
  2. PendingOrders.Filled
  3. Positions.Modified

Best Regards,

Panagiotis 

Join us on Telegram 

 


@PanagiotisCharalampous

PanagiotisCharalampous
21 Dec 2020, 16:00

Hi dave.anderson.consulting,

In optimization, you cannot get bars from other timeframes before the backtesting start date. You can only get such bars from the date and time the execution has started and onwards. I hope it is clearer now.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Dec 2020, 15:53 ( Updated at: 23 Dec 2020, 08:37 )

Ηι imandrea.moser,

To access your IC Markets account, you need to download IC Markets cTrader from IC Markets website.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Dec 2020, 15:52

Hi LCTRADER,

The balance is not relevant in this case. What you need to check is the equity of the two accounts at the given moment.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Dec 2020, 13:27

Hi ketos.energy,

It provides data for every tick.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Dec 2020, 08:43

Hi shpendbaftiu,

History displays Deals hence TP and SL information is irrelevant. TP and SL are properties of the orders, therefore they are displayed in the Done Orders tab.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Dec 2020, 08:40

Hi volkov.alexandro,

If you need somebody to develop a custom trading panel for you, you can consider contacting a Consultant or posting a Job.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Dec 2020, 08:38 ( Updated at: 21 Dec 2023, 09:22 )

Hi shpendbaftiu,

You can add comments when you place an order.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Dec 2020, 08:32

Hi davidgough,

Please use the Suggestions section for suggestions.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Dec 2020, 08:30

Hi EagleMoxy,

To use cTrader FIX API, you need to use your own custom made application. cTrader uses a proprietary protocol for communication, which is equally fast to FIX API.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous