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 install
free  10 Sep 2022
[Renko] Weis & Wyckoff System showcases the concepts of David H. Weis and Richard Wyckoff on Renko Chart See also -->> TPO Profile <<-- Explanation of system components To see the images clearly, right click inside the image and open in new tab It's just a way of visualizing the Waves and Volume numerically, it's not an original idea. You can find this way of visualization first at (David Weis on Wyckoff | Support/Resistance | and Waves, most recent Weis on Wyckoff Renko Charts - Linda Raschke) This uses the code concepts of (Numbers-Renko 数字練行足 in PineScript), Cheers to the akutsusho!. I improved it and brought it to cTrader/C#... and it's Free also open-source. I added many other features based on the original design and my personal taste, like: Make your favorite design template yourself: 14 design/info parameters with a total of 32 sub-options Non-Repaint and Repaint Weis Waves Option: You can choose whether to see the Current Trend Wave value. Dynamic TimeLapse: Time Waves showed the difference in milliseconds, seconds, minutes, hours, days! And Many Others... To better understand what you're seeing, search for books written by David H. Weis, Richard Wyckoff or their equivalents; (like "Trades about to happen" by David Weis) You need to download .algo file because it have just 1800 lines of code... For Better Performance, recompile it on cTrader with .NET 6.0 instead .NET 4.x ==================================================           Transcribed & Improved for cTrader/C#                               by srlcarlg    Original Code Concepts in TradingView/Pinescript                            by akutsusho ================================================== Design Examples To see the images clearly, right click inside the image and open in new tab ===  Want to make a donation? === You can do it on: -->>> Donation Link <<<-- ===  UPDATE === 23/08/2022 - Now you can see Renko's Current Time during his Formation when the price is updated Redundant code removed from "Custom Load From" which generated error in previous version of cTrader (v4.0 or 4.1), the functionality still works. === References: === I couldn't have done this so quickly if it weren't for the contribution to the cTrader Community by these People/Indicators: Wyckoff Component: I had done it before (Volume for Renko/Range and Renko Wicks) Weis Waves Component: (Swing Gann by TraderExperto) helped a lot in the structure to calculation Waves (ZigZag by mike.ourednik) shortened the Waves Vital Code Visit the TraderExperto Community: https://t.me/ComunidadeCtrader  <<-- Grupo CTrader em Português   ====================================== Parameters ====================================== ----- [Renko] Weis & Wyckoff System ----- ● Load From: {Today, Yesterday, 1 Week, 2 Week, Monthly} ● Custom (dd/mm/yyyy): Custom Date if Load From(Custom)      Load From is the Date to load Previous Historical Ticks Data, all data will be stored in memory and will be used in any Renko timeframe selected in the chosen Symbol.      if Custom (dd/mm/yyyy) runs with wrong value, it will use the existing data available in the chart..      The initial size allocated in memory will depend on how far from the current date "Load From" was set, as well as the past number of ticks updates, of couse. ● Show Wicks: The name explains itself ● Wicks Thickness: The name explains itself ----- Numerical Renko Bars ----- ● Show Numbers: {Both, Volume, Time}       The data to show in a Renko Bar ● Numbers Color: {Volume, Time, CustomColor}       The data to Color the Numbers in a Renko Bar ● CustomColor: Custom Color if Numbers Color(Custom) ● Numbers Both Sequence: {Default, Invert} ● Numbers Bar Position: {Inside, Outside}       Numbers Inside or Outside Bar ● Show Only Large Numbers: The name explains itself ● Volume Digits View: {All, 3_Digits, 4_Digits}       Designed for Forex currencies, this will remove the last number from the total number until the digits are <= x ----- Renko Bars Color ----- ● Bars Color: {Volume, Time}       The data to color a Renko Bar ● Fill Renko Bars?: The name explains itself ● Keep Bull/Bear Outline?: The name explains itself ----- Waves Information ----- ● Show Waves: {No, Both, Volume, Effort vs Result}       The data to show in a Wave ● Show Other Waves: {No, Both, Price, Time}       The Another Data to Show in a Wave ● Show Comparisons Marks: {No, Both, Left, Right}        Comparison marks follows the equation         Left = current Wave > Previous Wave of Same Direction then ⮝ else ⮟ (Invert the arrows to Bear Wave)        Right = current Wave > Previous Wave then ???? else ???? (Invert the arrows to Bear Wave) ● Show Current Wave: {No, itsRepaint}        No = Information will be displayed 1 Bars after End of Wave        itsRepaint = Information will be shown every New Bar        ATTENTION: Currently, itsRepaint mode breaks the logic of Comparisons Marks, so use it preferably without CM ● Bull Wave Color: The name explains itself ● Bear Wave Color: The name explains itself ----- Waves Ratio ----- ● Effort vs Result Ratio: 1.5 ● Large Weis Waves Ratio: 1.5 ● Large WW/EvsR Color: The name explains itself       The 'Ratio' is for large WW/EvsR and follows this equation:       ((Sum of 4 previous Waves and current Wave) / 5 * Ratio) < current Wave then LargeColor ----- MA for Numbers/Bar Colors ----- ● MA Filter Type: EMA ● MA Filter Period: 5         MA Filter for Large Numbers ----- Trend Line Settings----- ● Show TrendLines?: The name explains itself ● NoTrend Line Color: The name explains itself ● BullTrend Line Color: The name explains itself ● BearTrend Line Color: The name explains itself Anyway, cTrader needs more powerful and free custom indicators to be used by more people than other trading platforms. 
Diamond clue
  7
  0
  302
paid  20 Aug 2022
​ hello guys I have a bot that has amazing results I worked on it for years and used more than 400 lines of code without using any indicators. And I want to share it with you. this robot is the gateway to heaven, I know the first thing that comes to your mind is fraud Don't forget that You are not my competitor in this market, I want your success And unfortunately, the difference between original and fake is not clear in appearance If you want to see the exact results, please email me and I will show you how the robot works _ iamlotiha@gmail.com Thank you all. Thank you C Trader ​
Zoom With Mouse Wheel
  7
  0
  290
free  17 Aug 2022
  Zoom with Mouse Wheel for Ctrader  This tool helps you zoom in / out  on the chart with the mouse wheel be successful and profitable .   Copyright reserved for RTG trading group , 2022 , 
Info Oscilator v 1.3
  7
  0
  197
free  18 Aug 2022
·Actualización 1.2.1: Corrección de errores. También se han modificado las flechas cuando el stoch es alcista y se han añadido cuando es bajista. ·Actualización 1.2.2: Corrección de errores. ·Actualización 1.3: Corrección de errores. Los títulos RSI y Stoch, no cambian de color, solo cambia de color la información. Este indicador, nos muestra el estado de RSI y Estocástico en forma de texto, indicándonos: -SobreCompra en ambos osciladores. -SobreVenta en ambos osciladores. -Movimiento alcista en estocástico. -Movimiento bajista en estocástico. Qué más te gustaría que aportara este indicador? Déjalo en los comentarios para tenerlo en cuenta cuando lo actualice! Si te gusta mi trabajo y esfuerzo, considere hacer una amable donación a través de PayPal para ayudarme a crecer y mejorar: DONA      
following bot
  17
  0
  384
by al-n
free  03 Aug 2022
this is just a simple bot that opens trades buy/sell and trails with sl in endles loop.
following bot
  6
  0
  222
by al-n
free  03 Aug 2022
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class TrailingStopLossSample : Robot { [Parameter("VolumeInLots", DefaultValue = 1)] public double VolumeInLots { get; set; } [Parameter("Buy")] public bool Buy { get; set; } [Parameter("Stop Loss", DefaultValue = 5)] public double StopLoss { get; set; } [Parameter("Trigger When Gaining", DefaultValue = 1)] public double TriggerWhenGaining { get; set; } [Parameter("Trailing Stop Loss Distance", DefaultValue = 1)] public double TrailingStopLossDistance { get; set; } [Parameter("Step (pips)", DefaultValue = 5)] public double Step { get; set; } private double _highestGain; private bool _isTrailing; protected override void OnStart() { } protected override void OnTick() { // Schaut nach ob Positionen offen sind =) if (Positions.Count == 0) { //Execute a market order based on the direction parameter ExecuteMarketOrder(Buy ? TradeType.Buy : TradeType.Sell, Symbol, VolumeInLots * 100000, "SampleTrailing", StopLoss, null); //Set the position's highest gain in pips _highestGain = Positions[0].Pips; } { var position = Positions.Find("SampleTrailing"); if (position == null) { Stop(); return; } //If the trigger is reached, the robot starts trailing if (position.Pips >= TriggerWhenGaining) { //Based on the position's direction, we calculate the new stop loss price and we modify the position if (position.TradeType == TradeType.Buy) { var newSLprice = Symbol.Ask - (Symbol.PipSize * TrailingStopLossDistance); if (newSLprice > position.StopLoss) { ModifyPosition(position, newSLprice, null); } } else { var newSLprice = Symbol.Bid + (Symbol.PipSize * TrailingStopLossDistance); if (newSLprice < position.StopLoss) { ModifyPosition(position, newSLprice, null); } } TriggerWhenGaining += Step; } } } protected override void OnStop() { // Put your deinitialization logic here } } }  
Spread Info v 2.0
  8
  0
  280
free  10 Aug 2022
Spread Info ·Actualización 1.2: Se añade el Broker con el que trabajamos y se cambia de sitio el spread para que se vea más estético. ·Actualización 2.0: Se añade la opción de que el texto cambie de color cuando el spread sea mayor que el valor indicado. Este indicador nos muestra información sobre el gráfico en el que nos encontramos, su timeframe, spread y broker. Podemos hacer que el texto cambie su color en modo de alerta para saber facilmente, cuando el spread es mayor de lo que nos gustaría. -PARAMETROS- ·Ver: "Si" para ver los datos en el gráfico, "No" para no verlo. ·Aviso: "Si" para verlo con la opción de cambio de color, "No" para verlo sin aviso. ·Color: Color del texto. ·Color aviso: Color del texto en el caso de que el spread sea mayor que el limite marcado (limite spread). ·Limite spread: A partir de este número, el texto se pondrá del color seleccionado en "Color aviso". ·Zona horizontal: Lugar en el gráfico en el que aparecerá el texto en el eje x. ·Zona vertical: Lugar en el gráfico en el que aparecerá el texto en el eje y. Que más te gustaría que aportara este indicador? Déjalo en los comentarios para tenerlo en cuenta cuando lo actualice! Si le gusta mi trabajo y esfuerzo, considere hacer una amable donación a través de PayPal para ayudarme a crecer y mejorar: DONA
free  03 Aug 2022
// I need help here bool close_buy = standart_ema.Result.LastValue > fast_ema.Result.LastValue; bool close_sell = standart_ema.Result.LastValue < fast_ema.Result.LastValue; var buy_position = Positions.Find("order_buy", SymbolName, TradeType.Buy); var sell_position = Positions.Find("order_sell", SymbolName, TradeType.Sell); if (standart_ema.Result.LastValue > fast_ema.Result.LastValue) ClosePosition(buy_position); else if (standart_ema.Result.LastValue < fast_ema.Result.LastValue) ClosePosition(sell_position); I am new one in C# programming and cAlgo. Please help me to close position correctly.  When i start my cBot, it stops on next bar. It is hard to work with ClosePosition() method correctly Can you help me in comment?
free  30 Jul 2022
always use 1 minute or 5 minute chart (candlestick) always use 0.01 lot for good returns only work on XAUUSD  open and close bot on same day after 24 hours or after sufficient profit  close the bot after the target is achieved  
Renko Wicks
  6
  0
  530
free  10 Sep 2022
High-performance simple wicks See also -->> TPO Profile <<-- You can change the wicks colors dynamically by changing the color of the Bull/Bear OutlineColor in ColorOptions on Chart. Uses Ticks Data like Volume for Renko/Range, with a similar logic but focused on the renko price, so: BullWick = Minimum price existing during the formation of a bar (between of OpenTime and CloseTime) BearWick = Maximum price existing during the formation of a bar (between OpenTime and CloseTime) This is not a custom chart, it draws a trendline on the Brick of Renko, based on the logic described above. Update: 23/08/2022 - Redundant code removed from "Custom Load From" which generated error in previous version of cTrader (v4.0 or 4.1), the functionality still works. 22/08/2022 - Added dynamic 'Load From', Timeframe checker, and now the messages disappear after the calculaton is finished 03/08/2022 - Code cleanup and added more info in messages. 27/07/2022 - Downgrade from .NET 6.0  to .NET 4.x, for the .algo installation to work on previous versions of cTrader. ===== Parameters ===== Load From: {Today, Yesterday, 1 Week, 2 Week, Monthly} Custom (dd/mm/yyyy): Custom Date if Load From(Custom) Load From the Date to load Previous Historical Ticks Data, all data will be stored in memory and will be used in any Renko timeframe selected in the chosen Symbol. if Custom (dd/mm/yyyy) runs with wrong value, it will use the existing data available in the chart.. The initial size allocated in memory will depend on how far from the current date "Load From" was set, as well as the past number of ticks updates, of couse. Wicks Thickness: The name explains itself =) The data collection process can be observed in the "Automate" tab on TradeWatch.
Volume for Renko/Range
  13
  0
  384
free  10 Sep 2022
VolumeRenkoRange applies tick volume logic on non-time based charts. See also -->> TPO Profile <<-- Volume on Range/Renko/Candles It's possible because we have the Open/Close Time of Bar, so: Volume logic = Number of price updates (ticks) that come during the formation of a bar (between of OpenTime and CloseTime). Update: 23/08/2022 - Redundant code removed from "Custom Load From" which generated error in previous version of cTrader (v4.0 or 4.1), the functionality still works. 22/08/2022 - Added dynamic 'Load From', removed redundates parameters, and now the messages disappear after the calculaton is finished 03/08/2022 - Code cleanup. 27/07/2022 - Downgrade from .NET 6.0  to .NET 4.x, for the .algo installation to work on previous versions of cTrader. ===== Parameters ===== Load From: {Today, Yesterday, 1 Week, 2 Week, Monthly} Custom (dd/mm/yyyy): Custom Date if Load From(Custom) Load From is the Date to load Previous Historical Ticks Data, all data will be stored in memory and will be used in any Renko timeframe selected in the chosen Symbol. if Custom (dd/mm/yyyy) runs with wrong value, it will use the existing data available in the chart.. The initial size allocated in memory will depend on how far from the current date "Load From or Custom" was set, as well as the past number of ticks updates, of couse.
paid  24 Jul 2022
New release "BBands Trend Follower 01.22" In the new release we have added and implemented the following parameters: - MaxHigh/MaxLow Months Limit (up to 2 years): Stop open & Close trades. TimeFrame Monthly applied. - Consecutive Losses Filter: for a preventive protection this filter is always active. Parameters from 2 to 10, default 5. - Gap/Spike Protection: Always active. It protects against opening "Gaps" and sudden "Spikes" that can generate continuous opening and closing of positions. - Strategy Auto Select: with the cBot running, change automatically the strategy (Reverse or Breakout) after a certain number of losses specifying from the parameters after how many losing trades will be applied. Added 3 more exit strategies: - StopLoss Follow Up - StopLoss Follow On Media - Follow Short - Solo SL/TP exit: if selected, it uses StopLoss or TakeProfit as the only exit strategy. - SL/TP & BreakEven: if selected, it helps the main exit strategy or the "Solo SL / TP exit" in bringing the StopLoss above EntryPrice as soon as you are in profit. - Money Management (Position Sizing) on winning and loosing trade. If the previous position was closed with a profit, increase the volume of the next position. If, on the other hand, the previous position was closed at a loss, it decreases the volume of the next position. From the parameters you can set the amount of volume to increase or decrease by specifying after how many losing trades will be applied. ------------------------------------------------------------------------------------------------------------- The Trading System uses Bollinger Bands for volatility, but is used in a different way than usual, with long periods and Standard Deviation from 0.1 to 1 with a weighted moving average (it looks like a river). The Bollinger Bands serve mainly as a filter in entering the market avoiding periods of laterality. cBot can be set as Reverse or Breakout strategy, the optimization will indicate the best strategy for each particular Currencies Cross, indices, Metals, Crypto Currencies. ----------------------------------------------------------------- - Demo Version with 6 optimized parameters. - 1 Year License ready to trade Live with 27 optimized parameters (Forex,Indices,Metal,Crypto,Commodities Oil & Natural Gas) ------------------------------------------------------------------ Additional products: Breakout Reverse 5 Strategies Multi-TimeFrame cBot HighLow Reverse cBot BIAS Daily Time cBot BIAS Weekly Time cBot HL Rev Break Auto cBot HL TF cBot ---------------------------------------------------------------------- DOWNLOAD DEMO VERSION Active.cTrader.Bot HomePage Contacts write to: active.ctrader.bot@gmail.com ---------------------------------------------------------------------- Open an account with Gumroad and become an affiliate and start earning by selling our products: Become an affiliate for Active cTrader Bot ....................................................................................