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  04 Jul 2022
Below is a Python code that I created to identify tops and bottoms on price charts of stocks or any financial assets. I also invented an extra indicator that calculates the angle between the last two tops and the angle between the last two bottoms, imagining that a straight line connects both. I am using these indicators to operar opções binárias as we say in Brazil. # Last tops: # In the case of a window of 3, this value is i-1. In the case of a window of 5, it is i-2. In the case of a window of 7, it is i-3. df['maximo'] = df['max'].rolling(window=9, center=True).max() df['top'] = np.where(df['max']==df['maximo'], df['max'], np.nan) df['top_1'] = np.nan df['top_2'] = np.nan df['top_3'] = np.nan df['top_4'] = np.nan df['top_5'] = np.nan df['top_6'] = np.nan df['top_7'] = np.nan for i in range(4, df.shape[0]): # considering window = 9     if df['top'][i-4]>0 and df['top_1'][i-1]!=df['top'][i-4]: # ignoring consecutive tops         df['top_1'][i] = df['top'][i-4]         df['top_2'][i] = df['top_1'][i-1]         df['top_3'][i] = df['top_2'][i-1]         df['top_4'][i] = df['top_3'][i-1]         df['top_5'][i] = df['top_4'][i-1]         df['top_6'][i] = df['top_5'][i-1]         df['top_7'][i] = df['top_6'][i-1]     else:         df['top_1'][i] = df['top_1'][i-1]         df['top_2'][i] = df['top_2'][i-1]         df['top_3'][i] = df['top_3'][i-1]         df['top_4'][i] = df['top_4'][i-1]         df['top_5'][i] = df['top_5'][i-1]         df['top_6'][i] = df['top_6'][i-1]         df['top_7'][i] = df['top_7'][i-1]          # Last bottoms: df['minimo'] = df['min'].rolling(window=9, center=True).min() df['bottom'] = np.where(df['min']==df['minimo'], df['min'], np.nan) df['bottom_1'] = np.nan df['bottom_2'] = np.nan df['bottom_3'] = np.nan df['bottom_4'] = np.nan df['bottom_5'] = np.nan df['bottom_6'] = np.nan df['bottom_7'] = np.nan for i in range(4, df.shape[0]):     if df['bottom'][i-4]>0 and df['bottom_1'][i-1]!=df['bottom'][i-4]:         df['bottom_1'][i] = df['bottom'][i-4]         df['bottom_2'][i] = df['bottom_1'][i-1]         df['bottom_3'][i] = df['bottom_2'][i-1]         df['bottom_4'][i] = df['bottom_3'][i-1]         df['bottom_5'][i] = df['bottom_4'][i-1]         df['bottom_6'][i] = df['bottom_5'][i-1]         df['bottom_7'][i] = df['bottom_6'][i-1]     else:         df['bottom_1'][i] = df['bottom_1'][i-1]         df['bottom_2'][i] = df['bottom_2'][i-1]         df['bottom_3'][i] = df['bottom_3'][i-1]         df['bottom_4'][i] = df['bottom_4'][i-1]         df['bottom_5'][i] = df['bottom_5'][i-1]         df['bottom_6'][i] = df['bottom_6'][i-1]         df['bottom_7'][i] = df['bottom_7'][i-1] # Counting the nº of candles before a new top: df['count_tops'] = df.groupby((df['top_1'] != df['top_1'].shift(1)).cumsum()).cumcount()+1 df['AP1'] = np.nan # Angle between top_1 and top_2 df['AP2'] = np.nan df['AP3'] = np.nan df['AP4'] = np.nan df['AP5'] = np.nan df['AP6'] = np.nan for i in range(4, df.shape[0]):     if df['top_2'][i] != df['top_2'][i-1]: # when top_2 is updated         df['AP1'][i] = (df['top_1'][i] - df['top_2'][i])/df['count_tops'][i-1] # find the angle between top_1 and top_2         df['AP2'][i] = df['AP1'][i-1] # do the same for the others         df['AP3'][i] = df['AP2'][i-1]         df['AP4'][i] = df['AP3'][i-1]         df['AP5'][i] = df['AP4'][i-1]         df['AP6'][i] = df['AP5'][i-1]     else:         df['AP1'][i] = df['AP1'][i-1]         df['AP2'][i] = df['AP2'][i-1]         df['AP3'][i] = df['AP3'][i-1]         df['AP4'][i] = df['AP4'][i-1]         df['AP5'][i] = df['AP5'][i-1]         df['AP6'][i] = df['AP6'][i-1]          # Same for bottoms: df['count_bottoms'] = df.groupby((df['bottom_1'] != df['bottom_1'].shift(1)).cumsum()).cumcount()+1 df['AF1'] = np.nan df['AF2'] = np.nan df['AF3'] = np.nan df['AF4'] = np.nan df['AF5'] = np.nan df['AF6'] = np.nan for i in range(4, df.shape[0]):     if df['bottom_2'][i] != df['bottom_2'][i-1]:         df['AF1'][i] = (df['bottom_1'][i] - df['bottom_2'][i])/df['count_bottoms'][i-1]         df['AF2'][i] = df['AF1'][i-1]         df['AF3'][i] = df['AF2'][i-1]         df['AF4'][i] = df['AF3'][i-1]         df['AF5'][i] = df['AF4'][i-1]         df['AF6'][i] = df['AF5'][i-1]     else:         df['AF1'][i] = df['AF1'][i-1]         df['AF2'][i] = df['AF2'][i-1]         df['AF3'][i] = df['AF3'][i-1]         df['AF4'][i] = df['AF4'][i-1]         df['AF5'][i] = df['AF5'][i-1]         df['AF6'][i] = df['AF6'][i-1] More concepts can be found here.
free  05 Jul 2022
An Indicator that shows the long and short average entries on the chart. Swaps are included in the calculations. This indicator is experimental and still in development and may contains bugs! Parameters: Show Text - Shows or Hides the text under the break-even lines on chart
free  05 Jul 2022
A simple indicator for trend following, consisting of 4 Exponential Moving Averages (EMAs) in total. Parameters: Source                        - The input source (default is close). Timeframe                  - The timeframe to use. MA Type                      - The Moving Average type to use. Change Bar Colour    - Changes the colour of the bars to show the trend direction. MA Periods                 - The period of the Moving Averages. Bar Colours                - The colours to use on bars for bullish and bearish trends
free  12 Jun 2022
This is an cumulative volume indicator based of the version by LonesomeTheBlue on TradinbView: https://www.tradingview.com/script/vB1T3EMp-Cumulative-Delta-Volume/ Here is how to use it:  
Synchronized Drawings
  8
  5
  684
free  07 Jun 2022
 This indicator allows you to synchronize your chart drawings, it will sync your chart drawing in real time across all attached charts. Features Updates, removes, and adds all cTrader chart drawings No user interaction needed Easy to use Different working modes that allows you to limit the indicator based on symbol or time frame Automatically adjusts the Y axis of drawings for different symbols relative to that symbol scale This indicator is open source, feel free to fork and improve it on Github: spotware/Synchronized-Drawings: This is a cTrader indicator that allows you to synchronize your chart drawings (github.com)  
by jaco3d
paid  14 Jun 2022
The Marigold Trade Manager is designed to place positions quickly and precise. It uses an easy illustration layout and then automatically calculate the position's volume size. Position illustrations are risk-to-reward based with live tracking while the position is open. Closed positions are kept on the charts while the bot is running, displaying loss and profitable positions. The concept is for the user to place the levels on the chart using the provided buttons. The bot automatically calculates direction whether its a market order or a pending order. Pending orders are also automatically calculated, whether its a stop order or limit order.  Risk sizing is persentage based, however RR and profit-loss values are displayed as well for reference. Another feature is an advance take profit system which include a maximum of three partial profits for a position. Each partial profit size is also entered as percentages of the total profit. A Break Even level is also included for advanced set ups. An added feature for scalpers is the session feature. It restrict positions to be placed outside of the trading session for the day. The session range is also displayed on the chart. Because this is an illustration based bot, there are multiple themes to choose from which change the chart colors. If the theme is set to 0, the chart colors will not be adjusted. The demo allows forward testing only. It has all the features enabled but does not open any positions. The bot works with metals, currencies and indices. The list here below was tested with a base currency of USD only. Cross pairs and commodities currently does not work and will be developed for a future release. Please note, not all pairs are accurate with volume sizing. Slippage and spreads are not the same accross brokers, so its the user's discression to make sure that risk management is checked on this bot for accuracy and not to risk more than what you can afford. These symbols were tested on a USD funded account and FXPro as the broker. Majors: - EURUSD - GBPUSD - USDJPY - USDCHF - USDCAD Minors: - AUDUSD - NZDUSD (Higher loss than indicated) - USDCNH (Higher loss than indicated) - USDCZK - USDDKK (Higher loss than indicated) - USDHKD (Higher loss than indicated) - USDHUF (Higher loss than indicated) - USDILS (Higher loss than indicated) - USDMXN (Higher loss than indicated) - USDNOK (Higher loss than indicated) - USDPLN (Higher loss than indicated) - USDSEK (Higher loss than indicated) - USDSGD (Higher loss than indicated) - USDTHB - USDTRY (Higher loss than indicated) - USDZAR (Higher loss than indicated) Metals: - XAUUSD - XPDUSD - XPTUSD Indices: - AUS200 - EUR50 - France40 - Germany40 - Japan225 - UK100 - US30 - USNDAQ100 - USSPX500 Check out the Demonstration video to see it in action. The demo is free to download. Click Here for the Demo. E-mail me at jaco3d@hotmail.com to purchase the full version. The price without the source code is $20. The price with the source code is $150. Versions: V2.0 - 2022-06-06: Released to public V2.1 - 2022-06-13: Fixed: Some positions would close when the break even line is triggered. V2.2 - 2022-06-14: Fixed: When in a trade, the take profit levels could randomly overlap.        
free  26 Sep 2022
 New update ver 1.09: Draw vertical lines as day separators; Draw background colour to highlight sessions; User can set start and end day numbers and times; User can set the colour of the session background and separators; User can set highlight gridlines by 5 min, (4) hourly at different timeframes; User can turn on/off background colour for each month; Framework .NET 6.0 ready, Source code is compatible with .NET 4.0;  Note: The attachment .algo is compiled by .NET6.0, to run with the old version (4.1.17), please copy the source code and compile it at the cTrader version to fit your environment. Interested in the currency strength meter in the chart? Get the free download link at Telegram Group: cTrader FOREX Club
Moving Average Ribbon
  10
  0
  464
free  05 Jun 2022
This is a moving average ribbon which only shows the average, the max and the min value. This way any number of moving averages can be shown without recompiling the code.
zigzag
  5
  0
  627
free  04 Jun 2022
to help you in choosing the right risk reward ratio for your positions
Price Tag
  12
  0
  402
free  01 Jun 2022
This indicator allows you to tag a price level, it shows the price with an arrow based on price distance from the bars.   Features You can customize the appearance Use any of the modifier keys you want to as hotkey Changes on indicator parameters take effect on current added price tags Shows an up arrow if price level was below the bar low or down arrow if price was above bar high   Usage Add indicator on a chart Press shift and click somewhere on the chart, you can change the key from indicator parameters Note: When you change the indicator parameters the change will effect all existing price tags, to avoid this add something to price tag comment and that price tag style will not change even if you change the indicator parameters like font size or color. This indicator is open source, feel free to improve it: spotware/Price-Tag: This is a cTrader desktop indicator for showing price levels on the chart (github.com)  
paid  14 Sep 2022
This signal-generator indicator is built on top Advanced Ichimoku Kinko Hyo. This indicator has an in built strategy analyser that analyse the markets and generates quality signals. Version 1.1.4 Key Features Original Ichimoku Kinko Hyo system defined by Hosoda. Newly and improved Ichimoku Kinko Hyo system developed by the developer. In-built risk reward tool  Suitable for all time frames Suitable for forex, shares, commodities, crypto and indices Signals The generated signals are printed on the screen with take profit and stop loss targets, the risk reward ratio, etc. The generated signals can also be subscribed to via Telegram and Email Any time a signal is generated, if there is an old signal on the screen, it will be replaced by the new one. BUY THE SIGNAL GENERATOR INDICATOR    Join our telegram group for more insights on how to use the trading system Profit Isle Academy Example of signals generated GBPJPY    
paid  27 May 2022
This is a cBot for cTrader that automatically calculates lots and several close functions. Ver 4.2 Price:$18+ Featurs ・ Two types of risk calculation (Up to 3 settings for each) ・ Two types of risk reward calculations (Amount base ・ Pips base) ・ Three types of ordering methods (Market order ・Pre order  ・Stop/limit order) ・ Three types of partial close methods ( Amount・Each・Volume) and close all ・ Pips fixing function of stop loss and take profit line ・ switch function ・ Break Even line display /stop loss move to Break Even line button/Automatically move ・ Max lots Max spread,and split order ・ Almost all appearances can be customized and Hotkey ロットの自動計算と複数の決済機能がひとつになったcTrader用のcBotになります。 価格:$18+ Ver 4.2 主な機能 ・2種類のリスク計算(証拠金*パーセント/金額直接入力) ・2種類のリスクリワード計算(金額ベース/ピプスベース) ・3種類の注文方法(成行注文/予約注文/指値注文) ・3種類の一部close方法(条件の悪い方から金額で決済/条件の悪い方から枚数で決済/それぞれ決済)とチャート通貨全決済とすべての通貨全決済 ・stop lossとtake profit ラインのpips固定機能・switch機能 ・Break Even ラインの表示/損切ラインの移動ボタン/自動移動機能 ・最大スプレット・最大ロットの設定・分割注文機能 ・ほぼすべての外観はカスタマイズ可能/すべてのボタンはホットキー設定可能 Purchase from here  購入はこちら Free trial version is here 無料トライアルバージョンはこちら Another indicators: --free-- Auto Calculate Lots Size Custom R numbers Another Symbol Draw Pips Time Frame Period Separators Daily Volatility Average Static Label and Horizon Line Static Area Static Color Text Profit Pips Today Upper TF Heikin-ashi Bull Bear TF Candle TF OHLC Market High Low Fibonacci Channel Entry Check List Custom Bid Ask Line Display Symbol TF Scale Bar Countdown Alarm Market High Low Display Date Entry Plan Mirror Candle Cross Hair --paid-- ADR Auto Calculate Lots Size V2 MTF Bollinger Bands MTF MACD MTF MA MTF Candlesticks Auto Calculate RR MWD Line MTF OHLCFP Lines Candles Before MWD High Low Pro TimeSync Display Date Pro Trend Line Alert Market Time Period cBot: Close Panel cBot