o6h58zs's avatar
Full-time academic, part-time trader and technical analyst.
B. 's avatar


Member since: 17 Jul 2022
Country:United Kingdom

Favorite symbols:



Full-time academic, part-time trader and technical analyst. Experienced programmer, educated in financial mathematics and econophysics. Always here to help!


Full-time academic, part-time trader and technical analyst.

Last Algorithm Comments

@Engulfing Candles:  13 Sep 2022, 18:05

Hello, is it possible for you guys to help me to create an indicator/signal for the following: Timeframe: 5 mins FOR BUY -a "green" candle will close above the high of a previous "red" candle FOR SELL -a "red candle" will close below the low of a previous "green" candle Kindly help. Let me know if you need any clarifications. Thanks a lot! - renzkarlosantos   Hi buddy, Thanks for checking out my indicator first of all. This would be quite simple to do. The high prices of the market are represented by either MarketSeries.High (obsolete) or Bars.HighPrices - both of which are DataSeries. Replace 'High' with 'Low' in the previous and you have your low prices, 'Close' for close prices, 'Open' for open prices. A bullish candle (green) closes above its open; a bearish candle (red) below. Use the DataSeries mentioned above to check if a previous candle is green or red by indexing the previous bar inside your Calculate() method - you could create an enum or bool to store whether it is bullish or bearish. Depending on whether you want it to repaint, you'll need to know the previous two candles. To check the previous two candle, use index [1] for the previous candle and index [2] for the candle before that. If checking the current and previous candles, just use [0] and [1]. Then you check the prices. If previous is red and current is green and closes above the high price of the previous (i.e. Bars.ClosePrices[0] > Bars.HighPrices[1]), or vice versa, and then you draw the signal on your chart (you can use code from this indicator if you wish). You can also ensure that a signal is not repeated by storing the last signal in a variable and checking whether the last signal is the same as the next. I refuse to write code for people, unless it's something I intend to create myself as it's part of the learning process. If you're struggling to learn cTrader/cAlgo, just learn C# or Java - even at a basic/intermediate level - and the rest will follow. Hope that helps. Kind regards, o6h58zs (just one guy, lol)

@Multi Timeframe Stochastic Oscillator:  31 Aug 2022, 08:55

Very elegant solution for the multiple timeframes dadi, I've been trying to find a way to do this. Nice work! ???? Also, regarding strategies, I often use the crossovers between the K% and D% lines as entry confirmations. When in an uptrend, I wait for the K% to crossover the D% before entering a trade, and the reverse in a downtrend. I also use a volume indicator (MFI) or oscillator (RSI, etc.) to confirm the momentum in that direction (above or below the 50 line on each). I never use overbought and oversold areas and in my opinion, it is unwise to - like the indicators mentioned above, the stochastic is a momentum indicator, and a market can remain overbought or oversold for a long time, depending on the period you're using. Hope that helps. ☺

@ATR Stops:  08 Aug 2022, 16:32

There appears to be an issue with the reporting of the values from the indicator. See my post here. Would you be able to help? ☺
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.
Engulfing Candles
free  09 Sep 2022
An engulfing candle pattern consists of two candles, with the current 'engulfing' the previous one. In other words, the body of the current candle is larger than the previous, such that the body of the previous candle would fit inside the current one. This pattern can indicate a sudden increase in pressure from one side of the market onto the other, especially at the end of the trend, and can be used as a confluence for a trend reversal. This indicator draws arrows onto the chart to show when engulfing candles occur, with each arrow coloured appropriately.  Improvements are needed on the positioning of the arrows. Initially, this was all okay on all the pairs I tested, however, due to not re-loading the indicator, it was not re-drawing as expected. I'm sure I'll fix this at some point. Credit goes to ctid306377 for their original Candlestick Patterns DEMO indicator - code snippets were adapted from this indicator. However, the full Candlestick Patterns indicator is more comprehensive and offers all candlestick patterns plus additional information and text options, and is available for purchase from ctid306377 (have a look at the indicator page if you're interested). Usage in cBots: • To use with cBots, declare the EngulfingCandles indicator in your class body (class scope, outside of a method body): private EngulfingCandles _engulfingCandles { get; set; } • Then instantiate inside your OnStart() method: _engulfingCandles = Indicators.GetIndicator<EngulfingCandles>(); • Finally, to reference the last engulfing candle, either in your OnTick() or OnBar() method, access the DataSeries 'PatternData' using the appropriate method calls, e.g. PatternData.LastValue or PatternData.Last(0), for instance: var bull = PatternData.Last(0) == 1 ? true : false; Changelog: - 31/08/2022: Added option to store (keep) last engulfing result in PatternData. Use this if your strategy relies on looking up the last engulfing result (not necessarily on last bar close). - 09/09/2022: Changed 'Bull' to 1 and 'Bear' to 0 inside the Enum. Chartshot: AUDCAD, M1  
Two 34HMA Cross
free  29 Aug 2022
Note: if you are the owner of the original indicator and would like me to remove this port, please feel free to message me and I will be happy to do so. Another port of an existing indicator - this one is by PP Signal. All credit goes to the owner. The original indicator I ported can be found here.  I have only included the calculations of the two 34-period Hull Moving Averages along with a basic trend cloud. I cannot be bothered to add on the buy and sell signal labels, but if anybody would like to, please feel free to build upon this script. This technical works very well in trending markets, but not so well in ranging and consolidating markets (as expected with one based on the Hull Moving Average). Chartshots: EURUSD, H1 - good example of a trending market here, the indicator works reasonably well.   GBPCHF, M15 - a ranging market. You can see that, due to the reliance upon candle closes for calculations, the indicator is very unresponsive to this type of market. Be very cautious when using this indicator.  
free  29 Aug 2022
Note: if you are the owner of the original indicator and would like me to remove this port, please feel free to message me and I will be happy to do so. This is a port of Lancelot_Augur (a.k.a. daichiyea)'s indicator (originally designed for Crypto pairs) to confirm trends in cTrader. All credit goes to the original author - the original indicator can be found here. Since it uses exponential moving averages, it is a lagging indicator, and thus should not be used in attempts to predict reversals. However, I have found this technical to be very reliable at confirming trends and aiding trade set-ups. Changelog: - 28/08/2022: Removed unnecessary imports of directives and fixed OnBalanceVolume dependency.    
Stochastic RSI
free  28 Aug 2022
Akin to the Stochastic Oscillator, the Stochastic RSI is a technical indicator which oscillates according to change in the RSI (rather than price). It works by taking a moving average of the cumulative changes in the RSI over a given time period. The K% line is a series of values calculated by the formula:  100 x (current close - max. of RSI in given period) / (max. - min. of RSI in given period).   The D% line is a moving average over a given period of the K% line, which results in a smoother, less sensitive curve. A popular strategy is trading the crosses between the K% and D% lines according to the current market sentiment. This is slightly different to qualitiedx2's versions (#1 and #2) of the Stochastic RSI, which are unfamiliar to me - please do let me know if I've given this an incorrect title. My implementation is similar to that described here and here (like the one on TradingView's platform). Changelog: 27/08/2022 - added missing getters and setters to attributes. 28/08/2022 - removed deprecated 'PersentsK' and 'PersentsD' and implementation of the StochasticOscillator interface. Added cloud. Fixed code style. Added indicator attributes.   For scalping on very short timeframes (<M5), it is recommended to use a Stochastic Length of '8'.  Chartshots: AUDUSD, M1: Settings (3, 3, 14, 8, MovingAverageType.Simple)   AUDUSD, M5: Settings (3, 3, 14, 14, MovingAverageType.Simple)  
Warning! Executing cBots downloaded from this section may result in loss of funds. Use them at your own risk.

No uploaded.