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
DescriptionSubmited byDateCategoryPreviewDownloadsCommentsRating
Fractal Keltner channels are centered on adaptative fractal rather like FRAMA. Bar in the green channel signals down trend while bar in blue channel signals up trend. This Indicator has been converted from MT5.    
02 Feb 2017
Downloads
345
Comments
1
Rating
5
Download
Trading with voice alerts using cTrader can be very useful when you are multi-tasking, sometimes having a friendly voice telling you a pending limit order has just been filled can be very useful. You can download all or some of the sound files here free of charge and use them in your own automated strategies. All applications created by ClickAlgo use voice alerts. All the trade activity voice alerts are available to download you can play or download them individually. The cTrader QuickFx Trading Terminal uses all the voice alerts listed below to inform the user of the events from the application. Visit Product Page to Download Files http:\\clickalgo.com  
31 Jan 2017
Downloads
434
Comments
0
Rating
0
Download
TRADING HOURS OF MAJOR STOCK EXCHANGES The cTrader Market Trading Clock displays the global trading hours (trading sessions) for each of the 7 major stock exchanges in the world used by cTrader, configurable to show or hide, markets that are currently open, the opening and closing times, alarm bell when market opens and a countdown timer when market is about to open. Visit the Product Page How will this help with my trading? The useful feature of this indicator is to highlight volatility, when Frankfurt, London & New York overlap and are open at the same time you see high volatile movement in the EURUSD for example.  All Features Selected (actual exchange opening times.) You can choose between your local timezone opening and closing times for the exchanges or the actual local times for New York, London etc. Athens UTC(+02:00) Example You can also show/hide the location label which is displayed on the left of the screen. You are able to select either your local timezone or the actual local times of the exchanges with the parameter below, you don't need to configure anything just select "YES" for show my timezone. Show My TimeZone? (YES) (NO) You can set the media file path to a sound file which plays a recording of the NY stock exchange opening bell or any other sound of your choice. Option to see when each stock exchange is about to start trading, this is displayed below the actual local time of the clocks. INDICATOR PARAMETERS * Alert market opens: how many minutes left till market opens, a countdown timer will be displayed under the clock. CURRENT FEATURES Date and time order from left to right, so that closed markets are on the left of the highlighted open markets and markets about to open are on the right. Show clock in your current timezone or the local exchange timezone. Sends an email (x) minutes before an exchange opens. User defined colors for the open and closed clocks to suit your background color. Option to turn on/off sound for alarm User defined sound when market opens, this can be any file located on your computer, so you can use a real exchange bell sound. Show or hide the timezone location label. Optional display of opening times for each of the exchanges. Clocks show market closed message with all clocks in a closed state at the weekend. Option to display closing times. Option to display alert when market is about to open with countdown timer. FxPro Midnight Inactivity message, trading stops for 5 minutes. Easier to add additional exchanges. Display 24hr clock option * Use this Indicator with the Scalpers Buddy http://ctdn.com/algos/indicators/show/705 to manage volatility when an exchange opens. Default Clock View - showing exchanges open, closed and when they open next in minutes. Markets Closed for the Weekend Markets Showing Opening Times Alternative Background Colour Global Exchange Clock Hours (local time and deviation of local time zone from UTC) The market opening and closing times, position and display order can be modified in the exchange creation section (Initialization) cTrader Font Resizing Issue Please be aware that if you change the font size on cTrader it will cause issues with displaying the clock correctly. FXPro Customers Note: They currently halt trading for 5 minutes each night at midnight (Cyprus Time), as this is the time that the daily trading session finishes for their Liquidity Providers. At this time each night, the Liquidity Providers carry out their own daily reconciliations and withdraw their pricing for a very short period of time while this is carried out. Due to this temporary withdrawal of liquidity we see a widening of our spreads and a reduction in the liquidity available for their clients, in order to prevent their clients being affected by these abnormal market conditions they prefer to suspend trading until 00:05, when the Liquidity Providers have all returned pricing. Sample New York Stock Market Open Bell https://drive.google.com/open?id=0BwYhDOZlukMMYWxydzN3aElfT28&authuser=0 Sample Ship Bell https://drive.google.com/open?id=0BwYhDOZlukMMQkR6eXhDcllydFk&authuser=0 * Just copy the file into a folder on your device and add that path to the Media File Path in the indicators parameters input field. https://youtu.be/PQb3jMlWX6E?list=PLVkMnR8pfWHENp3K7i1JRvvxmXJzPbLIt Visit the Product Page Phone: 0044 20 3289 6573
31 Jan 2017
Downloads
4109
Comments
34
Rating
3.75
Download
The cTrader volatility alert indicator alerts user with message and sound when high volatility occurs, its also displays current spread and total depth of market volume for the buyers and sellers.     Depth of Market The Depth of Market is the total of all volume as shown below: Volatility Alert with Warning Sound Volatility Message With No Alert You can show both the volatility and spread or just spread or just volatility, this can be selected from the parameters below. INDICATOR PARAMETER CURRENT FEATURES Configure the volatility depending on your scalping requirements. Sound alert, configurable on/off. Position warning message anywhere on screen. Configure color of warning text to suit your background color. Option to display actual volatility amount in pips to be shown with message to show price movement Show or hide volatility message Show or hide the current bid/ask spread size. Show or Hide Depth of Market (total) Configure the color of the current spread size text. * Use this Indicator with the Market Trading Clock http://ctdn.com/algos/indicators/show/687 to manage volatility when an exchange opens. Phone: 0044 20 3289 6573 www.ClickAlgo.com Creative Trading with Technology              
31 Jan 2017
Downloads
4331
Comments
19
Rating
4.17
Download
This cTrader HMA indicator is an extension to the Hull Moving Average where it shows optional signals for trend:- Optional Arrows on chart where trend changes Optional Text on chart displaying trend direction Optional display of HULL line, only display trend description. Set how far away the arrow is spaced from the HMA with different time-frames. Two public properties for usage with cBots   Usage with cBots If you reference this indicator from your cBot you can use the IsBullish and IsBearish properties to determine an additional signal to help you buy or sell. This is best for daily trends, but you can change the time-frame in your cBot code. declare private variable's private MarketSeries HmaDaySeries; private HMASignals hmaSignal;   In the OnStart method construct your timeframe HmaDaySeries = MarketData.GetSeries(TimeFrame.Daily);   Also in your OnStart method create your hmaSignal object. hmaSignal = Indicators.GetIndicator(HmaDaySeries, 21, false, false, 3, false, 24);   Now use this as follows in your robots. // forces loading hma object with values double i = hmaSignal.hma.LastValue; // If HMA daily trend is active then only trade where the signals are buy or sell if (hmaSignal.IsBullish) { // Only BUY } if (hmaSignal.IsBearish) { // Only SELL } Phone: 0044 20 3289 6573 www.ClickAlgo.com Creative Trading with Technology            
31 Jan 2017
Downloads
3236
Comments
22
Rating
3.33
Download
This cTrader Trend Analyser indicator data mines text from the FXStreet website and gets the Trade Index and OB/OS Index trend signal taken from all their technical research and puts it into the indicator to be displayed onto screen or used from a cBot as an additional trade signal. * please note this currently only works on a 15 minute time-frame. * It currently updates once a minute, so will not cause the FXStreet server any problems. HTML AGILITY PACK You will need to download this and reference the .NET40-Client/HTMLAgilityPack.dll https://htmlagilitypack.codeplex.com/ it includes the following trend signals:- Trend Index Strongly Bullish Bullish Slightly Bullish Strongly Bearish Bearish Slightly Bearish Neutral OB/OS Index Extremely Overbought Extremely Oversold Overbought Oversold Neutral The signals help you to see if the price is extremely oversold and may change direction. USAGE WITH A CBOT Add the Trend Analyser Indicator to cAlgo. In your cBot, choose manage references and add the indicator reference. Add this code in your private field. private TrendAnalyser trendAnalyser; 4. In the OnStart method add this code:- trendAnalyser = Indicators.GetIndicator(3, "Green", "Red", "Black", false); 5. In the OnBar or OnTick method; sample usage:- if (trendAnalyser.FxTrend == TrendAnalyser.Trend.StronglyBullish || trendAnalyser.FxPrice == TrendAnalyser.Price.ExtremelyOverbought) {     // DO NOT BUY } Phone: 0044 20 3289 6573  www.ClickAlgo.com | Our Blog Creative Trading with Technology            
31 Jan 2017
Downloads
2659
Comments
3
Rating
3.75
Download
This version of the DiNapoli Stochastic has a smoother indicator and extra logic to match the curve of the lines to identify possible price reversal with linear curve fitting. We also included many useful features like, email, sound alerts, high and low thresholds. The indicator can be used with a trading robot as it provides public properties for Buy and Sell signals.       Visit Product Page This oscillator smoothing method leads to filtering out "noise" in the price movement. It be used in the strategies that are oriented to a standard stochastic. The stronger smoothing can lead to loss of array of signals, so it is recommended to apply any trend indicator for more efficient use of the indicator and its signals filtering. Read more about this type of indicator by Joe Dinapoli "Trading With DiNapoli Levels". Features Buy and Sell Threshold - this is the high and low for triggering a signal event Email Alert - sends you an email  Sound Alert - the sound file path is configurable Arrows drawn on chart - this plots an arrow each time a crossover occurs, you can turn this on or off FastK, SlowK and SlowD - configurable parameters Linear Curve Check Cross-over distance Check Data Analysis Mode Public properties for robots - IsBullish and IsBearish signals   There are two checks for identifying price reversals, you can modify the settings and the arrows which signal Buy or Sell are only shown where the optimal reversals occur. Cross-Over Check This involves a very simple, but useful check on the distance between the signal and result lines using the cross-over distance setting, when there is indecision in the price the two lines are very close together, when there is a strong change direction the distance is higher.   Linear Regression Curve Check This is very useful when you want to match a specific type of curve which mostly show price reversals, it uses the Math.Net Numerics library described below for curve fitting. You can curve fit either the signal or the result line. The settings are Curve Offset and Curve Slope. For analysis you can use a setting called Data Analysis Mode which will show you historical curve values in the log file to help you match the values which hold the strongest weight. The video below will explain the features in more detail.   Math.NET Numerics This assembly aims to expose algorithms and methods for numerical computations in software engineering, the areas it covers are  special functions, linear algebra, probability models, random numbers, interpolation, integration, regression, optimization problems and much more. We use this library to help us fit the curve on the stochastic result and signal lines.  Math.NET Numerics - http://numerics.mathdotnet.com   Curve Fitting: Linear Regression Regression is all about fitting a low order parametric model or curve to data, so we can use it to make predictions on points not covered by the data. Both the data and the model are known, but we'd like to find the parameters that make the model good enough to the data according to some metric. You can see from the diagram below where the white arrows are drawn that the fake cross-over signals are filtered out and where the red and green arrows are drawn you will get signals to buy or sell. Curve fitting can involve either interpolation, where an exact fit to the data is required, or smoothing, in which a "smooth" function is constructed that approximately fits the data.     Data Analysis Mode We have added a feature which will allow you to visually see the Linear Curve fitted values for the stochastic cross-over points so that you can compare this to the candle price action to help you increase the probability of a successful entry point.    https://youtu.be/wRYgvKqE1-o?list=PLVkMnR8pfWHENp3K7i1JRvvxmXJzPbLIt http://clickalgo.com Phone: 0044 20 3289 6573 Visit Product Page
31 Jan 2017
Downloads
1607
Comments
1
Rating
0
Download
Execute trades example using LinqToExcel and LINQ to easily read an Excel or CSV file into your Automated Trading Robot. Download Source Code Here Please note that this is an example and not a working robot. I found this very useful tool for working with Microsoft Excel data that I would like to share with you. If you need to get data out of Excel, which can be done using ADO.NET. However using LINQ to Excel makes this very easy for people who are not experienced programmers. DATA - ANALYSIS - TRADE This robot is an example to demonstrate the power you can have at your fingertips using cTrader, cAlgo and C#, this robot reads trades from an excel file and executes them in real time with the robot, you can dynamically modify the trade results with user defined parameters from the robots user interface or from within the code. Watch uTube video about LinqToExcel to find out more... https://www.youtube.com/embed/t3BEUP0OTFM THE SIMPLEST WAY OF READING DATA FROM EXCEL The example shows a list of trades for the day that have been entered onto a spreadsheet with separate sheets for different instruments, it does not matter if this would not be useful in real life, it is just to show what can be accomplished and possibilities. The image below shows information for opening new positions when the price reaches the entry price, the expiry date and time allows you to filter these out using LINQ from within your robot. You will notice in the source code that there is a class called DailyTrade, this class is the data container which will automatically be populated with data from the spreadsheet.  As you can see the class name is the same as the spreadsheet name dailyTrades.xls and each property has an attribute [ExcelColumn], this maps to the name of columns in the spreadsheet, so the property name does not have to be the same as the property name and you can have spaces in the column name. The code that injects all the data into the class is a collection of DataTrade objects, so you will end up with a list of daily trades which you can iterate through to open the trades. You will be able to access the data in a clean and readable manner like; trade.EntryPrice or trade.ExpiryDate. Download Source Code Here Phone: 0044 20 3289 6573 * All international calls are local rates (low cost) www.ClickAlgo.com Creative Trading with Technology            
31 Jan 2017
Downloads
855
Comments
16
Rating
5
Download
Get free clean untouched real time Forex price data using this example robot, you can retrieve the data asynchronous or synchronously. This robot is an example from ClickAlgo.com to demonstrate the use of web services that are available on the internet and how you can use this data to give you that edge on your trading. Asynchronous tasks is also demonstrated in the code using the Task parallel Library with the .NET Framework 4, the TPL is the preferred way to write multi-threaded and parallel code in C# TrueFx offer free real-time price data for Forex and I wrote a wrapper to call this web service and expose an interface for accessing the values. The web service they expose is described in the document below. http://www.truefx.com/dev/data/TrueFX_MarketDataWebAPI_DeveloperGuide.pdf You will need to register to access the price data from TrueFx, this is free and you only give away your email that needs to be validated. Register at TrueFx for Free Data Access You can run the demo by adding your username and password in the cBot user defined parameters as shown below: To add this list of currency pairs enter them as shown in the above screen shot, so each pair is separated by a comma and the pairs include a forward slash; example: AUD/USD,USD/JPY,EUR/USD - do not include any spaces. The web service requires it in the format. The results from the web service are displayed in the log file as shown below: The web service just returns the data as CSV or HTML in a way that is not really usable for consumption like XML or JSON, I think they designed this for display purposes for websites and not for use with algorithms. The code you see in the algo file has the external class library cAlgo4u.TrueFx.dll included so that you do not need to manage references and add the assembly to you project. HOW TO USE For all you programmers out there I would just use the external class library cAlgo4u.TrueFx.dll as a reference in your code and not copy and paste it in each time. To access the data the simplest method is described below. The code snippet below is the data class which is declared in the cAlgo4u.TrueFx library which just shows the the type of data returned.   /// TrueFX brings you real, deal-able prices from market making banks, delivered directly with no intermediary. public class Currency { /// Currency-pair symbol public string Pair { get; set; } /// Millisecond time-stamp public string TimeStamp { get; set; } /// Bid big figure public string BidBig { get; set; } /// Bid points public string BidPoints { get; set; } /// Offer big figure public string OfferBig { get; set; } /// Offer points public string OfferPoints { get; set; } /// High, the greatest offer price since the currency pair’s roll time public string High { get; set; } /// Low, the smallest bid price since the currency pair’s roll times public string Low { get; set; } /// Open, the mid price at the currency pair’s roll time public string Open { get; set; } }   Threading Concerns Starting with the .NET Framework 4, the TPL is the preferred way to write multithreaded and parallel code. However, not all code is suitable for parallelization; for example, if a loop performs only a small amount of work on each iteration, or it doesn't run for many iterations, then the overhead of parallelization can cause the code to run more slowly. Furthermore, parallelization like any multithreaded code adds complexity to your program execution. Although the TPL simplifies multithreaded scenarios, we recommend that you have a basic understanding of threading concepts, for example, locks, deadlocks, and race conditions, so that you can use the TPL effectively. Note on CTrader and cAlgo If you do not code threading correctly the platform could crash and close down when you are in the middle of an important trade execution, my advice is to seek expert advice or test your code to death before attempting to run it on a live account. Phone: 0044 20 3289 6573  All international calls are local rates www.ClickAlgo.com | Our Blog Creative Trading with Technology            
31 Jan 2017
Downloads
732
Comments
10
Rating
0
Download
The robot gets the market series data for an instrument and stores the information in an excel file specified from your user defined parameters. To operate you run a back-test between start and end dates for the data that you wish to save and execute the back test, at the end of the test an excel file is created or updated with the following data, but you can use it store any data you wish. Unfortunately the cAlgo platform does not like compiling the robot with the referenced NPOI assemblies, so you will need to comment all the code below where it says  // UNCOMMENT CODE BELOW Also you can only use this example if you open it with Visual Studio and manage references with NuGet as explained below: The robot is an example using a 3rd party utility to simplify writing data to an excel file using NPOI https://npoi.codeplex.com/ Usage With Visual Studio The simplest method to set this up is to edit the cBot with visual studio from cAlgo and from visual studio Manage NuGet Packages from the solution and then search for NPOI online, simply install the package and you’re ready to go. You should see the file references as shown below: What's NPOI This project is the .NET version of POI Java project at http://poi.apache.org/. POI is an open source project which can help you read/write xls, doc, ppt files. It has a wide application. For example, you can use it to a. generate a Excel report without Microsoft Office suite installed on your server and more efficient than call Microsoft Excel ActiveX at background; b. extract text from Office documents to help you implement full-text indexing feature (most of time this feature is used to create search engines).  c. extract images from Office documents d. generate Excel sheets that contains formulas NPOI advantages  a. It's totally free to use  b. Cover most Excel features (cell styles, data formats, formulas and so on)  c. Supports .xls, .xlsx, .docx  d. Designed to be interface-oriented (in NPOI.SS namespace)  e. Supports not only export but also import  f. .NET 2.0 based even for xlsx and docx (but it also supports .NET 4.0)  g. Successful use cases all over the world  h. Great amount of basic and to the point samples  Download: https://npoi.codeplex.com/releases Phone: 0044 20 3289 6573  All international calls are local rates www.ClickAlgo.com | Our Blog Creative Trading with Technology           cAlgo4u has been re-branded to ClickAlgo.com
31 Jan 2017
Downloads
630
Comments
5
Rating
0
Download
The Scyware Harmonics Indicator is a new harmonic patterns auto-recognition indicator for the cAlgo/cTrader platform. Harmonic patterns profit from the natural order of the financial markets. Features: Detects Bat, Gartley, Crab, Butterfly, Cypher and Shark patterns It evaluates past price action and displays past patterns The indicator analyzes its own quality and performance It plots all the pattern ratios on the chart Fibonacci projections are vector-independent Visit the product page  
30 Jan 2017
Downloads
987
Comments
1
Rating
0
Download
 
27 Jan 2017
Downloads
1242
Comments
0
Rating
0
Download