Topics
Replies

firemyst
12 Dec 2023, 23:53 ( Updated at: 13 Dec 2023, 06:21 )

Can you post a screen capture showing the issue?


@firemyst

firemyst
12 Dec 2023, 23:51 ( Updated at: 13 Dec 2023, 06:21 )

You need to post this in the “Suggestions” forum:

 

https://ctrader.com/forum/suggestions

 


@firemyst

firemyst
11 Dec 2023, 11:27 ( Updated at: 12 Dec 2023, 06:31 )

Duplicate

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

 


@firemyst

firemyst
11 Dec 2023, 11:25 ( Updated at: 12 Dec 2023, 06:31 )

Yes.

Remove:

[Output("Main", LineColor = "Turquoise")]

 


@firemyst

firemyst
11 Dec 2023, 11:22 ( Updated at: 12 Dec 2023, 06:31 )

Duplicate

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

 


@firemyst

firemyst
08 Dec 2023, 06:47 ( Updated at: 08 Dec 2023, 13:47 )

RE: algohost.exe "Application Error" and crashing

PanagiotisCharalampous said: 

Hi firemyst,

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
 

I couldn't. cTrader became unresponsive. I had to kill it via task manager and restart. 

However, if you can confirm the information will still be there even after restarting, I can try sending the trouble-shooting information? (I don't want to waste Spotware's time if it'll be pointless since I had to restart)


@firemyst

firemyst
05 Dec 2023, 02:20

Do you have it set as a trailing stop loss? That's the only way it should “walk”. 


@firemyst

firemyst
05 Dec 2023, 01:23

RE: RE: How to stop/pause closing an existing position countinuously if given criteria have already been met once?

JINGXUAN said: 

PanagiotisCharalampous said: 

Hi there,

Unfortunately it is a lot of work to create a comprehensive example. If I find some time later, I will.

Best regards,

Panagiotis

Okay, many thanks in advanced ! PanagiotisCharalampous let me know when there are any example I can refer to, I will pay attention to any update of this link, have a great day ahead!

I keep track of every position I open internally using Dictionary objects:

 private Dictionary<int, double> _positionEntryPricePoints;
 private Dictionary<int, double> _positionEntryVolumes;
 private Dictionary<int, DateTime> _positionEntryPriceTimes;
 private Dictionary<int, double> _increasePositionSizePoints;
       

The “key” is the position number and the “value” is the name of the Dictionary.

So for instance, if I open a German40 position with 3 lots @ 15:00 at the 12345 point, then:

price points would be (1,12345)

entry volume wouldbe (1,3)

entry price times would be (1, 2023/12/05 15:00)

Now if I increase my size by 1.5 lots at 12400 around 16:00, then:

price points would be (1,12345), (2,12400)

entry volume wouldbe (1,3), (2,1.5)

entry price times would be (1, 2023/12/05 15:00), (2, 2023/12/05 16:00)

increase position size points would now be (2,12400)

You get the gist.

I continuously update my Dictionary objects as appropriate so I know exactly where I'm at and what I've done.

You can do something similar for your closings.

 


@firemyst

firemyst
04 Dec 2023, 03:58 ( Updated at: 04 Dec 2023, 08:32 )

RE: cTrader has renko wicks.

cuervotorres.r said: 

In the timeframe selector. And heikin ashi too.

No it doesn't have Renko wicks. It has the Renko Timeframes, but currently do not have the option for displaying Renko Wicks.

 

 


@firemyst

firemyst
04 Dec 2023, 03:57 ( Updated at: 04 Dec 2023, 08:32 )

Would have been nice if you looked through the suggestions first instead of creating another thread to divide up the votes:

 

https://ctrader.com/forum/suggestions/40394

https://ctrader.com/forum/suggestions/40727

 

 

Vote in the above threads as well.


@firemyst

firemyst
04 Dec 2023, 03:50 ( Updated at: 04 Dec 2023, 08:32 )

RE: connection to the account - Error Code 1

PanagiotisChar said: 

Hi there,

You should post your issue in the correct section of the forum and share some more information e.g. screenshots so that the rest can understand what are you looking at

Can we get someone at Spotware to delete this (and other similar posts) from the Suggestions forum? 


@firemyst

firemyst
04 Dec 2023, 03:47 ( Updated at: 04 Dec 2023, 08:32 )

RE: RE: cBots frequently freeze during trading.

eamaster01 said: 

PanagiotisChar said: 

Hi there,

Sounds more like a problem with your cBots. Spotware cannot control the quality of the cBot code you run. You should try to optimize them. Else share your cBot code and exact steps how someone can reproduce your problem

PanagiotisChar, thank you for your replying.
The MT4 EA of the same program is working without any problems, so it is unlikely that there is a problem with the cBot code.

Even though the VPS, broker server, and internet are connected and the cBot button is orange and working,
Occasionally, a problem occurs where cBot is stuck and does not trade.

Since the cBot button and the Automete lamp on the chart are in the operating state, it is impossible to determine whether the cBot is moving or stopped.

When cBot is stuck, I can take a screenshot if the cTrader platform displays an error signal, but if there is no error display, I cannot reproduce the problem.

However, if I get suspicious because cBot is not trading where it should be and restart the cTrader platform, cBot will recover and start trading normally.

This kind of situation occurs from once a week to once a month. This often happens during periods of heavy trading.
Is the multi-functionality of the cTrader platform negatively impacting the operation of cBot?


There have been similar posts recently. I think it's probably the same problem.

Repeated Disconnections
https://ctrader.com/forum/calgo-support/42211

cTrader account disconnection
https://ctrader.com/forum/calgo-support/8526

 

You also need to post your issues in the appropriate forum, not the “Suggestions” forum. That's like half your problem to start with:

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

 


@firemyst

firemyst
04 Dec 2023, 03:43 ( Updated at: 04 Dec 2023, 08:32 )

Why don't you just “nullify” your indicator object, and then recreate it?

You have to create and get the indicator data via code when you first start your cBot, so just do it again if you know there's a change.


@firemyst

firemyst
03 Dec 2023, 11:39 ( Updated at: 04 Dec 2023, 08:32 )

Post it in the correct forum and it might actually be acted upon:

https://ctrader.com/forum/suggestions

 


@firemyst

firemyst
03 Dec 2023, 11:38 ( Updated at: 04 Dec 2023, 08:32 )

DOn't know they'd do that since you haven't even taken the time to post it in the right forum:

 

https://ctrader.com/forum/suggestions

 

 


@firemyst

firemyst
03 Dec 2023, 11:36 ( Updated at: 04 Dec 2023, 08:32 )

Legal and Regulations ramifications.

For starters, because Spotware could then be liable if something unexpected happens and/or there's malicious code.

That's why code has to be posted so everyone can see what it does and Spotware is also covered in that respect because you're made aware of what the bot/indicator does.

 


@firemyst

firemyst
03 Dec 2023, 11:28 ( Updated at: 04 Dec 2023, 08:32 )

_

First of all, you'd have to register an event that the chart has been updated:

Chart.ObjectsUpdated += botHorizontalLineUpdated;

Define the method and do what you need:

private void botHorizontalLineUpdated(ChartObjectsUpdatedEventArgs args)

{

    //these lines are known as small chart horizontal lines

    if (args.ChartObjects[0].GetType().Name == "SmallChartHorizontalLine")
    {
        //Get your line
		ChartHorizontalLine obj = (ChartHorizontalLine)args.Chart.FindObject(TheNameOfYourLine);
		//Do what you need to from here
    }

}

@firemyst

firemyst
03 Dec 2023, 10:22 ( Updated at: 21 Dec 2023, 09:23 )

RE: How to reference indicator without it source code

PanagiotisCharalampous said: 

Hi there,

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

Best regards,

Panagiotis

I'm confused, because I do. I build all my custom libraries and Indicators without including source code, and reference them in my VS cBot projects.

Example:


@firemyst

firemyst
03 Dec 2023, 10:18 ( Updated at: 04 Dec 2023, 08:32 )

Use the HIstoricalTrade object

You could look at the example Spotware provided:

https://help.ctrader.com/ctrader-automate/references/Trading/History/HistoricalTrade/#examples

 

private void Positions_Closed(PositionClosedEventArgs args)
{
	//Only run this method if it's this instance that closed.
	Position p1 = args.Position;

	if  (p1.SymbolName == Symbol.Name && p1.Label == _positionLabel)
	{
		HistoricalTrade ht = History.FindLast(p1.Label, p1.SymbolName, p1.TradeType);
		if (ht != null)
		{
			//DO whatever if there's historical information
    			double cp = ht.ClosingPrice;
			Print("CLosing Price: {0}", cp);
		}
	}

}

@firemyst

firemyst
26 Nov 2023, 10:02 ( Updated at: 26 Nov 2023, 11:07 )

RE: RE: Same here! I've noticed too

PanagiotisCharalampous said: 

firemyst said: 

And have posted about it previously, but nobody from @Spotware has responded nor addressed the issue:

 

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

 

 

AFAIK this has been fixed. Do you still experience this?

 

I didn't know this was fixed. I will have a look next chance I get as I haven't bothered to check since reporting the issue since it didn't seem to be acknowledged. 

I'm sure you know by now I'm not shy on raising issues, assume no news is good news. :-)

 


@firemyst