- Home
- Algorithms
Algorithms
Warning! Executing cBots downloaded from this section may result in loss of funds. Use them at your own risk.
Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
How to installHow to install cBots & Indicators
- Download the Indicator or cBot.
- Double-click on the downloaded file. This will install all necessary files in cAlgo.
- Find the indicator/cbot you want to use from the menu on the left.
- Add an instance of the indicator/cBot to run.
- Download the Indicator
- Double-click on the downloaded file. This will install all necessary files in cTrader.
-
Select the indicator from Custom in the functions (f) menu in the top center of the chart
- Enter the parameters and click OK
paid
07 May 2023
It's optimized on the entire cTrader history data for EURUSD. I changed some indicators and improved the logic of my bot. The bot can be further optimized on any currency pair you want. Even crypto, stocks, metals...
This bot here is optimized for EURUSD 1 -minute time frame on the 12 Years of eurusd history data on the IC Markets broker. The entire cTrader history.
I used a 0.5 pip spread on eur/usd for optimization so the bot actually makes more profit when back-tested accurately on tick data or trading live. The spread on IC Markets is about 0.01 pip.
You can choose your own settings. Tell me the number (1,2,3,4,5) from the screenshots when you write me an email.
You can have your own curve and settings when renting my bot. Please see the screenshots of the optimization results for net profit, max equity drawdown, total trades,..
My email: algorithmic.trading.eu@gmail.com
----------
The price for my bot:
*To rent my bot optimized on the entire IC Markets data:
- 28 EUR / 1 Month - You can pay for each month separately.
- 150 EUR / 6 Months (max 6 months at once) Then you can again rent my bot for next 6 months. (I like to optimize my bots on the latest data often)
*To buy my bot without the Source Code: 10,000 EUR. You will get all the indicators in the parameter window, so you can optimize the bot for the instrument you want to use it on (I must hide them when renting my bot to other people. You will get all of them. Let's say my bot uses a simple moving average and the MACD - you will see these indicators in the parameter window, and you can optimize the bot for the instrument you want the bot to work on).
I can remove the password. Or you can keep the password parameter, and you can tell me the password you want to use. I will remove the parameters 'bot owner', ' expiration date and rent',..
You can have both versions. Fixed lot with the double position functions yes/no. And the version that calculates the position size based on risk %.
-To buy my bot with the Source Code: 30,000 EUR .. You also get everything. Now you can see the source code. Not only that, but you can see what logic my bot uses for opening the trades, and further add things you want in the code and try to improve it.
Likewise, you can have both versions. Fixed lot and risk %
----------
YouTube videos and screenshots of "accurate tick data back-testing and M1 bars from server back-testing - the curve is almost the same. Total trades are the same":
EURUSD M1 bars. Position size =: Total Balance Risk 70%. 2011 - 2023 (12 years) Starting capital: €500. Profit: €3566381.94
EURUSD. Fixed Lot 0.05. M1 bars back-testing 8. 2. 2011 - 6. 5. 2023 (12 Years and 3 Months)
EURUSD Fixed Lot 0.05. Accurate tick data back-testing 1. 1. 2017 - 6. 5. 2023
SCREENSHOTS:
1
2
3
4
5
Here is the evidence that the curve is almost the same and total trades for tick data (accurate) back-testing and the M1 bars back-testing is the same:
1.5.2018 - 6.5.2023 TICK DATA
1.5.2018 - 6.5.2023 M1 Bars from server. 0.02 pip spread
Back-testing with 70% Total Balance Risk.
Starting capital 500 EUR.
Profit: 3566381.94 EUR
EURUSD for the TopFX broker coming soon!
Brenno
1
0
124
by negrium
paid
05 May 2023
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class SimpleMovingAverageRobot : Robot
{
[Parameter("Periods", DefaultValue = 20)]
public int Periods { get; set; }
private MovingAverage _sma;
protected override void OnStart()
{
_sma = Indicators.SimpleMovingAverage(MarketSeries.Close, Periods);
}
protected override void OnBar()
{
if (Positions.Count == 0)
{
if (_sma.Result.Last(1) < _sma.Result.Last(2))
{
ExecuteMarketOrder(TradeType.Sell, Symbol, 1000, "SMA Sell");
}
else if (_sma.Result.Last(1) > _sma.Result.Last(2))
{
ExecuteMarketOrder(TradeType.Buy, Symbol, 1000, "SMA Buy");
}
}
else
{
foreach (var position in Positions)
{
if (position.TradeType == TradeType.Sell && _sma.Result.Last(1) > _sma.Result.Last(2))
{
ClosePosition(position);
}
else if (position.TradeType == TradeType.Buy && _sma.Result.Last(1) < _sma.Result.Last(2))
{
ClosePosition(position);
}
}
}
}
}
New Optimized AUDUSD bot
2
0
166
free
06 May 2023
Download free test version here:
https://drive.google.com/file/d/17I88nVbQVZYuIQqCM71fLxCRaM-RSxDK/view?usp=sharing
Like I promised, I optimized my bot to be safer and better performing.
I'm always trying to improve my bots and optimize them on the whole IC Markets history on the accurate tick data.
I will soon have bots for the TopFX Broker. They have much more history data for tick data (accurate) optimizing.
I will soon add new logic to my bot. I'll add 'move stop loss to break even' when in profit.
The bot in this post is for AUDUSD 1-Minute time frame IC Markets broker. The bot won't start if you add a wrong symbol and time frame. It will only work on AUDUSD 1 Minute.
I added a simpler Licensing for the user. When you rent the bot you will get your own password and your own License. The License is your trading account number. I can add two allowed account numbers if you want. Don't worry, If you delete your trading account, I will add another next time you rent my bot. I had to do this so the person who rents my bot won't sell my bot to other people.
Don't worry when you give me your trading account number. I can't do any trades on your trading account. I can't operate on your trading account. I just need your trading account number so I can write your trading account number in the bots code. It looks like this: private int[] allowedAccountNumbers = new[] { 123456789 "your trading account number" };
The bot made 1700 trades between 18.10.2016 and 27.4.2023, which is approximately 78 months, then it made an average of about 21.8 trades per month. This is 261.6 trades per year.
You can choose your own curve. You can have more curve fitted or more over fitted curve.
My email: algorithmic.trading.eu@gmail.com
*The price for my bot:
To rent my cBot optimized on all IC Markets data:
- 28 EUR / 1 Month - You can pay for each month Separately.
- 150 EUR / 6 Months (max 6 months at once)
(Free bot updates are included in the price)
You can rent my bot for maximum of 6 Months at once. This is because I must optimize the bot on the latest data. I will optimize the bot every month and when I find better settings for the indicators you will get a new bot for free. I will send you a screenshot as well.
“By renting my bots, you are not only gaining access to a powerful trading tool, but you are also supporting my work. With your support, I will be able to invest in better and faster computer equipment, which will allow me to further optimize and improve the performance of my bots. This means that you will benefit from even safer and better-performing bots in the future. Thank you for your support!”
The curve for Fixed Lot:
The curve when I use Balance Risk 25%
Curve 3
Curve 4
GBPUSD bot coming soon !
EURUSD bot coming soon !
by nghiand.amz
free
03 May 2023
This bot is the same as bot https://ctrader.com/algos/cbots/show/3385, and bot https://ctrader.com/algos/cbots/show/3379 but with the parameters.
Download Free at https://nghia312.gumroad.com/l/ocnlq
free
18 May 2023
This Cbot serves just as a sample on how to use my Data Extraction Class for Optimization Data Extraction and Backtesting Data Extraction.
You can refer for a accurate Explanation on how to properly use it in your cbot from this link CBot Data Extraction Class (Optimization & Backtesting Data Extractor).
This is a Cbot for demonstration purpose and doesn't guarantee any gaining, so don't use it on a live account with real money.
You can find me by joyining this Telegram Group http://t.me/cTraderCoders
Grupo de Telegram Para Brasileiros, Portugueses e todos aqueles que falam portugues:http://t.me/ComunidadeCtrader
Grupo CTrader en Español para Latinos: http://t.me/ComunidadCtrader
free
18 May 2023
Hey Guys i'm happy to share with you some of my personal tools that i developed to help me extract data from Backtesting and Optimization on my Cbots.
This is a Class and Template for your Cbot, that can extract Backtesting Data and Optimization Data and write it to a CSV file for further Analysis on Excel or any other spreadsheet software.
In this link you will find a MACD Cbot Example for testing it,Link to MACD Cbot
Here i will be sharing some screenshots for the pieaces of the code so that you can easily implement to your Cbot.
You can find me by joyining this Telegram Group http://t.me/cTraderCoders
Grupo de Telegram Para Brasileiros, Portugueses e todos aqueles que falam portugues:http://t.me/ComunidadeCtrader
Grupo CTrader en Español para Latinos: http://t.me/ComunidadCtrader
In the screenshot above you have all the libriaries needed to make the class work properly
In this second screenshot you the parameters need, for this class, and it is highlighted the parameters for the files where the data will be written and also the CBotPerformanceDaataExtractor Instance declaration.
In this screenshot you have multiple parameters that are not mandatory and they serves just as a example on how you can add paramaters to be written by the class on the file.
Here in this screenshot i highlighted the parts that you must take attention the List ParametersName and ParametersValue they serve for saving your cBots Parameters name and values to the file. If you don't want them you can make the list empty as it is shown and the commented code above them. Still in the OnStart Method you can copy and paste the rest of the code to your OnStart Method as it is shown in the screenshot and in the code.
This is a importantant part. If you don't use OnTick method you need to call it so that the calculation for drawdown balance and equity are done correctly. Just copy and paste this code to your cbot as it is shown in the screenshot.
On your OnStop Method you need to put the code that will be writting all the results of the optimization, and backtesting results. Copy and Past this part as in the screenshot.
During Optimization you also can enable the Timeframe option for multiple Timeframe testing. Be aware to not check the last option (Enable Data Extraction). If you checkbox it it will not write all the results. The picture above is just serves as an example.
This is the result of the Optimization Data Written to a CSV File. For the Optimization Pass Field the cbot class writes to the file in the order that it is finishing, so that for some reason it some times doesn't match the same Pass number as it is shown in the Ctrader Platform. The most important part is that all the data is correctly saved for every optimization test.
AW set TP-SL percent
1
0
168
free
05 May 2023
this bot set take profit and stop loss for all position by percent based on balance
Singularity-IQR SmartPro
0
0
98
paid
02 May 2023
Hello Traders,
Introducing Singularity-IQR SmartPro, a groundbreaking adaptive algorithm that goes beyond traditional indicators and relies on advanced statistical analysis techniques. Developed in March 2022, this powerful cBot has been live-tested for 13 months, delivering outstanding real market results. The best part? You don't need to optimize it for different assets - the same parameters work across various markets.
To preserve the edge of the Robot, we'll limit active subscriptions to a maximum of 50 (see details below).
Pros:
Minimal parameters and variables, significantly reducing the possibility of overfitting
Recommended parameters not based on optimization, minimizing the risk of curve fitting
Utilizes a proprietary adaptive strategy with sophisticated statistical techniques for a competitive edge over other market participants
13 months of live testing (see Results below)
Works on multiple assets with the same parameters, but excels on AUDUSD & GBPUSD (15min)
Cons:
The cBot employs a catastrophic stop loss for black swan events. Though rare, it has been hit a few times in backtesting. Overleveraging the robot may result in a significant drawdown, so manage your risk wisely.
The strategy requires a broker with raw spreads. We recommend IC Markets, as our live tests were conducted on their server with great success.
FAQ:
Q: If your cBot is so profitable, why don't you use it yourself? A: I have other algorithms that outperform this strategy.
Q: Why are the number of active subscriptions limited? A: The more capital invested in the robot, the lower its edge. We may adjust the subscription limit in the future based on the strategy's results.
Q: Can I buy the cBot or its source code? A: No, you can only rent the bot for one month at a time.
Q: How much does the rent cost? A: The cost depends on the number of active subscriptions at the time of registration. Prices increase for every 10 active subscriptions, as follows: Tier 1: 1-10 users - Subscription price: $32 per user per month Tier 2: 11-20 users - Subscription price: $40 per user per month Tier 3: 21-30 users - Subscription price: $48 per user per month Tier 4: 31-40 users - Subscription price: $56 per user per month Tier 5: 41-50 users - Subscription price: $64 per user per month Act fast to secure the best price!
Q: How can I rent the cBot? A: Email us at singalgolab@gmail.com, and we'll send you the offer and payment method.
Q: Is there a free trial? A: Unfortunately, we cannot offer free trials due to the risk of reverse engineering.
Q: Did you include transaction costs and spreads in your backtest? A: Yes, and we encourage you to do the same, as this strategy is sensitive to spreads.
Disclaimer: Trading foreign exchange on margin carries a high level of risk and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange, you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and, therefore, you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading and seek advice from an independent financial advisor if you have any doubts.
Past performance of the Singularity-IQR SmartPro is not indicative of future results. The cBot's performance may vary due to market conditions, technical factors, and other unforeseen circumstances. We do not guarantee or imply that users of the Singularity-IQR SmartPro cBot will achieve similar results in the future. Use the cBot at your own risk.
free
02 May 2023
Hello Traders,
This is a Moving Average Crossover robot, that uses 3 Strategies as follows:
Strategy 1: Basic Moving Average Crossover Utilizes two moving averages: a faster and a slower one. Rules: Long position: Enter when the faster MA crosses above the slower MA. Short position: Enter when the faster MA crosses below the slower MA. Exit the position either when the MA recrosses to the other direction, or based on a specific take profit and stop loss.
Strategy 2: Price Crossover with Moving Averages Here, we're not only using the Moving Averages but also the price. Utilizes two moving averages: a faster and a slower one. Long position: Enter when the current price crosses above both MAs, and exit when the price crosses below either MA. Short position: Enter when the current price crosses below both MAs, exit when the price crosses above either MA. Stop loss and trailing stop loss are set at suitable levels to manage risk.
Strategy 3: Moving Averages Trend Confirmation Utilizes two moving averages: a faster and a slower one. The direction of both moving averages is important! Long position: Enter when the faster MA turns up, crosses above the slower MA, and both MAs are moving up. Short position: Enter when the faster MA turns down, crosses below the slower MA, and both MAs are moving down. Stop loss and trailing stop loss are set at suitable levels to manage risk.
I've already backtested the cBot and published all the Trading Results on my Youtube Video, I would appreciate it if you give me a thumbs up and subscribe if you like the cBot. If you have any questions, please don't hesitate!
Sample Telegram Function
0
5
106
by aksbenz
free
30 Apr 2023
Use the below Telegram function to send telegram messages in your Indicator.
Search on google on how to create Token using BotFather and get ChatId
public void SendTelegram(String Token, String ChatId, String msg)
{
try
{
HttpRequest req = new(new($"https://api.telegram.org/bot{Token}/sendMessage?chat_id={ChatId}&text={msg}"));
req.Method = HttpMethod.Post;
var res = Http.Send(req);
if (!res.IsSuccessful)
msg += $": Error Sending Telegram Message: {res.StatusCode}, {res.Body}";
else
msg += ": Success";
}
catch (Exception e)
{
msg += ": EXCEPTION : " + e.Message + "\n\n" + e.StackTrace;
}
Print(msg);
}
cTrader Profit Defender
1
5
75
paid
26 May 2023
cTrader Profit Defender is a cBot designed for traders who want to manage their trades with trailing stops. This cBot offers two different trailing stop strategies: Levels and Big Bars. With the Levels strategy, users can set specific trigger and protection levels (in pips), and the trailing stop will move to the next protection level when the respective trigger level is hit. With the Big Bars Trailing, the bot will auto detect big bars and move the stop accordingly to your parameters. This cBot works with as many trades as you want and can alert you about its actions.
>>>>>>>>>>>>>> Click here to get this cBot <<<<<<<<<<<<<<<<
Trailing Levels:
As you can see in the image above, this strategy offers 4 basic levels and 1 additional level that keeps adding to the triggers and protections levels. Let's say the last trigger value was 50 pips. If the "Add to Trigger" is set to 10, then the next trigger will be 60, and the next after that will be 70 and so on. The same is true for the Protection level. If the last Protection was 40, then the next protection will be 50 and so on.
One thing to consider when using this strategy is to never set the protections to fractional values smaller than the symbol allows, because that won't work. One example is XAUUSD that only accepts integer values.
Big Bars Trailing Stop:
With this strategy, the cBot will calculate the average size of the last bars and then compare that with the last closed bar. For example, if you've set the parameters as shown in the image above, and the most recent bar is 1.5 times larger than the average, the cBot will consider it as a "big bar."
If you have an open buy position, and you've chosen to include the full range of each candle (including the wicks), the cBot will watch for big bull bars. If the trade is in profit and the cBot detects a big bull bar, it will move the stop loss to just below the low of that bar, plus the number of pips you've specified in the "Add Pips to Stop" parameter. The "Add Pips to Stop" option helps when you want to give a little bit of space for the stop loss.
Alerts:
Here you can see the alert options, as you can see, you can receive sound, pop-up, telegram and email alerts. You can also choose which type of alerts you want.
Here you can learn how to configure the telegram bot and email:
Telegram Alerts
Email Alerts
That is everything for now. Just remember that this cBot does not open any type of trade, it only manages the stop loss of trades you or other bots open.
>>>>>>>>>>>>>> Click here to get this cBot <<<<<<<<<<<<<<<<
Check out my projects:
Indicators:
cTrader Fibonacci Alerts
cTrader Moving Average Alerts
cTrader Bar Close Alert Manager
cTrader Unlimited Trendline Alerts
cTrader Candlestick Patterns Alerts
cBots:
cTrader Profit Defender
Copyright © 2023 Spotware Systems Ltd. All rights reserved.