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
         using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class CCIReversal : Robot { [Parameter(DefaultValue = 26)] public int cciPeriod { get; set; } [Parameter(DefaultValue = 9)] public int maPeriod { get; set; } [Parameter("Quantity (Lots)", DefaultValue = 1, MinValue = 0.01, Step = 0.01)] public double Quantity { get; set; } private CommodityChannelIndex cci; //private Position _position; private const string robotname = "CCIReversal"; protected override void OnStart() { cci = Indicators.CommodityChannelIndex(cciPeriod); } protected override void OnBar() { var longPos = Positions.Find(robotname, Symbol, TradeType.Buy); var shortPos = Positions.Find(robotname, Symbol, TradeType.Sell); var pre_cci = cci.Result.Last(2); var cur_cci = cci.Result.Last(0); bool LongPosition = _position != null && _position.TradeType == TradeType.Buy; bool ShortPosition = _position != null && _position.TradeType == TradeType.Sell; Print("CCI = " + cur_cci + " Pre CCI" + pre_cci); if ((cci.Result.HasCrossedAbove(-100.0, 1) && cur_cci > pre_cci) || (cci.Result.HasCrossedAbove(100.0, 1) && cur_cci > pre_cci)) { if (shortPos != null) { ClosePosition(shortPos); ExecuteMarketOrder(TradeType.Buy, Symbol, VolumeInUnits, robotname); } else if (longPos == null) { ExecuteMarketOrder(TradeType.Buy, Symbol, VolumeInUnits, robotname); } else { ExecuteMarketOrder(TradeType.Buy, Symbol, VolumeInUnits, robotname); } Print("con1"); } else if ((cci.Result.HasCrossedBelow(-100.0, 1) && cur_cci < pre_cci) || (cci.Result.HasCrossedBelow(100, 1) && cur_cci < pre_cci)) { if (longPos != null) { ClosePosition(longPos); ExecuteMarketOrder(TradeType.Sell, Symbol, VolumeInUnits, robotname); } else if (shortPos == null) { ExecuteMarketOrder(TradeType.Sell, Symbol, VolumeInUnits, robotname); } else { ExecuteMarketOrder(TradeType.Sell, Symbol, VolumeInUnits, robotname); } Print("con2"); } Print("Long" + (longPos != null)); Print("Short" + (shortPos != null)); } private long VolumeInUnits { get { return Symbol.QuantityToVolume(Quantity); } } } /* private void Close(TradeType tradeType) { foreach (var position in Positions.FindAll(robotname, Symbol, tradeType)) ClosePosition(_position); } private void Open(TradeType tradeType) { _position = Positions.Find(robotname, Symbol, tradeType); var volumeInUnits = Symbol.QuantityToVolume(Quantity); if (_position == null) ExecuteMarketOrder(tradeType, Symbol, volumeInUnits, robotname); }*/ }    Backtest on Silver The CCI Reversal Buy when CCI(26) Cross above -100 or 100(when no buy position open), in the case of crossing above -100 the cbot will be selling when CCI(26) cross below 0, but if the CCI(26) reach over 100 it will be selling when CCI(26) cross below 100 .  In case of short position, it's the reversal of buy position. There is parameter name 'MA' but notthing importance for now, I added it for the next version.  and the parameter Trading Size, value 2 mean trade both side long and short, 0 = trade on short side only, 1 = trade on long side only.  If you find any mistake of this algorithm please let me know.
16 Nov 2016
Downloads
415
Comments
0
Rating
0
Download
fgfgfgfggfgfgfgfggfgfgfgfgfgfggddgdgdgdysdfyfysdofyfyouoyfuiafosdfyouayuiydsoiufysduyfosauiyosiafyfusoasgdfgdfgdfgdgdfgdgdggddgdggdgdgdgdfg dggdfgdfgdfgg fdgdfgdgdgg dggdgdgdfgdfgg gddgdgggdgdgdf ffsdfsff sfsfsfvgsvhfsgcghsghgdshgd  g hsghghsghgdhsgd ghgshghgdshdsg ghgshdghgdshs ghsghgshgsh ghsghghsghsfgfgfgfggfgfgfgfggfgfgfgfgfgfggddgdgdgdysdfyfysdofyfyouoyfuiafosdfyouayuiydsoiufysduyfosauiyosiafyfusoasgdfgdfgdfgdgdfgdgdggddgdggdgdgdgdfg dggdfgdfgdfgg fdgdfgdgdgg dggdgdgdfgdfgg gddgdgggdgdgdf ffsdfsff sfsfsfvgsvhfsgcghsghgdshgd  g hsghghsghgdhsgd ghgshghgdshdsg ghgshdghgdshs ghsghgshgsh ghsghghsghsfgfgfgfggfgfgfgfggfgfgfgfgfgfggddgdgdgdysdfyfysdofyfyouoyfuiafosdfyouayuiydsoiufysduyfosauiyosiafyfusoasgdfgdfgdfgdgdfgdgdggddgdggdgdgdgdfg dggdfgdfgdfgg fdgdfgdgdgg dggdgdgdfgdfgg gddgdgggdgdgdf ffsdfsff sfsfsfvgsvhfsgcghsghgdshgd  g hsghghsghgdhsgd ghgshghgdshdsg ghgshdghgdshs ghsghgshgsh ghsghghsghsfgfgfgfggfgfgfgfggfgfgfgfgfgfggddgdgdgdysdfyfysdofyfyouoyfuiafosdfyouayuiydsoiufysduyfosauiyosiafyfusoasgdfgdfgdfgdgdfgdgdggddgdggdgdgdgdfg dggdfgdfgdfgg fdgdfgdgdgg dggdgdgdfgdfgg gddgdgggdgdgdf ffsdfsff sfsfsfvgsvhfsgcghsghgdshgd  g hsghghsghgdhsgd ghgshghgdshdsg ghgshdghgdshs ghsghgshgsh ghsghghsghsfgfgfgfggfgfgfgfggfgfgfgfgfgfggddgdgdgdysdfyfysdofyfyouoyfuiafosdfyouayuiydsoiufysduyfosauiyosiafyfusoasgdfgdfgdfgdgdfgdgdggddgdggdgdgdgdfg dggdfgdfgdfgg fdgdfgdgdgg dggdgdgdfgdfgg gddgdgggdgdgdf ffsdfsff sfsfsfvgsvhfsgcghsghgdshgd  g hsghghsghgdhsgd ghgshghgdshdsg ghgshdghgdshs ghsghgshgsh ghsghghsghs
06 Nov 2016
Downloads
228
Comments
0
Rating
0
Download
La idea inicial de este cbot es abrir ordenes opuestas con un SL definido, de manera que cuando el precio cierre una posición se abran de nuevo 2 posiciones nuevas en hedging con SL definido de nuevo y así succesivamente acumulando beneficio en las posiciones abiertas siempre y cuando el precio no gire de nuevo. Creo que es una muy buena opción para momentos en los que hay mucha volatilidad como por ejemplo en noticias. Como tengo unos conocimientos en programación muy limitados este cbot tiene un problema que no se resolver, si operas en otro mercado mientras esta activo y cerras alguna posición, abre de nuevo 2 posiciones. Espero que alguien pueda ayudarme a mejorar este problema.   using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class sergi : Robot { [Parameter("Volume", DefaultValue = 1000)] public int Volume { get; set; } [Parameter("Stop Loss (pips)", DefaultValue = 20, MinValue = 1)] public int StopLossInPips { get; set; } protected override void OnStart() { Positions.Closed += closedposition; ExecuteMarketOrder(TradeType.Buy, Symbol, Volume, "Sergi", StopLossInPips, 0); ExecuteMarketOrder(TradeType.Sell, Symbol, Volume, "Sergi", StopLossInPips, 0); } private void closedposition(PositionClosedEventArgs arg) { var pos = arg.Position; if ((pos.NetProfit < 0)) Positions.Closed -= closedposition; OnStart(); } } }  
27 Oct 2016
Downloads
643
Comments
3
Rating
0
Download
Hi, This cBOT will display 8-Major Pair Strength (in Pips) in different time frames, sorted.  Basically, it helps in knowing 1. how the Pairs are behaving in group and 2. which are the two opposite Major Pairs and 3. is it wise to trade or not.   4. It is best to trade the two extreme Pairs on Daily or 4Hr Time Frame (when London or US session opens). APLLY cBOT on : 1-min TIME FRAME WAITING :  DUE TO cTRADER internal issue; First TIME OPEN PRICE Loading takes time. so be patient. around 4 to 5 mins. then once loaded, it updates the prices within mili-seconds on each minute. Please give me your feedback on what other features can be displayed.  (inside the code, there is a code of individual 28 pairs that can be used to display the individual pairs also. have disabled it). Thank you ! /// Saleem Khan  
14 Oct 2016
Downloads
1075
Comments
14
Rating
5
Download
The cBot will open trades after breakout of previous bars. Strong money management, Primary SL & Reversal Trailing algorithm. Risk Per Trade based on the distance between Entry-price & Primary SL and also you can use manual lot-size by Risk per trade 0.   www.facebook.com/cls.fx    
06 Oct 2016
Downloads
28138
Comments
2
Rating
0
Download
This bot is based on Money Flow Index indicator and Heiken Ashi, The strategy is very simple it buys when a bullish HA candle closed and MFI was above a user defined level(default 40) and it sells when a bearish HA candle closed and MFI was below a user defined level(default 70). It's not some martingale or grid type bot so it will have losing days, weeks and even consecutive losing months but it keeps your risk low and avoid big draw downs. The above back test result time period was from 29/01/2012 to 16/09/2016 and the data type was tick data with $40 commission per standard lot. Back test parameters file : https://drive.google.com/file/d/0B93GK1Ip4NSMbUt4aFA4dmxaVkU/view?usp=sharing
18 Sep 2016
Downloads
666
Comments
2
Rating
0
Download
This bot is useful when you don't know direction, but there's a big move on either direction expected. Since it's a tunneling strategy, it's only a martingale if the # of attemps is absurdely high, like 10 or more. Would recommend 4 to 5 attemps at most. Please let me know if there's any bug I'll quickly fix it. Mail: waxavi@outlook.com  
by Waxy
15 Sep 2016
Downloads
538
Comments
2
Rating
0
Download
This is a scalper used primarily on USDJPY M15. It has not been tested in other currencies yet. Its parameters are: Lots 0.6 for every $10,000 SL: 638 TP: 984 Robot ID: 56477012 Bars Required: 204 -------------------------------------------- CCI Smoothing Period: 86 Level: -555 Multiplier: 0.273 ----------------------------------------------- Moving Average Crossover Fast MA: 96 Slow MA: 189 Fast MA Shift: 3 Slow MA Shift: 33  
13 Sep 2016
Downloads
599
Comments
0
Rating
0
Download
22/08/2016 volume change (lots) Adding volume Max. in automat mode if the max volume is winning or losing, the volume returns to the original volume. automate = false, the robot works up to gain ... or maxvolume (winning or losing). I added an option to StopOrder and LimitOrder. ("Martingale NONSTOP") ex: if Martingale NONSTOP  = true; if lost, the martingale works as previously ... ( change the direction Martingale + maxvolume) if Martingale NONSTOP= false; if losing = 2 pendigorders oco  (multiplied by martingale) .. and c is the direction of the market that decides  of the sell and buy order. (with maxvolume option) .Net profit (return Commissions) buy, sell, StopOrder, LimitOrder separately visible on the screen.   good trades.     14/08/2015 Adding Limit Order / martingale :yes..no / oco... 12/08/2015:Adding stop order choose the direction:Start buy/Start Sell, multiplier,volume and TP/SL change the direction =true : ↗/↘:When SL is hit trade  in the other meaning. Start Automate =true : begins the cycle after each TP. ability to sell and buy together(separate adjustment) bottom right = net profit - return Commissions create two trades: buying and selling when a trade is negative, you win on the other. the martingale (non-random) reimburse the losing trades. that the market goes up or down you generate profits. Attention to the margin adjust the stop loss and take profit depending on the size of your wallet and your leverage good luck        
22 Aug 2016
Downloads
6022
Comments
16
Rating
3
Download
It's my dashboard that I use everyday for my trading so I decided to share it in here, It has a lot of functionalities that helps you to know what's going on in market also it works as an standalone Windows App with modern UI. Current Version Features: Shows strong / weak currencies and pairs Shows correlation Shows volatility based on four different indicators Shows trend direction   Strong / Weak Strong / Weak calculation method is based on : https://www.dailyfx.com/forex/education/trading_tips/post_of_the_day/2011/06/15/How_to_Create_a_Trading_Edge_Know_the_Strong_and_the_Weak_Currencies.html Correlation Select the pair and it will show you the correlation: Volatility It shows the amount of standard deviation, ATR and ABR(Average bar range) in Pips also Chaikin indicator value: Trend For finding trend direction it use three technical indicators MA, RSI and MACD: And "Start Tab", You can change the dashboard settings there: For changing the dashboard Symbols click on "Symbols" button:   GitHub: https://github.com/afhacker/afhacker-Dashboard
18 Aug 2016
Downloads
524
Comments
13
Rating
0
Download
This cBot will get the most of your winning trades. It will prevent hitting the target while you are surfing a winning trend, without risking the pips you are already earning. When the bid/ask price of the currency you are trading is about to hit the target, this cBot will move the take profit setting a few pips further,  and will put the STOP LOSS a few pips away from the current price. 
by sebnet
18 Aug 2016
Downloads
1403
Comments
3
Rating
5
Download
It's "Trading Made Simple" system bot: Original Thread: http://www.forexfactory.com/showthread.php?t=291622 For Newbies: http://www.forexfactory.com/showthread.php?t=586142 Heiken Ashi Indicator: https://drive.google.com/file/d/0B93GK1Ip4NSMV19yNUNsOVNOMU0/view?usp=sharing I implemented all of the TMS filters and I tried to stick on core system without making it complicated. BitCoin: 1Me2TQ6Rgr8EevZNFKqvYegkbtY8C2cP5i  
20 Jul 2016
Downloads
1507
Comments
23
Rating
0
Download