Page 1 of 1

Tiki Stochastic Indicator

Posted: Tue Jan 04, 2022 6:10 pm
by heispark
This is called 'Tiki Stochastic' which is an indicator made for Tradovate platform. Can anyone port this to MT4? user named Medici uses it and it looks impressive. He uses (10,13,3) weighted.
EDIT:
I found its Java code:

Code: Select all

const predef = require("./tools/predef");
const meta = require("./tools/meta");
const MovingHigh = require("./tools/MovingHigh");
const MovingLow = require("./tools/MovingLow");
const SMA = require("./tools/SMA");
const EMA = require('./tools/EMA');
const WMA = require('./tools/WMA');
const MMA = require('./tools/MMA');
const HMA = require('./HMA');

const ma = {
    sma: SMA,
    ema: EMA,
    wma: WMA,
    mma: MMA,
    hma: HMA
};

class tikiStochastic {
    init() {
        this.highest = MovingHigh(this.props.kPeriod);
        this.lowest = MovingLow(this.props.kPeriod);
        this.kMA = ma[this.props.type](this.props.smoothPeriod);
        this.dMA = ma[this.props.type](this.props.dPeriod);
    }

    map(d) {
        const high = d.high();
        const low = d.low();
        const close = d.close();
        const hh = this.highest(high);
        const ll = this.lowest(low);
        const c1 = close - ll;
        const c2 = hh - ll;
        const fastK = c2 !== 0 ? c1 / c2 * 100 : 0;
        const K = this.kMA(fastK);
        const D = this.dMA(K);
        return { 
            K, 
            D, 
            overBought: this.props.overBought,
            overSold: this.props.overSold
        };
    }

    filter(d) {
        return predef.filters.isNumber(d.D);
    }
}

module.exports = {
    name: "tikiStochastic",
    title: "Tiki Stochastic",
    description: "Tiki Stochastic",
    calculator: tikiStochastic,
    params: {
        kPeriod: predef.paramSpecs.period(10),
        dPeriod: predef.paramSpecs.period(10),
        smoothPeriod: predef.paramSpecs.period(3),
        overBought: predef.paramSpecs.period(80),
        overSold: predef.paramSpecs.period(20),
        type: predef.paramSpecs.enum({
            sma: 'Simple',
            ema: 'Exponential',
            wma: 'Weighted',
            mma: 'Modified',
            hma: 'Hull'
        }, 'sma')
    },
    validate(obj) {
        if (obj.period < 1) {
            return meta.error("kPeriod", "K Period should be a positive number");
        }
        if (obj.period < 1) {
            return meta.error("dPeriod", "D Period should be a positive number");
        }
        if (obj.smoothPeriod < 2) {
            return meta.error("smoothPeriod", "Smooth period should be greater than 1");
        }
        return undefined;
    },
    inputType: meta.InputType.BARS,
    areaChoice: meta.AreaChoice.NEW,
    plots: {
        K: { title: "%K" },
        D: { title: "%D" },
        overBought: { title: "Over Bought" },
        overSold: { title: "Over Sold" }
    },
    tags: ['Tiki Tools'],
    schemeStyles: {
        dark: {
            K: predef.styles.plot("cyan"),
            D: predef.styles.plot({
                color: "red",
                lineWidth: 2
            }),
            overBought: predef.styles.plot("yellow"),
            overSold: predef.styles.plot("yellow"),
        },
        light: {
            K: predef.styles.plot("blue"),
            D: predef.styles.plot({
                color: "red",
                lineWidth: 2
            }),
            overBought: predef.styles.plot("orange"),
            overSold: predef.styles.plot("orange"),
        }
    }
};
The following is /NG 5M chart:

Re: Tiki Stochastic Indicator

Posted: Tue Jan 04, 2022 7:41 pm
by moey_dw
heispark wrote: Tue Jan 04, 2022 6:10 pm This is called 'Tiki Stochastic' which is an indicator made for Tradovate platform. Can anyone port this to MT4? uses it and it looks impressive. He uses (10,13,3) weighted.
hi more info pls where to find the code?? can u at least post everything so can be look at properly not just tiki stochastic photo & some settings lol

Re: Tiki Stochastic Indicator

Posted: Tue Jan 04, 2022 8:58 pm
by heispark
moey_dw wrote: Tue Jan 04, 2022 7:41 pm hi more info pls where to find the code?? can u at least post everything so can be look at properly not just tiki stochastic photo & some settings lol
That's Tradovate custom indicator. You can download 14 day demo version of Tradovate. I am not really familiar with this platform and how to use custom indicators. It looks Tradovate is somewhat developer oriented complex platform. However, I think that's just slightly tweaked version of Stochastics. I guess coding experts would understand by watching the screenshot image I attached. Or, anyone who are familiar with Tradovate can help share this free custom code for conversion.

Re: Tiki Stochastic Indicator

Posted: Tue Jan 04, 2022 9:35 pm
by ChuChu Rocket
heispark wrote: Tue Jan 04, 2022 8:58 pm That's Tradovate custom indicator. You can download 14 day demo version of Tradovate. I am not really familiar with this platform and how to use custom indicators. It looks Tradovate is somewhat developer oriented complex platform. However, I think that's just slightly tweaked version of Stochastics. I guess coding experts would understand by watching the screenshot image I attached. Or, anyone who are familiar with Tradovate can help share this free custom code for conversion.
This is just a Stochastics using HMA as an Averages filter and setting of 10,13,3.

You can easily replicate it using any Stochastics Averages from this site and selecting filter as Hull Moving Average, then input the settings of 10,13,3.

Re: Tiki Stochastic Indicator

Posted: Wed Jan 05, 2022 12:55 am
by Deez
Here's Stochastic of T3 with 10,13,3 ;)

Re: Tiki Stochastic Indicator

Posted: Wed Jan 05, 2022 3:32 am
by heispark
heispark wrote: Tue Jan 04, 2022 6:10 pm This is called 'Tiki Stochastic' which is an indicator made for Tradovate platform. Can anyone port this to MT4? user named Medici uses it and it looks impressive. He uses (10,13,3) weighted.
I managed to make the same setup on my MotiveWave platform..... :)

Re: Tiki Stochastic Indicator

Posted: Wed Jan 05, 2022 4:01 am
by ChuChu Rocket
heispark wrote: Wed Jan 05, 2022 3:32 am I managed to make the same setup on my MotiveWave platform..... :)
There you go :thumbup:
A nice and interesting indicator - Tiki Stochastic.