Topics
Replies

firemyst
24 Jan 2025, 00:36

Yes, it's a C# language construct just like it is in C++. It's not specific to cTrader.

Google “c# multidimensional array”


@firemyst

firemyst
23 Jan 2025, 11:56

RE: RE: Positions Tab Removed for cTrader Copy live trades monitoring AGAIN!!!

tbssecurett said: 

firemyst said: 

Is there a reason you haven't posted a screen capture showing the issue? 

Normally when I am copying a strategist, when they open trades I can see their positions live under the positions tab after the recent updates, it returned for two days and then disappeared again. Enter the image below, the red arrow shows where it's usually located.

 

 

I can't help you because I don't use cTrader Copy. However, at least you clarified where the tab missing from, because for most people, the “Positions” tab is on the “Trade” window. Lesson learned - you need to be more specific when posting issues :-)

 

 

 


@firemyst

firemyst
23 Jan 2025, 01:26

Next time it happens report it as a technical issue within cTrader and put a link to this thread in the details section along with other pertinent information such as:

  1. using Windows/Mac
  2. running locally or cloud
  3. using .NET6 or .Net Framework
  4. cTrader version
  5. what exactly you do when you notice the error

@firemyst

firemyst
23 Jan 2025, 01:23

Write the author of the bot and ask them for the code.

 


@firemyst

firemyst
23 Jan 2025, 01:21

Is there a reason you haven't posted a screen capture showing the issue? 


@firemyst

firemyst
23 Jan 2025, 01:19

Have you asked your broker why?

If so, what did they say?


@firemyst

firemyst
23 Jan 2025, 01:18

I don't believe so. I think you have to enter the command for each account specifically. 

Otherwise, how would the platform know which account you want the command to apply to?


@firemyst

firemyst
23 Jan 2025, 01:07

RE: RE: support for creating a bot to open a position after 3 consecutive candles of the same color occur

mariolanzetta.cro said: 


                ExecuteMarketOrder(TradeType.Buy, SymbolName, 3);
 

When you call this method, you don't actually set the SL or TP - you're leaving those parameters off.

Include those parameters in your call in ExecuteMarketOrder:

 

Note that it is in PIPS, and not PRICE, so you have to update your code to use pips and not the calculated price. 


@firemyst

firemyst
22 Jan 2025, 00:21 ( Updated at: 22 Jan 2025, 10:05 )

Spotware needs you to post this in the suggestions forum. Maybe with a link to an example.

This is tech support forum – they don't come here looking for suggestions for their product.

Or you can code it yourself. 


@firemyst

firemyst
22 Jan 2025, 00:20 ( Updated at: 22 Jan 2025, 10:05 )

I am interested in whether it is possible to make a code to reset the bot itself after each closed position?

Yes. When a position is closed, just reset all your internal parameters/properties. for instance, if you have a counter, reset it to zero; if you have some sort of “flag”, reset it to its default value; if you have any objects, reinitialize as appropriate.

 

Second, is it possible to reset the bot after a loss and enter the next position with a 4x bigger lot?

Yes. In your bot's code, when a position is closed, check to see if it did for a loss.

If it did lose, then update your position-size parameter value as appropriate.

 

In simplistic terms. Obviously the complexity of the implementation will depend on how clean your code is.


@firemyst

firemyst
22 Jan 2025, 00:13 ( Updated at: 22 Jan 2025, 10:05 )

You need to post your code so people can see what you're doing and lend suggestions


@firemyst

firemyst
22 Jan 2025, 00:11 ( Updated at: 22 Jan 2025, 10:05 )

Post this in the suggestions forum. This is a technical support forum.


@firemyst

firemyst
22 Jan 2025, 00:10 ( Updated at: 22 Jan 2025, 10:05 )

Because the particular market isn't open at the time for trading


@firemyst

firemyst
21 Jan 2025, 23:30 ( Updated at: 22 Jan 2025, 10:05 )

RE: RE: RE: Error | Crashed in OnBar with TypeLoadException...

oliver.r.m.92 said: 

oliver.r.m.92 said: 

firemyst said: 

Have you tried updating the cTrader.Automate package to the latest version?

I think not, how can I do it?

I found the information here "https://help.ctrader.com/ctrader-algo/visual-studio-ides/#creating-new-cbotsindicators" but I did not use Visual studio to create the cBot, does it also affect its operation?

If you created the bot and have the source code, you need to post the code where the error is occurring. Otherwise, it's hard for anyone to help you because they can't see what your code is doing. It shouldn't matter whether you use visual studio or another development environment.

If you didn't create the bot and/or do not have access to the source code, then it's probably easiest to contact the bot's developer.

 

 


@firemyst

firemyst
21 Jan 2025, 23:21

RE: RE: Manage bots from the android mobile app

gianluca.balzamo said: 

firemyst said: 

A question or statement?

I think it wouod be great to be able to manage bots from the app. Even if only few functionalities like turning it on/off and changing some settings. 

Then you should post this in the suggestions forum. This forum is for technical support - Spotware doesn't come here looking for ways to improve its product


@firemyst

firemyst
21 Jan 2025, 00:19 ( Updated at: 21 Jan 2025, 21:06 )

Spotware should employ traders like you who actually use their platform.


@firemyst

firemyst
21 Jan 2025, 00:16 ( Updated at: 21 Jan 2025, 21:08 )

Great idea!

 


@firemyst

firemyst
21 Jan 2025, 00:11 ( Updated at: 21 Jan 2025, 21:08 )

You will probably have to write your broker to find out why.

Be sure to give them details they'll need, like your original order iD.


@firemyst

firemyst
20 Jan 2025, 00:38 ( Updated at: 21 Jan 2025, 21:08 )

You can fix it.

It's exactly as the error message says – you're missing a parameter which specifies the “ProtectionType”. 

The code compiles and should still run at the moment.

@Spotware has yet to provide any documentation or responses to people who have posted and asked what the new ProtectionType parameter is about, or does:

https://community.ctrader.com/forum/cbot-support/46002/

https://community.ctrader.com/forum/ctrader-algo/46005/

https://community.ctrader.com/forum/ctrader-algo/45988/

 


@firemyst