Replies

PanagiotisCharalampous
05 Mar 2024, 06:50

Hi ncel01,

Please share a full screenshot of the UI and submit some troubleshooting information when this happens.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2024, 06:48

Hi there,

Please provide more information about your problem. What do you mean when you say “I noticed that it's opening positions, but I can't see them”?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2024, 06:46

Hi there,

SL and TP should be set in pips. You seem to pass absolute prices instead.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2024, 06:46

Hi there,

SL and TP should be set in pips. You seem to pass absolute prices instead.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Mar 2024, 06:46

Hi there,

SL and TP should be set in pips. You seem to pass absolute prices instead.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 14:18

Hi there,

Price feeds are a responsibility of the broker. Please talk to your broker about it.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 14:18

Hi there,

Price feeds are a responsibility of the broker. Please talk to your broker about it.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 14:16

RE: RE: RE: RE: cTrader 4.8.30 Trendline bug

Hi there,

The size of the deviation is relative to the certain setup. I am just proving you that it happens in all platforms. It is not a matter of skills to fix it, it is a matter of understanding the maths behind this to comprehend it.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 14:13

Hi there,

Better share the complete cBot code, backtesting parameters and the logs you mention so that we can reproduce and advise accordingly.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 14:11

RE: moving an order on the chart - not registering

atrrwilder said: 

when you move a stop order or i think any order on the chart, its supposed to make that sound to confirm the adjustment has registered with the platform. Sometimes it does not make this sound and the order line only moves on the chart you moved it in, the rest of the charts that are open for the same asset, show the order in its original price point, as the change has not registered. So one chart shows the change, this is definitely misinformation and can cause confusion.

Im aware of the bug so when i dont hear the sound and dont see the other charts update, i just click on the order one more time to make the change stick.

I noticed that when im moving the order, if i fully stop mouse movement before letting go of the click, it will register no problem, but if the mouse cursor is still moving when you let go of the click, that is when the bug surfaces.

Please prioritize this fix as it is getting in the way of one of the primary functions of the platform, editing orders.

Hi there,

We were able to reproduce the sound issue but we could not reproduce the multiple charts issue. May we have a video demonstrating the steps you follow to make this happen?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 14:05

Dear trader,

The design for this feature is in progress.

Best regards

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 13:58

So the message you get is correct. You are trying to cancel an order with ID. This is not a valid order id

 


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 08:38

Hi there,

Unfortunately cTrader running on Parallels is not supported. You should either use it on a native Windows machine or use cTrader for Mac.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 06:46

Hi there,

Further updates to market replay will come in future updates but not in the upcoming one.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 06:45

RE: RE: Is it better to call the indicator or write the indicator yourself?

firemyst said: 

PanagiotisCharalampous said: 

Hi there,

Unfortunately I cannot understand the question and I guess many other readers. Could you please rephrase and provide some examples of what you are doing?

Best regards,

Panagiotis

I think what the OP is asking is if he's writing either a bot or a custom indicator that references a common indicator like the EMA, does the code execute faster if he references the native indicator in cTrader, or codes his own EMA within the custom indicator/bot he's writing. 

Since nano-seconds can make a difference, he's essentially wonder if anyone's done any bench marks to see which way is faster.

That's how I read it.

In principle no, as long as the implementations are identical. However, since there are always specifics in each case, this needs to be checked on a case by case basis.


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 06:43

Hi there,

Make sure your algos use .Net 6.0. Only .Net 6.0 algos are supported on Mac.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 06:41

RE: RE: RE: RE: IndicatorArea problem

Amin.fx said: 

PanagiotisCharalampous said: 

Amin.fx said: 

PanagiotisCharalampous said: 

Hi there,

Looks good to me

Best regards,

Panagiotis

 

 

When I run the indicator for the first time, nothing is displayed to me.
To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button.
This problem did not exist until a few months ago. This problem appeared with the new program update

Can you record a video demonstrating these steps?

 

Unfortunately, the site does not allow me to post videos or links

Hi there,

I do not think there is a problem with links but you can send us the video at community@ctrader.com

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
04 Mar 2024, 06:40

RE: Lines Trader

leonwij said: 

Hello,

Is it possible to update the above code sample to fix all the obsolete errors?

I have tried but some of the errors are not straightforward to correct.

Thanks,

Hi there,

It's a lot of work to update everything. If it is necessary for you to do this, you can assign the job to a professional.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Mar 2024, 07:15

RE: RE: The cBot is not entering trades.

telefonowelolo said: 

PanagiotisCharalampous said: 

Hi there,

The problem is here

Meini.haOpen.Last(0) > Meini.haClose.Last(0)

On bar opening the values will always be equal. Try executing the code in OnBarClosed() instead.

Regarding the timeframe, the Algo class has a Timeframe parameter, you can user it.

Best regards,

Panagiotis

 

Hi PanagiotisCharalampous

I followed your instructions, but my bot is still not working. And I reconstructed it so it looks like this 


//#reference: ..\Indicators\John.algo
using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC)]
    public class HAK : Robot
    {
        [Parameter("Initial Volume", DefaultValue = 1, MinValue = 1)]
        public int InitialVolume { get; set; }

        [Parameter("Initial Stop Loss", DefaultValue = 40)]
        public int SL { get; set; }

        [Parameter("Initial Take Profit", DefaultValue = 40)]
        public int TP { get; set; }

        public bool isAlreadyInTrade;
        public IndicatorDataSeries haClose { get; set; }
        public IndicatorDataSeries haOpen { get; set; }
        public John HAJ;
        string label = "HAK";

        protected override void OnStart()
        {
            Positions.Closed += OnPositionClosed;
            HAJ = Indicators.GetIndicator<John>(10, MovingAverageType.Simple);
            isAlreadyInTrade = false;
        }

        private void OnPositionClosed(PositionClosedEventArgs args)
        {
            isAlreadyInTrade = false;
        }

        protected override void OnBar()-----------------tried OnBarClosed()
        {
            int index = MarketSeries.Close.Count - 2;

            if (!isAlreadyInTrade)
            {
                Print("Current value of Kolor: " + HAJ.Kolor);
                
                if (HAJ.Kolor)
                {
                    
                    ExecuteMarketOrder(TradeType.Buy, Symbol, InitialVolume, label, SL, TP);
                    isAlreadyInTrade = true;
                }
                //else
                //{
                    
                    //ExecuteMarketOrder(TradeType.Sell, Symbol, InitialVolume, label, SL, TP);
                    //isAlreadyInTrade = true;
                //}
            }
        }
    }
}

I found out that the bot somehow thinks the kolor is always false

Indicator:

public Colors Color;
        public bool Kolor { get; set; }

Color = (haOpen[index] > haClose[index]) ? Colors.Red : Colors.LimeGreen;
                Kolor = (haClose[index] > haOpen[index]);
 

Hi there,

I do not see my instructions being followed anywhere, neither I can help with partial code. You don't seem to use any output IndicatorDataSeries, therefore your Calculate() method is probably not evaluated.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2024, 07:37

RE: RE: Calculating bar size help please

coppard.steve said: 

PanagiotisCharalampous said: 

Hi there,

how can I test for the pip size of the last bar closed?

Here you go

 var barPipSize = Math.Abs(Bars.ClosePrices.Last(1) - Bars.OpenPrices.Last(1)) / Symbol.PipSize;

Best Regards,

Panagiotis

Thanks very much Panagiotis!

I've noticed at particular times when the London and New York hours overlap that the big banks move the markets, so I am trying to develop a cBot to look for these large aggressive buy and sell candles and “follow the whales” with a long or short trade. So 3 candles on a short time frame more than 20 pips could trigger an automated trade with a take profit and stop loss.

What method can I use to trigger a trade between specific UTC+3 times?

Really appreciate your help.

Thanks 
Steve

Hi Steve,

There is no specific method, you would need to implement the specific checks yourself by checking Server.Time.

Best regards,

Panagiotis


@PanagiotisCharalampous