cBots

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
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
539
Comments
10
Rating
0
Download
There was an study that shows trading naked Heikin Ashi can be profitable :  https://www.tradinformed.com/simple-profitable-heikin-ashi-trading-system/   Heikin Ashi Indicator Link:  https://drive.google.com/file/d/0B93GK1Ip4NSMMWZDS29odjg0UXM/view   So I decided to make a bot for it and see how it's going to perform: Back test parameters file: https://drive.google.com/open?id=0B93GK1Ip4NSMckJVdVNNdWpEbXM
21 Apr 2016
Downloads
888
Comments
5
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
11 Apr 2016
Downloads
447
Comments
2
Rating
0
Download
Simple example that shows how to send a message to a Telegram channel.   Requires a Telegram API Key and a ChannelId.   To get a API key, follow these directions. https://core.telegram.org/bots#botfather   The code in OnStart tries to find a ChannelId based on recent interactions with the robot.   Once you know a particular ChannelId, set it as a parameter.   It i's a little strange, but I could not figure out any other way to get a channelid.
17 Mar 2016
Downloads
320
Comments
5
Rating
0
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
433
Comments
0
Rating
0
Download
I created this bot for trading the rejection candle, previously I published the Rejection Candle Recognition indicator so now I'm publishing it's bot. Features: Checking of previous opposite candle Checking candle left space Checking the candle tick volume to previous candles Placing stop loss based on ATR Filtering the trending condition with MAs Trading only with strong trend by managing MAs distance Checking average previous candles range Setting take profit based on number of Risk:Reward MA based exit Exiting from trades based on formations of candles Stop Loss trailing Chandelier SL trailing method Time filter Money management I recommend you to use it only in daily time frame. In all of the below back tests commission is 10 per million.  Below is screenshot of bot back test result on EURUSD D1 Tick Data from 11/11/2012 to 14/03/2016: This one is from H4 EURUSD tick data from 11/11/2012 to 14/03/2016: EURUSD H4 tick data from 11/11/2011 to 14/03/2016, No previous candle check:
17 Mar 2016
Downloads
549
Comments
1
Rating
0
Download
This is the Random Entry System of Tom Basso as described in the Van Tharp Book Trade your way to Financial Freedom on page 253. In short, it consists of a random entry with a 3x "n" period Average True Range (ATR) (10 day recommended in book) stop loss that moves when the market moves in your favor or volatility shrinks. It also has a 1% of Account Balance volume calculator for each trade that can be turned off if a chosen volume quantity. Parameters Symbol - As selected. Time frame - As selected, will be used for the ATR. Vol as % (Bool) - Yes to use calculated % of Account, No to use Volume Quantity (Vol Qty) Vol % (int) - 1 to use 1% of account per trade etc. Vol Qty (int) - Volume Quantity to be used for trade if Vol as % is set to No. Not used if Vol as % is set to Yes. Volatility Multiple (int) - Multiplies the ATR to calculate the stop loss. Eg 3 = 3 times the ATR for a stop loss. ATR Period (int) - The number of periods used on cBot selected Time Frame. SL Trigger "n"Pips (int) - Triggers the stop loss to try and update after "n pips, set by default to 2 pips just to limit multiple attempts to update stop loss in a short time frame. This means it has to move 2 pips in your direction before it tries to update the stop loss again. Allowable slippage (double) - Used directly in the ExecuteMarketOrder function to hold out on an order until the slippage is preferable. The only thing you need to add to this cBot is time and markets (as many as you can afford). Most times this will do ok in the long run because it has a knack of catching the trend and letting it run and cutting short it's loser's. Test it out, recommended on the daily time frame as it minimizes churn and picks up on the larger flow of money rather than just the volatility. Happy Trading. Special Thanks to colga645 for % of account risk code and spka111 for ATR indicator.  
by Jonkey
26 Feb 2016
Downloads
479
Comments
2
Rating
0
Download
DEFINITION of 'Iceberg Order' from Investopedia A large single order that has been divided into smaller lots, usually through the use of an automated program, for the purpose of hiding the actual order quantity. Read more: Iceberg Order Definition | Investopedia http://www.investopedia.com/terms/i/icebergorder.asp#ixzz3yaphczPe  Sometimes a trader wants to place a big order into smaller pieces, this bot makes it possible, using timer it places an orders each number of seconds you can define. Please let me know in case of any bug.
by Waxy
29 Jan 2016
Downloads
450
Comments
0
Rating
0
Download
This is a complete trade manager. It manages your open positions automatically. It has a jumping stop-loss, partial closure, breakeven, and automatic SL&TP. Guide: http://dreamzfx.net/guide.html
21 Jan 2016
Downloads
1575
Comments
1
Rating
5
Download
TradeManagerV03: Control your maximum drawdown, change TP and/or SL of your all open positions at once. Maximum DrawDown % = (Default Value) 5 If your drawdown exceeds  % "x" of your balance, all open positions will be closed. Modify Take Profit of Your Long Orders: Enter your TP price for your Long Orders @ Long Orders TP parameter (0 removes TP) select "yes" @ Modify Long Orders TP parameter select "no" to stop modifying TP Modify Stop Loss of Your Long Orders: Enter your SL price for your Long Orders @ Long Orders SL parameter (0 removes SL) select "yes" @ Modify Long Orders SL parameter select "no" to stop modifying SL Modify Take Profit of Your Short Orders: Enter your TP price for your Short Orders @ Short Orders TP parameter (0 removes TP) select "yes" @ Modify Short Orders TP parameter select "no" to stop modifying TP Modify Stop Loss of Your Short Orders: Enter your SL price for your Short Orders @ Short Orders SL parameter (0 removes SL) select "yes" @ Modify Short Orders SL parameter select "no" to stop modifying SL            
by ozan
16 Jan 2016
Downloads
550
Comments
0
Rating
0
Download
This Expert Advisor [Trust_Trader] activated to Auto Trader on Matingale Algorithm Refer of Only Margin Required Indicator. And Support Optional Function: Manually Set Trading Buy or Sell Stop Order for News Event Time Big Fluctuation. Parameter Description: TrustTrader:         is same as MagicNumber FirstLot:         is First Order Lots(Second incliment Matingale  Algorithm)  MaxLot:         is Maximum Order Lots(Second incliment Matingale  Algorithm) LotStep:         is LotStep Start Pips Stop_Loss:         is StopLoss Pips TakeProfit:         is Profit Pips Tral_Start:         is Trail Start Pipis Tral_Stop:         is Trail Stop Pips Market_Range:         is Margin of Order (different Broker's) PipStep:         is Matingale  Algorithm Pips MaxOrders:         is Maxmum Order on Trading FridaySummary:         if true on Friday Night(Saturday Morning) closing Open Position before stop trading  AutoCloseStartHour:    is above function start hour AutoCloseStartMin:     is above function start hour AutoOpenStartHour:     if FridaySummary=true, ReOpen day of hour AutoOpenStartMin:      if FridaySummary=true, ReOpen day of hour OpNewsTimePositionClose:if true on News Time, Manual Trade(Send StopOrder) NewsTimeHour:        if OpNewsTimePositionClose set NewTime Start Hour NewsTimeMin:        if OpNewsTimePositionClose set NewTime Start Min AsStopBuyNum:        if >0 then send Buy Stop Order Auto AsStopSellNum:        if >0 then send Sell Stop Order Auto AsUnitLots:        Above Stop Order Lots target volume is AsStopBuyNum * AsUnitLots AsOrderOpenTimeHour:    is News Order Open Hour AsOrederOpenTimeMin:    is News Order Open Min AsOrderCloseTimeHour:    is News Order Close Hour AsOrederCloseTimeMin:    is News Order Close Hour AsEntryDistancePips:    is News Order price position distance(Pips) AsStopLossPips:        is News Order StopLoss AsProfitPips:        is News Order Profit RiskControl:        if true management Risk Control NewOrderPercent:    is News Order Limit Margin StopedBalancePercent:    is Order Stop Percent Target_Pair:        is Target Pair as like MagicNumber By Matios member of  FXPlan  https://www.facebook.com/FOREX-Free-EA-Evaluation-1081254308571646/
31 Dec 2015
Downloads
981
Comments
2
Rating
5
Download
Find uploaded an updated version of the cbot. It has slightly modified logic, RSI filtering property and some more parameters to modify. Also a bidirectional trailing stop has been added (both positive and negative triggers allowed). Backtesting ability has been improved as well. Tested on USDCAD, 2 out of 3 winning trades on average. Some less self-explanatory parameters explained: Equity Risk Value - percentage of available equity as a parameter of trade volume (in %), use values of consecutive tens 10, 20, 30 ... and so on. Breakout Trigger In Pips - number of pips a new bar has to break the previous range for a position to be opened. Below equity curve based on trades spanning over 3 years of data. Currency pair - USDCAD. Starting balance - 1k EUR.   .......................................................................................................................................................................................... This robot trades a very simple strategy of daily bar breakouts. You can read more about it HERE . I am new to programming so expect nothing more than you would do from an experiment. Structural nuances of the code are based on work of nobulart . If you want to backtest this robot be sure to change Backtesting Properties of Market Data to "Tick data from Server (accurate)", otherwise number of trade entries will be missed out. Do fidle with the params in optimization, however, if you're lazy the default ones should give decent results. To unclutter the Log just use comment characters "//" with appropriate lines of code. Comments and improvement ideas greatly appreciated.   ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Do not use on live accounts. This is an experimental algorithm and no results are guaranteed. Losses may exceed an initial deposit. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
22 Nov 2015
Downloads
992
Comments
1
Rating
0
Download