Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Quantile Price Analysis - indicator for MetaTrader 4

Jas Wu
Published by:
I Kai Wu
Views:
5565
Rating:
(25)
Published:
2022.01.16 11:02
Updated:
2022.01.16 11:21
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Calculation is:

----------------------

Calculation is current close price minus the close price of the last N(default 30) period's defined X(default 60) upper quantile &

current close price minus the close price of the last N(default 30) period's defined X(default 40) lower quantile.

If both of these value(which are displayed in histograms) are above 0 then it is uptrend, vice versa for down trend, if one of them is > 0 and one of them is < 0, then it is ranging.

-----------------------

There is also a high low mode in the inputs, Calculation is current High price minus the close price of the last N(default 30) period's defined X(default 60) upper quantile & current Low price minus the close price of the last N(default 30) period's defined X(default 40) lower quantile.

If both of these value(which are displayed in histograms) are above 0 then it is uptrend, vice versa for down trend, if one of them is > 0 and one of them is < 0, then it is ranging.

This method filters more ranging bars but also produces more lag.

-----------------------

Green Block at the 0 level means uptrend, Orange Block at the 0 level means downtrend, Gray Block at the 0 level means Ranging.


Qauntile Price Analysis

    Didi Index (Cleaned/Reversed) Didi Index (Cleaned/Reversed)

    Slow Line of the original Didi Index

    Save current chart to default template Save current chart to default template

    it saves the current chart to default template , it just helps to do it faster than a manual save. you can assign a hotkey for it. it has no confirmation and immediately saves the template, if you want it to save to a template other than default just edit the code and replace "default.tpl" to any other name you want.

    Force index volatility bands Force index volatility bands

    Force index with Volume/Volatility bands

    Elegant oscillator Elegant oscillator

    Elegant oscillator - metatrader 4 version