Topics
Replies

firemyst
25 Apr 2025, 05:53

RE: RE: RE: RE: risk reward

jobstkevin02 said: 

firemyst said: 

q.sallahu said: 

firemyst said: I DO NOT HAVE ANY SYMBOL ANY TOOL LIKE THAT ON DISPLAY  EVEN THOUGH MY CTRADER VERSION IS 5.1.14

 

If you had mentioned your version to begin with, we wouldn't be in this predicament.

It wasn't released until version 5.2.5

If you don't have it, you must be using a broker specific version of cTrader instead of the Spotware version.

 

 

 

I have version 5.3.62 and don´t have the tool… Why ? 

 

 

Screen capture. I have no idea how you can go from version 5.1.14 to 5.3.62 when the current Windows desktop version is 5.2.5.

You're apparently not running the web-based version of cTrader, nor the Windows desktop version.


@firemyst

firemyst
24 Apr 2025, 13:31

RE: RE: risk reward

q.sallahu said: 

firemyst said: I DO NOT HAVE ANY SYMBOL ANY TOOL LIKE THAT ON DISPLAY  EVEN THOUGH MY CTRADER VERSION IS 5.1.14

 

If you had mentioned your version to begin with, we wouldn't be in this predicament.

It wasn't released until version 5.2.5

If you don't have it, you must be using a broker specific version of cTrader instead of the Spotware version.

 

 


@firemyst

firemyst
23 Apr 2025, 08:24

RE: RE: Harmonic Pattern Scanner – Settings Window Blank

arthboro said: 

firemyst said: 

Thank You.

Bot AL wrote me:

Hi,

I’ve installed the Harmonic Pattern Scanner on cTrader Desktop (demo account, latest version). When I click the “Settings” button, I get a blank white window. After enabling WebView2 and installing .NET 6 runtime, I now get a system error:

System.NullReferenceException: Object reference not set to an instance of an object.
  at Syncfusion.Windows.Forms.MetroForm.UpdateSystemButtonsImages()
 

System.NullReferenceException: Object reference not set to an instance of an object.   at Syncfusion.Windows.Forms.MetroForm.UpdateSystemButtonsImages()

I’ve tried all the following:

Reinstalling the bot

Launching cTrader as administrator

Ensuring full access permissions

Installing all required runtimes

Nothing resolved the issue. The bot UI fails to render.

Please advise if this is a known bug or if an updated version is available.

Thank you!

 

This is a programming/coding issue. The error message makes it apparent - the code is trying to use an object that isn't being initialized or set in the code, hence the “null reference exception”.

The coder of the bot needs to debug their code and find out what it is.

 

Or they can share the code with someone to help out.

Either way, from everything you've shared right now, it's a pure coding issue, and nothing to do with cTrader itself.

 


@firemyst

firemyst
23 Apr 2025, 03:42

You need to contact the developers and ask them what the issue is since they have access to the source code and can tell you


@firemyst

firemyst
23 Apr 2025, 03:40

Depends on the version you have.

Version 5.2.5 it's there:

 


@firemyst

firemyst
23 Apr 2025, 03:39

For the automated backtesting? If so, why? What purpose would it server?

If you mean looking back through the charts manually to backtest, all you have to do is add it on:

 


@firemyst

firemyst
23 Apr 2025, 03:38


@firemyst

firemyst
23 Apr 2025, 03:37

It would be good if you post this in the “Suggestions” forum where it actually belongs so Spotware will look at it.


@firemyst

firemyst
21 Apr 2025, 10:54

Locally or in the cloud?

 


@firemyst

firemyst
21 Apr 2025, 10:53

Answer can be Googled:

 

 

 

 

 

 

 

 

 

 

 

help . ctrader . com /ctrader-algo/synchronisation/requirements-for-cbots/


@firemyst

firemyst
18 Apr 2025, 03:30

You can't do it by code unless you code the indicator yourself.

It's stupid how they implemented it. It's via the Levels Attribute.


@firemyst

firemyst
17 Apr 2025, 00:51

help . ctrader . com /ctrader-algo/articles/for-developers/how-to-use-custom-indicators-in-cbots/


@firemyst

firemyst
17 Apr 2025, 00:48

So, is there a way to get the actual candle pixel width or a way to calculate it ?

Nope.

If you want to draw candles, draw a vertical trend line for the wicks. That way, you can adjust the width.


@firemyst

firemyst
17 Apr 2025, 00:45

Submit it through cTrader and put a reference to this thread:


@firemyst

firemyst
17 Apr 2025, 00:45 ( Updated at: 17 Apr 2025, 00:46 )

Submit it through cTrader and put a reference to this thread:


@firemyst

firemyst
17 Apr 2025, 00:44 ( Updated at: 17 Apr 2025, 00:46 )

Submit it through cTrader and put a reference to this thread:


@firemyst

firemyst
15 Apr 2025, 05:17

RE: RE: Algo cloud bot keep stopping itself - Since the last update

kmitzas said: 

firemyst said: 

Run it locally and see what happens.

Locally is a good idea but I need to keep my pc open. 

The reason that I use cloud is that I can close my pc and take it with me without worrying that the bot will turn off.

 

Whelp, you need to test it on your PC to see if the same issue happens locally. If it does, you can debug it and figure out what's going on.

Unless you run that test, there isn't much people can do to help you.


@firemyst

firemyst
15 Apr 2025, 01:58

RE: RE: RE: RE: Lots vs Units

agent.xzxz said: 

firemyst said: 

 

Now my problem is I bought 1 lot of US100 then I close partial volume using this code

double volume = 0.5;ModifyVolume(volume)

it says Bad Volume.

But when I close .5 lot using a normal close, I mean not using a bot, it accepted it.

 

Post your code. For all I know, your code could have done something else, or reduced the size already before, or you could be using the wrong position or something else.

The code is below.
To replicate, you have to buy 1 lot of US100 (Nasdaq).

 

using System;using System.Linq;using cAlgo.API;namespace cAlgo.Robots{    [Robot(AccessRights = AccessRights.None, AddIndicators = true)]    public class TestModifyOrder : Robot    {        protected override void OnStart()        {            var position = Positions.FirstOrDefault();            if (position != null)            {                try                {                    double volume = 0.5;                    TradeResult tradeResult = position.ModifyVolume(volume);                    if (tradeResult.IsSuccessful)                    {                        Print("Success!");                    }                    else                    {                        Print($"Error: {tradeResult.Error}");                    }                }                catch (Exception ex)                {                    Print(ex.Message);                }            }        }        protected override void OnTick()        {            // Handle price updates here        }        protected override void OnStop()        {            // Handle cBot stop here        }    }}

Works perfectly for me.

 

I bought 1 lots of NAS, then started the bot:

 

Your statement “var position = Positions.FirstOrDefault();” might not work as you want if you have other positions open at the time because “.first()” may or may not return NAS as the first position in the open positions you have.


@firemyst

firemyst
14 Apr 2025, 23:48

Run it locally and see what happens.


@firemyst

firemyst
14 Apr 2025, 23:47

Contact the person you bought it from and ask them since they know the code and can debug the issues you're having.


@firemyst