Topics
Replies
firemyst
26 Jan 2025, 13:56
( Updated at: 14 Feb 2025, 18:19 )
Google.
There's multiple free ones you can download:
https://clickalgo.com/martingale-trading
https:// community.ctrader.com / algos / cbots / show / 3 /
@firemyst
firemyst
26 Jan 2025, 13:46
( Updated at: 14 Feb 2025, 18:16 )
See this duplicate thread for updates:
https://community.ctrader.com/forum/ctrader-algo/44856/
@firemyst
firemyst
26 Jan 2025, 08:13
( Updated at: 14 Feb 2025, 18:19 )
They've added a new “ProtectionType” parameter that @Spotware has provided no documentation, answers, or anything else about to numerous posts in the forum that have asked about it.
I'll update my thread:
https://community.ctrader.com/forum/cbot-support/46002/
as soon as, or if ever, I find/receive an answer.
@firemyst
firemyst
26 Jan 2025, 08:11
( Updated at: 14 Feb 2025, 18:19 )
Numerous people have been posting and asking about it, and @Spotware has yet to respond to anything.
I would suggest you keep track of this thread:
https://community.ctrader.com/forum/cbot-support/46002/
as I'll update my post as soon as I find/receive an answer.
@firemyst
firemyst
26 Jan 2025, 08:08
( Updated at: 14 Feb 2025, 18:19 )
I don't think you've read the API documentation carefully, because there's only two types of API calls for the ATR:
- AverageTrueRange AverageTrueRange(int periods, MovingAverageType maType);
- AverageTrueRange AverageTrueRange(Bars bars, int periods, MovingAverageType maType);
and your code does neither.
For either one, you need to provide the moving average type, of which you haven't done so in your code.
@firemyst
firemyst
26 Jan 2025, 07:41
( Updated at: 14 Feb 2025, 18:19 )
Well unless you post some code, or messages from the logging tab, how do you expect anyone to help you?
It's like going up to a mechanic and saying you're car doesn't work today, but did yesterday. How do you expect him to fix it without you showing them the car?
@firemyst
firemyst
26 Jan 2025, 07:40
( Updated at: 14 Feb 2025, 18:19 )
RE: RE: Ctrader bot ignores code and blown my account!
Dennis1 said:
firemyst said:
Why haven't you run your bot locally and do a “back test” for the dates Dec 16th - 20th to see if anything happens that you can pin point?
Run your backtest against tick data and see what happens.
Of course I have run the backtest over those days. It shows that bot didn't open any trades since none of the entry criteria have been met. Yet on live account it went wild and made 1166 trades in 40mins!
What protection do you have built into your bot? For instance:
- do you check spreads before you bot opens a position?
- do you have anything that checks for x-number of losing trades and to stop your bot if it reaches that threshold?
- do you have anything that checks for x-number of losing pips and to stop your bot if it passes that threshold?
While this doesn't help you to resolve what happened, these are a few suggestions to build safety-nets into your algos as it doesn't seem like you have any to prevent your bot from blowing an account again .
As a programmer you need to consider such things when programming algorithms for the unpredictable markets, regardless of how sound your strategy may be.
@firemyst
firemyst
26 Jan 2025, 07:34
( Updated at: 14 Feb 2025, 18:19 )
I don't believe you can do a “push” notification, but you can send emails and telegram messages from calgo.
Otherwise, See this page for more info:
https://help.ctrader.com/ctrader-id/managing-ctid/notifications/
@firemyst
firemyst
26 Jan 2025, 06:42
( Updated at: 14 Feb 2025, 18:19 )
If you're not using the standard MACD from cTrader in your code, you need to add a reference to the file you are using in cTrader:
- click on Algo m enu
- click on your bot/indicator
- once code is shown, at top of screen click “References”
- add your reference

@firemyst
firemyst
26 Jan 2025, 06:37
( Updated at: 14 Feb 2025, 18:19 )
Well unless you post some code, or messages from the logging tab, how do you expect anyone to help you?
It's like going up to a mechanic and saying you're car doesn't work today, but did yesterday. How do you expect him to fix it without you showing them the car?
@firemyst
firemyst
26 Jan 2025, 14:00 ( Updated at: 14 Feb 2025, 18:17 )
NOt sure what you're asking for?
Just set the parameters of the indicator on your chart
@firemyst