jani's avatar
Jan
“Markets can remain irrational longer than you can remain solvent.” ― John Maynard Keynes // https://www.youtube.com/watch?v=8GP87dgTqF8
Jan 's avatar

Info

Username:jani
Name:Jan
Member since: 05 Apr 2019
Country:Finland

Favorite symbols:

GBPUSD, GBPJPY, EURUSD, EURJPY, USDJPY, AUDUSD

About

Developing automated trading systems in cTrader/cAlgo environment. Involved in trading FX market since 1999. A career in private banking, insurance and portfolio management. Telegram: @Fibonacci2011

Signature

“Markets can remain irrational longer than you can remain solvent.” ― John Maynard Keynes // https://www.youtube.com/watch?v=8GP87dgTqF8

Last Algorithm Comments

@Harmonics Indicator V1.0:  27 Mar 2020, 20:43


There are pretty decent Gartley indicators open-source on MT4. Anyone interested to do a programming project on Freelancer.com to convert to cAlgo send me message Telegram: @Fibonacci2011.     I can do some programming myself, but I think Gartley pattern is beyond my capabilities.

@Cyf_TVI (Tick Volume Indicator):  20 Mar 2020, 18:31


Hello Cyfer, Thank for sharing. This is a really clever way to look at tick volume!

@Currency Correlation:  17 Mar 2020, 17:55


Great job, Thanks!   I wonder how to make this work on tick charts also?

@Absolute Strength:  06 Mar 2020, 19:23


... you can also replace/add to avoid wrong mode values:           [Parameter("Mode", DefaultValue = 1, MaxValue = 2, MinValue = 1)]         public int mode { get; set; }

@Absolute Strength:  06 Mar 2020, 19:16


Thanks for sharing. I noticed that the mode parameter was not working correctly, and Mode =2 was is not showing  All you need to do is just void this line  mode = mode > 2 ? 2 : mode < 1 ? 1 : mode; as:   // mode = mode > 2 ? 2 : mode < 1 ? 1 : mode; Now both modes are showing

@trend eXecute:  04 Feb 2020, 23:07


Taking about PROOF of SCAM!! Here we go: Here is a list of "profiles" that praise the indicator. Quite strange that ALL of these profiles are created the same day these "people" post the first and only comment to the forum. I my view quite clear that someone is creating these fake profiles to promote the commercial indicator! We do not need these charlatans and snake oil sales people at cTarder community!! igor.kozlowski.rain https://ctrader.com/users/profile/30400  - Joined: January 5th - Posted first and only comment: January 5th basiabieniek8 https://ctrader.com/users/profile/30404 - Joined: January 5th - Posted first and only comment: January 5th d.gerblich https://ctrader.com/users/profile/30405- Joined: January 5th - Posted first and only comment: January 5th myway.msommer https://ctrader.com/users/profile/30406 - Joined: January 5th - Posted first and only comment: January 5th multimarecki https://ctrader.com/users/profile/30408 - Joined: January 5th - Posted first and only comment: January 5th pawelgawron434 https://ctrader.com/users/profile/30409 - Joined: January 5th - Posted first and only comment: January 5th     pawlo121 https://ctrader.com/users/profile/30410 - Joined: January 5th - Posted first and only comment: January 5th andrzej.mrozinski https://ctrader.com/users/profile/30412 - Joined: January 6th - Posted first and only comment: January 6th ostatnisiew https://ctrader.com/users/profile/30425 - Joined: January 6th - Posted first and only comment: January 6th   Ps. If you take a look at high-quality trading communities like Big Mike's futures.io/bigmiketrading/ these snake oil salesmen are thrown out from there faster than you can say "open source code converted to commercial indicator..."   I sincerely hope cTrader keeps the community clean of people who act dishonestly!

@trend eXecute:  04 Feb 2020, 22:38


.. by the way the indicator these people are selling is nothing else but a coloured moving average. by the looks of it it is some sort of MA with (exponential) smoothing, plenty of these available for free!

@trend eXecute:  04 Feb 2020, 22:36


Here is my proof: take a look at profiles:  d.mrozinski   & d.gerblich  & igor.kozlowski.rain   & marekgoreki - etc.  They are all created January 5th, the same day they give their awesome praise for the amazing indicator.  Also, these people have absolutely no other interaction with the community, isn't this quite strange???  Clearly these are fake profiles and if cTrader moderator would take a look they would likely to find out that these profiles are created from same the IP address...

@trend eXecute:  04 Feb 2020, 19:30


Quite strange so many of these "positive comments" appear on the same day many of these people are registered and they all have no other comments or activity than praising this paid indicator..   Don't fall for the shameless fake promotions of this scammer!

@Retail Sentiment:  21 Jan 2020, 22:28


Hello, if you're selling indicators, please do not label them as "free"

Last Forum Posts

@Problem with Visual Studio compiling cBot while referencing custom indicator:  03 Dec 2021, 14:37


I FOUND THE SOLUTION!!

Everything works fine if I just copy the indicator code and rebuild a new indicator with a new name and reference this new indicator with cBot. With the new build I used the default namespace instead of the original indicator. 

I suspect that there is something in cBot referencing protocol that is not translated to Visual Studio as the indicator name is changed after that indicator has been referenced inside cBot. So if you change the indicator name after referencing best just to build a new indicator and build new references in the cBot.

What did I learn from this?  Always rebuild from fresh before start pulling my hair out... LOL

Ps.  It is also possible that the issue is with the namespace definitions

Below was from the indicator I had problems with           

 using System;
using System.Linq;
using System.Text;
using System.Threading;
using System.Collections.Generic;
using System.Reflection;
using System.Globalization;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;       
using System.IO;
namespace cAlgo.Indicators


And below is the namespace currently provided with the default template:

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo


 

@Problem with Visual Studio compiling cBot while referencing custom indicator:  03 Dec 2021, 13:26


Hi,

thank you very much for your reply.

I was able to compile the earlier version of the cBot in Visual Studio 2017 just fine. This earlier cBot was referencing an earlier version of the indicator

The code of the earlier indicator which was working fine. For some reason VS is not able to recognise the reference that is working fine in cAlgo.

I  recorded a 2-minute video showing how Visual Studio is not recognizing the indicator reference:

 Code for the Working indicator is below, but I think this is not an issue due to code but something to do with cAlgo vs VS referencing differences...

amusleh said:

Hi,

Is it just this cBot or other cBots also have this issue with Visual Studio? can you create a new cBot and compile it on Visual studio?

@Problem with Visual Studio compiling cBot while referencing custom indicator:  03 Dec 2021, 01:26


Hello,

I have a problem compiling a cBot in Visual Studio 2017. 

cBot is referencing to a custom indicator and all reference management has already been done at cTrader Automate and compiling/building at Ctrader Automate was working just fine.

After compiling at cAlgo I get an error message at Visual Studio:  Type or namespace name <IndicatorName...> could not be found (are you missing a using directive or an assembly reference?)

Same exact cBot code compiles just fine in cTrader Automate:

@Daily Bar (HLC) changing at 21 o'clock in backtesting:  07 Nov 2021, 09:46


... I found a similar issue at :

The confusing matter is that my charts are shown in UTC and the cbot is set to trade in UTC, however, the day changes still at 21 o'clock (according to UTC +3 zone day change).

And it seems like there is no way to set the TIME upon which the Daily candles are generated? 

@Daily Bar (HLC) changing at 21 o'clock in backtesting:  07 Nov 2021, 08:22


Hello,

I noticed that Daily bar values (High, Low, Close) are changing around 21 o'clock instead of 24 o'clock as they should.

Below is the backtesting log that shows Daily HLC bar values changing. 

:

In terms of relevant code, I have:

using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class FreelancerTestBot : Robot

...

              private MarketSeries Daily;
              public double high, low, close;

...

  protected override void OnBar()
        {
            Daily = MarketData.GetSeries(TimeFrame.Daily);
            high = Daily.High.Last(1);
            low = Daily.Low.Last(1);
            close = Daily.Close.Last(1);

@Trailing Stop Loss with Trailing Distance:  08 Apr 2020, 19:49


Thanks for sharing your code. Have you checked that this code works?

Initially, I wanted to add "Step" to the trailing stop to determine the minimum distance price has to move in favour of the position for the trailing stop to be adjusted. This is just to save resources in case adjusting  SL on every tick is not necessary. 

@Problem with MTF ADX indicator:  16 Mar 2020, 02:20


Thanks, I think that fixed it! :)

@Problem with MTF ADX indicator:  16 Mar 2020, 00:50


Hello Firemyst,

Thank you very much for your reply.

Seems like your suggestion:

_dms = Indicators.DirectionalMovementSystem(MarketData.GetBars(Bars.TimeFrame, SymbolName), Period);

draws the indicator to the current bar even when readingh higher frames, however I think the values are in correct.

Below ADX on M10 reading current frame (M10)

And below ADX with same settings on M5 chart reading M10 TF:

I believe the ADX peak should be close to the same point in M5 as in M10 as both indicators read M10 TF with the same period setting.

@How I Can Sleep() My Robot:  11 Mar 2020, 23:55


@Problem with MTF ADX indicator:  10 Mar 2020, 10:39


Thanks for your comment. The issue is that maTr = Indicators.MovingAverage(AnotherTimeFrame.ClosePrices, Period, MAType); should calculate other function with another TF calculations and not close price from another TF.

I tried to solve the issue by just using the ADX API definition, but it seems like I do not get any output value on the current bar when indicator is reading higher TF. Below on H1 chart reading D1, sam,e issue with any higher TF,empty output range just get smaller the closer  you get to current TF.

Code:

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = false, ScalePrecision = 0, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class DMS : Indicator
    {
        [Parameter("Period", DefaultValue = 14, MinValue = 1)]
        public int Period { get; set; }

        [Parameter("Treshold", DefaultValue = 20, MinValue = 1)]
        public int treshold { get; set; }

        [Parameter(" Timeframe")]
        public TimeFrame AnotherTimeFrame { get; set; }

        [Parameter("MA Type", DefaultValue = MovingAverageType.WilderSmoothing)]
        public MovingAverageType MaType { get; set; }

        [Output("ADX", Color = Colors.Cyan)]
        public IndicatorDataSeries ADX { get; set; }

        [Output("DI+", Color = Colors.Green)]
        public IndicatorDataSeries DiPlus { get; set; }

        [Output("Di-", Color = Colors.Red)]
        public IndicatorDataSeries DiMinus { get; set; }

        [Output("TresholdLine", Color = Colors.Yellow, LineStyle = LineStyle.Lines)]
        public IndicatorDataSeries tresholdline { get; set; }

        private DirectionalMovementSystem _dms;


        protected override void Initialize()
        {
            _dms = Indicators.DirectionalMovementSystem(Period);
        }

        public override void Calculate(int index)
        {

            var indexTF = GetIndexByDate(MarketData.GetSeries(AnotherTimeFrame), MarketSeries.OpenTime[index]);

            DiPlus[index] = _dms.DIPlus[indexTF];
            DiMinus[index] = _dms.DIMinus[indexTF];

            ADX[index] = _dms.ADX[indexTF];

            tresholdline[index] = treshold;

        }

        private int GetIndexByDate(MarketSeries series, DateTime time)
        {
            for (int i = series.Close.Count - 1; i > 0; i--)
            {
                if (time == series.OpenTime[i])
                    return i;
            }
            return -1;
        }

    }
}

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.
by jani
free  01 Dec 2021
Price Pressure Momentum (PPM) is a proprietary indicator designed by the trader and portfolio manager veteran Bob Kendall (The Kendall Report - @PortfolioXpert) back in 80's. PPM is quite simple indicator measuring SMA percentage change and deriving an SMA line (Brown color line) from that change. This change SMA is compared to two derivatives/signal lines I have written this code based on the author's explanation and the visual charts of the PPMs I have seen. You can see more about PPM from the author himself at https://www.youtube.com/watch?v=9JJxlpG50P0 Default values for the main SMA Period are 10,21 and 40. I'm not sure about the two derived SMAs, I have tried to visually fit them to the charts I have seen and for 10 main SMA, 10 and 21 derived SMAs (SmoothPeriod & SmoothPeriod2)  seem to fit quite well.   I use this indicator daily with my manual trading as well as automated systems.  
Connors RSI Plus
  0
  0
  181
by jani
free  31 Oct 2021
============================================================================================= =======================================  Connors RSI  ======================================= ============================================================================================= The first component of the Connors RSI is the classic Relative Strength Index (RSI) itself.  This indicator is also commonly referred to as Wilder’s RSI. The RSI can return a value  of 0 to 100. Connors uses a default value of 3 Periods for his RSI Calculation. The second component of the Connors RSI is called the “streak”. This basically determines  a numerical value based on the relationship of close price values. Positive numbers indicate  an upward streak (up bar), and negative numbers indicator a downward streak(down bar).  Once the streak duration values have been determined, the RSI is applied to the streak,  similar to applying RSI to price values. Connors uses a 2 period RSI by default in order to evaluate the streak. The third component of the Connors RSI is to look at the size of the current day’s price  change relative to previous price changes. This calculation is referred to as “Percent Rank”, or percentile. This tells us the percentage of values in the look-back period that are less  than the current value. So the Percent Rank is the number of values in the look back period that are less than the current value, divided by the total number of values Connors uses a default look back period of 100 bars for his Percent Rank calculation. - 20200118  Added Up/Down bar counter condition to include flat bars according to the previous bar - 20200210  Added Tick Volume feature - 20200210  Added MA Smoothing - 20200309  Added  "Use NetBars RSI" feature. Counting RSi of the Net Bars  
Multi MA Normalised
  0
  0
  1144
by jani
free  04 Feb 2020
The indicator normalises all standard moving averages as well as Tilson T3 Moving Average    Standard moving averages can be smoothed by the MA Factor (values range: 1-6) For example, EMA with Factor 1 is normal EMA, by using factor 2 we get EMA of EMA, by using factor 3 gives EMA of EMA of EMA etc. There is also a feature to add a final smoothing. All smoothing features apply only to MAs, not to T3 The idea of the indicator is to capture price cycles using two different cycle periods. Shorter cycle show  short/medium-term price cycles as longer cycle confirms the trend direction and longer-term price cycles.  
Multi Moving Average
  0
  2.5
  2066
by jani
free  05 Feb 2020
This is the one and only MA you ever need!   The indicator includes all standard moving averages as well as Tilson T3 Moving Average and KijunSen line    Standard moving averages can be smoothed by the MA Factor (values range: 1-6) For example, EMA with Factor 1 is normal EMA, by using factor 2 we get EMA of EMA, by using factor 3 gives EMA of EMA of EMA etc. Min Threshold feature filters out MA/T3 slopes that are less than the threshold value.  This feature can be used for example to filter out flat/non-trending period with higher period MAs   Slope LookBack feature (used with Min Threshold feature) calculates the number of bars that must qualify the Min Threshold value. With this feature we can filter out periods where slope is  turned up or down for a short period of time. E.g. If Slope LookBack value is set to 5, feature  will filter out all non-qualifying up or down slopes that are equal or less than 5 bars in length. The Kijun-sen(Japanese for Reference / Baseline) is an indicator and a component of the Ichimoku Kinko Hyo method of technical analysis, which is also known as the Ichimoku cloud. The original Kijun-sen is the midpoint price of the last 26-periods, and therefore an indicator of  short- to medium-term price momentum. The indicator aids in assessing the trend. Calculation of the KijunSen Line Find the highest price over the last determined periods. Find the lowest price over the last determined periods. Combine the high and low, then divide by two. Update the calculation after each period ends. ATR Channels can be added to any moving average. ATR Channels can also be added to KijunSen line  if "Use ATR Channels" and "Allow ATR on KijunSen" are both true. The Triple Exponential Moving Average (T3) developed by Tim Tillson attempts to offers a moving average with better smoothing then traditional exponential moving average. It incorporates a smoothing technique which allows it to plot curves more gradual than ordinary moving averages and with a smaller lag.  Its smoothness is derived from the fact that it is a weighted sum of a single EMA,  is formed, the price action will stay above or below the trend during most of its  progression and will hardly be touched by any swings. Thus, a confirmed penetration of  the T3 MA and the lack of a following reversal often indicates the end of a trend. Many custom moving averages and/or MA crossovers can be synthesized by adjusting T3 Period & Factor                                             !!! NOTE !!!                 The  Min Threshold &  Slope LookBack features do not apply to KijunSen.                 KijunSen line can be used in addition to an MA/T3-line.                 Use MA & Use T3 are mutually exclusive.          !!! When using T3 to get correct values use MA Type as Exponential !!!    
MACD Color
  1
  5
  3233
by jani
free  10 Feb 2020
This is a modified version of the traditional MACD indicator. Cut-Off levels indicate levels where MACD and signal line difference (=histogram) is greater than the set level. I have also added a feature to count MACD from any standard moving average.   Version update  2020/1/20  *    Added tick volume feature. Increasing tick volume factor increases tick volume relative weight when calculating the MAs  *    Replaced lookback with MA smoothing feature. LB and SMA accomplish the same thing, MA smoothing now more versatile. Version update  2020/2/3  *   Added zero lag feature Version update  2020/2/10  *   Removed Tick Volume, error in logic   =====================================================================================================                                                                                      SETTINGS ===================================================================================================== Traditional MACD: MACD periods: 12 & 26 // Signal period: 9  // MA Type: Exponential Linda Raschke: MACD periods: 3 & 10 // Signal period: 16  // MA Type: Simple Awesome Oscillator: MACD periods: 5 & 34 // Signal period:N/A  // MA Type: Simple  
by jani
free  21 Jan 2020
This is a modified version of the famous Awesome Oscillator created by Bill Williams. The indicator will show the cumulative sum of the difference between the fast and slow SMA (cumulative sum of the normal AO output) for the selected lookback period.  Lookback value 0 & 1 will void function and return normal AO I have also added a moving average that reads the AO output as input (MA of AO)..   This indicator can be replaced with my more advanced version of MACD  MACD Color Indicator | Algorithmic Forex Trading | cTrader Community In the picture below, above normal AO and below AO Plus with lookback value of 25 bars. Lookback feature attempts to better interpret the market up and down cycles and longer-term momentum.  
KijunSen 3X
  0
  0
  1449
by jani
free  11 Dec 2019
Version uploaded: 2019/11/27 Version updated: 2019/12/11 Used API Functions Maximum & Minimum https://ctrader.com/api/reference/functions instead of the FOR-loops to get  Market Series High & Low. Should result in much fewer calculations  by this indicator   I have used Kijun-Sen as a baseline for different trading strategies.   I have simply just combined 3 Kijun-Sen lines and added optional moving average smoothing (MA period 0 will void smoothing). Original Kijun-Sen line uses 26 periods, I have chosen Fibonacci sequence numbers for the default periods. Idea is to use Kijun-Sen lines a little bit like normal MAs combined with Ichimoku Cloud idea. Meaning that when lines are close to each other the resistance/support is stronger than when they are far from each other (dense cloud vs. scattered cloud). e.g price crossing together closely coiled lines can be thought of as more valid breakout than if lines are scattered far apart. Price inside lines/cloud => no-mans-land. Let me know if you find new ideas about how to use this indicator.  What is the Kijun-Sen (Japanese for Reference / Baseline)? The Kijun-sen is an indicator and important component of the Ichimoku Kinko Hyo method of technical analysis, which is also known as the Ichimoku cloud. The original Kijun-sen is the midpoint price of the last 26-periods, and therefore an indicator of short- to medium-term price momentum. The indicator aids in assessing the trend, and can also be useful for identifying trading opportunities when combined with the other components of the Ichimoku cloud. How to Calculate the original Kijun Line (Base Line) Find the highest price over the last determined periods. Find the lowest price over the last determined periods. Combine the high and low, then divide by two. Update the calculation after each period ends.   Follow cTrader Telegram group at https://t.me/cTraderCommunity; it's a new community but it will grow fast, plus everyone can talk about cTrader indicators and algorithm without restrictions, though it is not allowed to spam commercial indicators to sell them. There's also a Discord Server now @ https://discord.gg/5GAPMtp  
Kijunsen X3 Normalised
  1
  5
  1412
by jani
free  19 Feb 2020
I have used Kijun-Sen (Overlay version) for example as a baseline for different trading strategies. I wanted to take a different look at this very basic and simple indicator and see what else it could do... I have combined 3 Kijunsen lines that are normalized as oscillators (normally Kijun-Sen line is drawn to the chart as an overlay indicator). I have also added moving average smoothing (MA period value 0 voids smoothing). Original KijunSen uses 26 periods, I have chosen Fibonacci sequence numbers for the default periods. My initial idea was to use this for mean reversion strategies looking for the faster lines to diverge from the slower lines. The oscillator can also be used during a trend trade to get in on a pullback (fast pulling away from slow, slow showing trend strength). Let me know if you find new ideas about how to use this indicator.  What is the Kijun-Sen (Japanese for Reference / Baseline)? The Kijun-sen is an indicator and important component of the Ichimoku Kinko Hyo method of technical analysis, which is also known as the Ichimoku cloud. The original Kijun-sen is the midpoint price of the last 26-periods, and therefore an indicator of short- to medium-term price momentum. The indicator aids in assessing the trend, and can also be useful for identifying trading opportunities when combined with the other components of the Ichimoku cloud. How to Calculate the original Kijun Line (Base Line) Find the highest price over the last 26 periods. Find the lowest price over the last 26 periods. Combine the high and low, then divide by two. Update the calculation after each period ends.                                                                 Version updates: ===========================  2019/12/11 Used API Functions Maximum & Minimum https://ctrader.com/api/reference/functions instead of the FOR-loops to get  Market Series High & Low. Should improve efficiency. 2020/2/20 Added  "Use Mean High/Low" & "Use Average" as a different way of calculating the normalisation. Follow cTrader Telegram group at https://t.me/cTraderCommunity; it's a new community but it will grow fast, plus everyone can talk about cTrader indicators and algorithm without restrictions, though it is not allowed to spam commercial indicators to sell them. There's also a Discord Server now @ https://discord.gg/5GAPMtp     =================================================================================   Copyright © 2020, Fibonacci2011   Developer: Fibonacci2011 // https://ctrader.com/users/profile/23066   Telegram:  @Fibonacci2011 =================================================================================  
by jani
free  09 Mar 2020
This indicator is a combination of RSI, CCI, Stochastic, DeMarker and Money Flow indicators Indicator simply calculates the averaged values with adjustable weighting. Stochastics is calculated from K% only. You can omit oscillator by inputting weight = 0. Version updated: 2019/11/06 Normalised CCI values to fit between 0-100 Added "Multiply All Periods" parameter, which will multiply all oscillator periods by the chosen value Version updated: 2020/2/10 cTrader 3.7 compatible. Added moving average smoothing and signal. If "Average Smooth Period" set to 1 there is no smoothing. Converted "Multiply All Periods" to double, conversion back to an integer by Convert.ToInt32(Period * MultAll) Follow cTrader Telegram group at https://t.me/cTraderCommunity; it's a new community but it will grow fast, plus everyone can talk about cTrader indicators and algorithm without restrictions, though it is not allowed to spam commercial indicators to sell them. There's also a Discord Server now @ https://discord.gg/5GAPMtp
by jani
free  11 Dec 2019
  Version Update  2019.12.11  Corrected small error in average slope calculation  ///  "for (var i = index - end; i < index - start; i++)"  insted of  "for (var i = index - end; i =< index - start; i++)"   T3 Dynamics indicator attempts to measure T3 acceleration and velocity within the lookback period. Histogram: Acceleration  Line: Velocity   --- ! You should first be familiar with Tilson T3 indicator logic and behaviour before you try to use this indicator ! ---   References:  T3 Moving Average https://ctrader.com/algos/indicators/show/2044.  Dynamics calculation logic is the same as in MA Dynamics indicator https://ctrader.com/algos/indicators/show/2008   Follow cTrader Telegram group at https://t.me/cTraderCommunity; it's a new community but it will grow fast, plus everyone can talk about cTrader indicators and algorithm without restrictions, though it is not allowed to spam commercial indicators to sell them. There's also a Discord Server now @ https://discord.gg/5GAPMtp
T3 Moving Average
  0
  5
  1585
by jani
free  12 Dec 2019
Posted: Oct 30, 2019 Version Update  2019.12.11  Corrected small error in average slope calculation  ///  "for (var i = index - end; i < index - start; i++)"  insted of  "for (var i = index - end; i =< index - start; i++)"   Description The Triple Exponential Moving Average (T3) developed by Tim Tillson attempts to offer a moving average with better smoothing then traditional exponential moving average. It incorporates a smoothing technique which allows it to plot curves more gradual than ordinary moving averages and with a smaller lag. Its smoothness is derived from the fact that it is a weighted sum of a single EMA, double EMA, triple EMA and so on. When a trend is formed, the price action will stay above or below the trend during most of its progression and will hardly be touched by any swings. Thus, a confirmed penetration of the T3 MA and the lack of a following reversal often indicates the end of a trend. I have added up & down colors and  a Min Threshold % factor (generally try values below 0.01) to filter out T3 “flat” periods. Min Threshold %  calculates the minimum accepter slope % change between start & stop bars. The filtered out slope is shown in grey. Slope filter is mainly for system development purposes. Formula The Triple Exponential Moving Average (T3) of the time series 't' is: EMA1 = EMA(x,Period) EMA2 = EMA(EMA1,Period) GD = EMA1*(1+vFactor)) - (EMA2*vFactor) T3 = GD (GD ( GD(t, Period, vFactor), Period, vFactor), Period, vFactor); Where vFactor is a volume factor between 0 and 1 which determines how the moving averages responds. A value of 0 returns an EMA. A value of 1 returns DEMA. Tim Tillson advised or preferred value of 0.7. For longer periods (above 100) to filter out non-trending markets, I prefer to use values between 0-0.3. Many different moving averages can be synthesized by T3 by adjusting Period and vFactor. How to use .The T3 Moving Average generally produces entry signals similar to other moving averages and thus is traded largely in the same manner. Here are several assumptions: If the price action is above the T3 Moving Average and the indicator is headed upward, then we have a bullish trend and should only enter long trades (advisable for novice/intermediate traders). If the price is below the T3 Moving Average and it is edging lower, then we have a bearish trend and should limit entries to short. Below you can see it visualized in a trading platform. Although the T3 MA is considered as one of the best swing following indicators that can be used on all time frames and in any market, it is still not advisable for novice/intermediate traders to increase their risk level and enter the market during trading ranges (especially tight ones). Thus, for the purposes of this article, we will limit our entry signals only to such in trending conditions. Once the market is displaying trending behaviour, we can place with-trend entry orders as soon as the price pulls back to the moving average (undershooting or overshooting it will also work). As we know, moving averages are strong resistance/support levels, thus the price is more likely to rebound from them and resume its with-trend direction instead of penetrating it and reversing the trend. And so, in a bull trend, if the market pulls back to the moving average, we can fairly safely assume that it will bounce off the T3 MA and resume upward momentum, thus we can go long. The same logic is in force during a bearish trend. And last but not least, the T3 Moving Average can be used to generate entry signals upon crossing with another T3 MA with a longer trackback period (just like any other moving average crossover). When the fast T3 crosses the slower one from below and edges higher, this is called a Golden Cross and produces a bullish entry signal. When the faster T3 crosses the slower one from above and declines further, the scenario is called a Death Cross and signifies bearish conditions. Below a picture of two T3 indicators with different periods: Follow cTrader Telegram group at https://t.me/cTraderCommunity; it's a new community but it will grow fast, plus everyone can talk about cTrader indicators and algorithm without restrictions, though it is not allowed to spam commercial indicators to sell them. There's also a Discord Server now @ https://discord.gg/5GAPMtp  
by jani
free  01 Dec 2019
A combination of Commodity Channel Index , Bollinger Bands and Moving Averages. This is my modification of the original Traders Dynamic Index https://ctrader.com/algos/indicators/show/215 (Thanks go to fzlogic !!). Original version uses RSI as the base indicator, I use CCI instead. Two MAs and BB values are calculated from CCI.  CCI is a bit more responsive than RSI, so it is recommended to use higher period values than you would use in RSI. With CCI you get more signals which naturally result also more false signals.   Traditional Strategy: Buy: The Price line is above the Signal line and above the middle Bollinger Band line. Sell: The Price line is below the Signal line and below the middle Bollinger Band line. -------------- Mean Reversion & Reversal Strategies: Buy: Look for MAs lower-level crossing as in any normal oscillator oversold strategy.  Sell: Look for MAs upper-level crossing as in any normal oscillator overbought strategy.  Extra confirmation with slower MAs diverging from faster and pointing toward trend direction. --------------   More Advanced Strategy: Look CCI to be below 0-level and below BB midline also look for weak CCI retrace where the price is not following CCI retrace - sell into this weakness. Use the opposite logic for buy. Also look for Price and Signal line to refuse BB & 0-level crossing, look to trade with BB-middle trend.   Follow cTrader Telegram group at https://t.me/cTraderCommunity; it's a new community but it will grow fast, plus everyone can talk about cTrader indicators and algorithm without restrictions, though it is not allowed to spam commercial indicators to sell them. There's also a Discord Server now @ https://discord.gg/5GAPMtp
Warning! Executing cBots downloaded from this section may result in loss of funds. Use them at your own risk.

No uploaded.