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.

General info

Paul_Hayes's avatar
Username:Paul_Hayes
Name:Paul Hayes
Member since: 05 Feb 2015
Country:United Kingdom
Favorite symbols:
  
About:
ClickAlgo.com is a UK-based company providing a high-quality programming service to both full and part-time traders. We specialize in the cTrader trading platform.
Signature:
www.ClickAlgo.com

Last comments

  • @ClickAlgo Switchback: Hi GS66, My appologies for not replying here sooner, but the website forum does not inform me when a message is posted here, you are better off contacting me direct at contact@clickalgo.com. The cBot is sold without source code, but if you want options added, please leave a comment on the forum here. I plan to add an additional multi-timeframe indicator (MACD) plus configurable parameters for the RSI early December. Anybody who has purchased this software will get free upgrades. Also thank you for your comments. Paul.
  • @ClickAlgo Switchback: New update available: Various bug fixes reported from customers.
  • @ClickAlgo Switchback: New update available: When the volume was incorrect for the symbol the robot just returned no trades, it now displays an alert when the volume is bad informing you to enter the correct value for a given symbol.
  • @ClickAlgo Switchback: Hi Sean, Thank you for your comments, some good ideas. You can always load a whole months worth of news release data into the News Manager.  I may be able to add the first feature you mentioned fairly soon, the others will be on a later release. Please feel from to PM me if you want to discuss further.
  • @ClickAlgo Market Trading Clock: New feature added, will now send you an email a configurable number of minutes before the exchange opens.
  • @ClickAlgo Switchback: Hi Sean, Yes, if people leave comments on how to improve the robot, I will add these on the next release and existing customers who paid will get the upgrade free.
  • @ClickAlgo Dashboard Free Version: yes, we plan to do this in the future.
  • @ClickAlgo Dashboard Free Version: Hi TraderMatrix, The idea I am trying to put forward is that you can now have your own custom mini trading interface designed specifically to your unique style where you can fully automate or semi-automate trading.  You can have extra charting or quick and easy one click execution of trades and features not yet covered by the platform. If you are interested in finding out what we can do then just contact on the email below. contact@clickalgo.com Regards, Paul.  
  • @ClickAlgo HMA Signals: quite simply add indicator to cbot and use properties, IsBullish and IsBearish to decide if you should open long or short positions.
  • @ClickAlgo Read Excel Data: Hi J, Sorry for late reply, but I do not get informed when a message is posted on a forum. I have sent you an email. contact@clickalgo.com Regards, Paul.

Algorithms

DescriptionSubmited byDateCategoryPreviewDownloadsCommentsRating
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.       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 Phone: 0044 20 3289 6573 * All international calls are local rates (low cost)
09 Sep 2016
Downloads
1215
Comments
1
Rating
0
Download
This 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  All international calls are local rates www.ClickAlgo.com | Our Blog Creative Trading with Technology           cAlgo4u has been re-branded to ClickAlgo.com  
02 May 2016
Downloads
2035
Comments
3
Rating
3.75
Download
This 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 * All international calls are local rates (low cost) www.ClickAlgo.com Creative Trading with Technology            
30 Aug 2016
Downloads
2449
Comments
22
Rating
3.33
Download
This 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 * All international calls are local rates (low cost) www.ClickAlgo.com Creative Trading with Technology              
30 Aug 2016
Downloads
3260
Comments
19
Rating
4.17
Download
TRADING HOURS OF MAJOR STOCK EXCHANGES This indicator 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. 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 Phone: 0044 20 3289 6573 * All international calls are local rates (low cost)
09 Sep 2016
Downloads
3254
Comments
34
Rating
3.75
Download
DescriptionSubmited byDateCategoryPreviewDownloadsCommentsRating
Why not experience trading at an advanced level on one of the world's most popular trading platforms, while taking advantage of ClickAlgo's trader-centric solutions. The mini-trading terminal will allow you to trade with ease as well as submit complex order types. The mini-trading terminal will allow you to trade with ease as well as submit complex order types. Please note that only the trial version is available at the moment, you can pre-order for the final version which should be ready early February. Download the PDF User Manual Visit the Product Page contact@clickalgo.com 
19 Jan 2017
Downloads
14
Comments
0
Rating
0
Download
This is a much-improved version of the cTrader Switchback Indices cBot which now works with Forex. It still uses a comprehensive Smart-Grid Strategy is based on Multi-Time-Frame trending indicators with 25 combinations together with Advanced Risk Management, but now has had the benefit of feedback from customers on how to improve it. This strategy is designed for low risk and low drawdown trading with realistic profits. LIFETIME LICENSE WITH FREE UPDATES The license type is perpetual that will allow the customer to use the licensed software indefinitely and receive free updates when they occur. All updates will reflect what the customers feel would improve the product, so you can benefit from the strategy improving over time. DOWNLOAD THE 30 DAY FREE TRIAL  Please note that it is important to try the trial version first before you buy the full product. This product is designed for a low drawdown and realistic profit target DOWNLOAD USER MANUAL We have provided a comprehensive user manual to help you understand all the parameters and how to setup and use this complex strategy, if you are interested in this software then just browse the manual to see the features it provides. FREE UPGRADE FOR EXISTING CUSTOMERS Customers who purchased v1.0 of the Switchback cBot for Indices can download this FOREX version for free and will continue to get all future versions at no extra cost. You get both robots for the price of 1. http://clickalgo.com/ctrader-cbot-switchback http://clickalgo.com
06 Jan 2017
Downloads
50
Comments
0
Rating
0
Download
This cTrader cBot uses a comprehensive Smart-Grid Strategy that is based on Multi-Time-Frame trending indicators with 25 combinations together with Advanced Risk Management. It uses a customized version of the popular DiNapoli Stochastic RSI and Hull Moving Average HMA indicators. This strategy is designed for low risk and low drawdown trading with realistic profits. This is a trend strategy with a lot of risk management built in, it works on 5 different time-frames using two very popular trend indicators a custom Hull Moving Average and a custom DiNapoli stochastic which has a feature to check the curve of the signal line. SMART-GRID The core of the trading logic uses a smart-grid strategy which will open long positions at intervals when the price reverses, this on its own gives very good results, but suffers from excessive draw-downs. To reduce the draw-downs this robot has multi-time-frame trend indicators. DOWNLOAD THE 30 DAY FREE TRIAL  MULTI-TIME-FRAME INDICATORS You can have a combination of up to 5 DiNapoli Stochastic indicators all with different time-frames and 5 HMA indicators also with 5 different time-frames. So in total you can have 25 combinations of indicator's and time-frames. As the robot uses many time-frames a normal configuration would be: ADDITIONAL INDICATORS There are also the Simple Moving Average and Exponential Moving Average indicators included in the strategy all with configurable time-frames. MARKETS CHANGE: We have found that for a given instrument the markets changes in cycles, so the combinations for the multi-time-frame indicators will need to be adjusted on each cycle.  ADVANCED RISK MANAGEMENT This strategy has a rich selection of risk management as shown below: TRADING HOURS With the integration of a trading hours feature you can select when you wish the robot to trade for you, each instrument may vary, you can avoid periods when the volatility is very high. Switchback offers you the option to set your daily start and end times.  NOTIFICATIONS The robot will also notify you via email when a new position opens and when an open position is (x) pips in the red. ADDITIONAL CLOSING OF POSITIONS Some advanced logic is available to close positions when the DINapoli Stochastic RSI is oversold or overbought, you can set any time frame you wish, it does not have to be same as chart. CLICKALGO NEWS RELEASE MANAGER CBOT Integration with the News Release Manager cBot will allow SwitchBack Alpha to pause trading and even close positions a configurable (x) minutes before the news release starts and automatically re-starts trading a configurable (x) minutes after the news release. Email notifications will also be sent with full information about the news item. Smooth Curve Distance on DiNapoli Stochastic RSI This is a major parameter to set with the cBot, it makes a huge difference to reduce the draw-down when back-testing, optimal value is 3, but it can be anywhere between 0-10. Automated or Semi-Automated Trading This strategy is perfect for semi-automated trading, you can go to sleep at night and know your positions are protected. What Instruments Can I Use? It will work on any instrument, but you need to change the settings to get the best results. Some instruments can give poor results no matter what parameter settings you use, it is best to avoid these and find one that gives good results. This strategy works best with indices and shares where there is no commission, but also as good with Forex. If Forex is used then it is highly recommended to use the News Release Manager to protect against massive swings in price. Example Back-Test Results Recent Back-Test for #Swiss20 shows a 20% profit with 5.2% drawdown FREE UPGRADE FOR EXISTING CUSTOMERS Customers who purchased v2.0 of the Switchback cBot for Forex can download this version for free and will continue to get all future versions at no extra cost.  http://clickalgo.com/ctrader-cbot-switchback-Forex   http://clickalgo.com  
06 Jan 2017
Downloads
431
Comments
12
Rating
0
Download
The ClickAlgo Volatility Alert indicator is a very popular indicator, so an improved Extended User Interface (EUI) Widget has been developed for you to download for free which has extra features. Volatility This part of the dashboard shows the current volatility in seconds for a 1 minute time-frame, so this will be only good for maybe scalpers or very short trade duration. In the settings tab, you can set a threshold for the maximum number of pips that has moved, if the value goes above the threshold then the gauge will flash red as shown for the spread. You can assign a sound to occur when this happens. Spread This shows the current spread of an instrument and you can also set the maximum threshold and an alarm when the value goes above this. Version 0.2 - Larger Dashboard View Depth of Market The DOM shows the current orders for both Buy and Sell, the top gauge is for buy orders and the bottom is for sell orders The value in the text boxes are show the total orders. The status bar at the bottom show the instrument and whether the accumulated orders show an increase in sell or buy orders. Accumulated Spread As soon as you start the dashboard a counter starts accumulating all the orders for both buy and sell, so that you end up with an indication if the Bears or the Bulls are in control for the day. The top gauge will show Green if the bulls are in control and the bottom gauge will show red if the bears are in control. Reset DOM Counter You can reset the accumulated DOM counter for buy and sell orders. Volatility Threshold Set your threshold value for alerting you when the rapid pip movement goes above the target value, you can select the play sound option for an audible alert. Set your threshold value for alerting you when the spread for the instrument goes above the target value, you can select the play sound option for an audible alert. Multiple Dashboards on Screen you can have many dashboards for different instruments on your screen so you can monitor them at a glance. Phone: 0044 20 3289 6573 * All international calls are local rates (low cost) www.ClickAlgo.com Creative Trading with Technology            
05 Sep 2016
Downloads
790
Comments
10
Rating
5
Download
This example template robot demonstrates how you can use the ClickAlgo News Release Manager with your automated strategies. It shows how you can automatically pause your robot a predefined number of minutes before a major news release and restart trading again another predefined number of minutes after the news event has occurred to avoid all the noise that usually happens. It also shows how you can close open positions before the news release. The robot checks for any upcoming news release every 1 minute as set in a timer, this can be modified to any other amount. Please remember this is just an example template and not a working robot, it is just to show you how you can use the News Manager robot. CONTACT US Phone: 0044 20 3289 6573  | All international calls are local rates (low cost) www.clickalgo.com | BLOG Automated Trading Strategies, Indicators and Custom Trading Platforms
17 Mar 2016
Downloads
437
Comments
0
Rating
0
Download
This cBot provides signals to pause your robots (x) minutes before, during and after a news release. If you automate your trading using technical indicators then this may fail during a major news release on intra-day, if you are looking long term then the price may recover and continue its trend, if you do not mind the draw-down.   I have modified the robot so that it now manages news releases for all currencies that you list as a comma delimiting string in the user defined parameters. You can now also specify the date format for the CSV file from my-FxBook. If your automated strategy is based on technical indicators then you are gambling during major news releases, if your robot is based on high volatility during a news release then you do not need this robot. I found that by using this robot I avoided large draw-downs in my strategy over time due to unpredictable price movement, unfortunately you cannot back-test this type of anomaly on this platform. Here is an example on a 15 minute chart, if the technical indicators would have signaled long it would have blown my stops, but luckily I had sell signals, but this also would have caused me problems as my robots would still be signalling a sell and opened a new short position at the bottom of the spike. By avoiding a major news release you bypass all the price spikes. To get it to work you simply download the news file from MyFxBook in CSV format. http://www.myfxbook.com/forex-economic-calendar You can download the CSV file from the more tab as shown below:   CURRENCY PAIRS The news release manage will email you whenever an event is about to happen for a particular currency, but the robot will only manage the currency list you specify in the user settings. Download the news file to any folder you want, I put mine in the cAlgo folder called news files, you can set the path in the cBot as shown below, I download 1 week ahead every Sunday, but you can do monthly too. You can set the robot to signal (x) minutes before a news release and (x) minutes after, I usually do not start trading again until 3-6 hours after a major news release. You can turn on email notifications which will inform you a news release is about to happen and when it is over and your robots have started trading again.   Email Message Example You can pause all robot instances before a news release or just those that the news release related to, so a United States news release will affect all currency pairs with USD or Indices that are US, to make sure the news files have loaded correctly, just run the robot and in the log file you will see the following: The robot checks the news file every minute. WHAT DOES IT DO? All the news manager robot achieves is to add an entry into the windows registry for a client application to read and decide to trade or not. I could have stored the signal's anywhere, file-system, database etc.   All you need to do to make this work with a cBot is to read the registry key and if it is true pause your robot. Phone: 0044 20 3289 6573 * All international calls are local rates (low cost) www.ClickAlgo.com Creative Trading with Technology          
19 Nov 2016
Downloads
899
Comments
13
Rating
5
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
11 Apr 2016
Downloads
448
Comments
2
Rating
0
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            
03 May 2016
Downloads
542
Comments
10
Rating
0
Download
Execute trades example using LinqToExcel and LINQ to easily read an Excel or CSV file into your Automated Trading Robot. 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.   Phone: 0044 20 3289 6573 * All international calls are local rates (low cost) www.ClickAlgo.com Creative Trading with Technology            
30 Aug 2016
Downloads
648
Comments
16
Rating
5
Download