Topics
Replies
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
( Updated at: 21 Dec 2023, 09:23 )
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
PanagiotisCharalampous
29 Nov 2023, 07:52
Reply to: IndicatorDataSeries plots the indicator line at different prices for the same date when the chart is zoomed out.
Hi there,
I could not reproduce this issue on my computer. Any chance you can record a video demonstrating it?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Nov 2023, 07:43
Reply to: Performance fee option not visible
Hi there,
Fees are not available for demo strategies.
Best regards,
cTrader Team
@PanagiotisCharalampous
PanagiotisCharalampous
28 Nov 2023, 09:15
RE: RE: Reply to: Understanding Discrepancies in Equity and Account Balance on Ctradercopy for November
QuanTrade said:
PanagiotisCharalampous said:
Hi there,
This is not equity, this is ROI. You must have experienced a drawdown during November.
Best regards,
Panagiotis
Sure, I understand, but why is my account positive while the followers' account is negative?"
Hi there,
Because you have made deposits to cover your losses.
Best regards,
Panagiotis
@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