Replies

PanagiotisCharalampous
02 Dec 2023, 08:20

Hi there,

No this is not possible at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Dec 2023, 08:19

Hi there, 

Market sentiment is only available for Symbols with substantial open positions. Symbols that are not very popular amongst traders, do not show a market sentiment as it will not be a representative information.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Dec 2023, 08:14

RE: RE: How to copy errors from compiler

mikefox7602 said: 

simoneraineop said: 

To copy errors from a compiler, you can follow these general steps:

Build or compile your code: Run the compilation process for your code, which will generate the error messages.

Review the error output: The compiler will display error messages indicating any issues it encountered during the compilation process. These messages typically provide information about the error, including the file name, line number, and a description of the problem.

Select the error messages: Use your mouse or keyboard to select the error messages you want to copy. You can click and drag to select a specific portion or use keyboard shortcuts like Ctrl+A (Windows) or Command+A (Mac) to select all the text.

Copy the selected errors: Once you have selected the desired error messages, right-click and choose the "Copy" option, or use the keyboard shortcut Ctrl+C (Windows) or Command+C (Mac) to copy the text to the clipboard.

Paste the errors: Open a text editor, code editor, or any other application where you want to paste the error messages, and use the paste command (Ctrl+V on Windows or Command+V on Mac) to insert the copied errors.

By following these steps, you should be able to copy the error messages from the compiler and paste them into a separate file, an online forum for assistance, or share them with others for troubleshooting purposes.

 

 

 

 

 

 

 

This dont work.

I Find it wery strange that the plattform builders have missed some wery obvious stuff. C trader have had time enough to fix this issues same comes to some markers on the charts. 

Hi there,

You can just use an IDE like Visual Studio. Most programmers do not delevop in cTrader. It's pointless for cTrader Team to dedicate resources to reinvent the wheel. It is preferable to delevop other unique features instead.

Best regards, 


@PanagiotisCharalampous

PanagiotisCharalampous
02 Dec 2023, 08:04

Hi there,

Yes you can. You cannot specify labels for manual positions, you can use comment instead.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Dec 2023, 07:54

Hi Glenn,

Should this line return null if the horizontal line  named “Insight” can't be found and set the value of insightLine to null?:

Yes

Should I expect that  insightLine.IsAlive should now be False? (but insightLine is ≠ null)

Yes

insightLine should now be null?

Yes

What I get is, that remove object doesn't seem to change the IsAlive property to false, and once it exists FindObject never seems to return a null, mostly as established with DrawStaticText, but I thought I should clarify whats actually expected behaviour.

Works fine for me. See my code below

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

namespace cAlgo
{
    [Indicator(AccessRights = AccessRights.None, IsOverlay = true)]
    public class NewIndicator : Indicator
    {
        [Parameter(DefaultValue = "Hello world!")]
        public string Message { get; set; }

        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }
        
        ChartHorizontalLine insightLine;
        protected override void Initialize()
        {
              insightLine = Chart.DrawHorizontalLine("Insight", 1, Color.Red);
              insightLine = Chart.FindObject("Insight") as ChartHorizontalLine;
              Print(insightLine.IsAlive);
              Chart.RemoveObject("Insight");
              Print(insightLine.IsAlive);
        }

        public override void Calculate(int index)
        {
        
        }
    }
}

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Dec 2023, 07:26

Hi there,

Unfortunately this is not possible at the moment. You can use backtesting for this instead.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Dec 2023, 07:22

RE: RE: Reply to: ROI Calculation wrong

frequencyforex said: 

PanagiotisCharalampous said: 

Hi there,

The issue is being investigated.

Best regards,

Panagiotis

Hi it was fixed for a few hours now it's incorrect again?

Hi there,

We did not report that we fixed something.

Best regards,


@PanagiotisCharalampous

PanagiotisCharalampous
02 Dec 2023, 07:21

Hi Andrey,

Thank you for reporting this issue. Unfortunately we were not able to reproduce the disappearing indicators behavior. Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.

Best regards,

Panagiotis
 


@PanagiotisCharalampous

PanagiotisCharalampous
02 Dec 2023, 07:20

Hi there,

It's not possible to reference an indicator that does not come with source code.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Dec 2023, 06:41

RE: CLI: lack of basic functionalities

ncel01 said: 

Panagiotis,

Thanks for your reply.

Killing the process is not exactly a command.

How can traders make use of the OnStop() method through the CLI then? If the process gets killed this method won't be called.

Hi there,

You can't use OnStop() through CLI at the moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Dec 2023, 06:39

RE: RE: RE:

andrei_alenikov said: 

sdhilton said: 

Spotware said:

Dear trader,

Thank you for reporting this issue to us. Is it possible to record a video demonstrating this behavior?

Best regards,

cTrader Team

Not really Ctrader team as I never know when it is going to happen and I am busy trading at the time it often occurs... just know that it does happen and I am sure you are aware of this issue as it has been happening since I've been using Ctrader web! This is not a new issue for me. It just seems to be happening more often these days, so again I refer you back to my 3 questions I asked above and pasted below:

Questions:

1. Why does this keep happening consistently over many years (this is not a rare occurence).

2.How can I stop this from happening??

3. Is there a way to retrieve my chart layout settings when this does happen??

Also, Ctrader Web on chrome seems to be very resource hungry using up a majority of my CPU and RAM 

I have pasted a screenshot of my current Ctrader Web resource usage below and the first 2 Google Chrome tabs (27.7 & 20.7%) are both open Ctrader Web tabs on my laptop:

This may have something to do with why it keeps refreshing the Ctrader Web windows but it doesn't explain why my chart layout settings and technical drawings are dissapearing and refreshing with the default settings in Ctrader Web!

Please provide a fix or workaround asap as this is really affecting my trading and is pushing me to seek alternative platforms, which I really do NOT want to do as I've been using your platform for many years and It is a familiar part of my process!

Thanks for any assistance you can provide!

 

 

I confirm this frustrating behavior for cTrader Desktop as well:

1. Ctrader Desktop reloads all open windows and workspaces (often)

2. When Ctrader refreshes the page it sets the chart’s view to current day and time even if I was on the previous month.

3. When I scroll back with the key “page up” to the period where I was before refreshing – all indicators on all charts disappear.  

I becomes almost impossible to work with cTrader since it takes hours to set up charts with indicators and you lose them all after next refresh! 

Hi there,

This is a thread about cTrader Web. If you want to report an issue for cTrader Desktop, please post it here

https://ctrader.com/forum/ctrader-support

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2023, 12:09

Hi there, 

If they are visible in cTrader, it means they are not deleted. You need to contact them again.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2023, 12:08

Hi there,

ChatGPT produced code is full of bugs. There is no such thing as a OnTradeExecuted(). If you don't know how to code, better ask the assistance of a professional.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2023, 12:05

Hi there,

Stop Command

cBot can be stopped by killing the CLI process. This is the command implied by the documentation

Journal File Generation / Date and Time in CLI Log

Stdout contains all the information and can be forwarded to a text file. You can also implement your own logging functionality. We do not have any further plans at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2023, 06:40

Reply to: Control Scaling of seperated window

Hi there,

Can you be a bit more specific about your question? What exactly do you need to do?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2023, 06:27

Reply to: Get the win/loss of the previous trade

Hi there,

Where did you get this code from? You need to share the complete cBot code in order for us to understand what the problem is.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2023, 06:24

Reply to: ROI Calculation wrong

Hi there,

The issue is being investigated.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2023, 06:21

Reply to: Question re: Object Dragging

Hi there,

Try ObjectUpdated event.

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
30 Nov 2023, 06:17

Reply to: GetSymbol Problem

Hi all,

It's a known issue and it will be resolved in an upcoming update.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
29 Nov 2023, 08:22

Reply to: api

Hi there,

No this is not possible.

Best regards,

Panagiotis


@PanagiotisCharalampous