• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 10:11pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 10:11pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

ATR indicator of candle body ignoring wick and tail 5 replies

Is "short covering" just profit taking on the short side? 5 replies

Indicator showing net sum of short and long postitions 0 replies

Candles- fat part vs tail/stem 1 reply

Going long term (6 weeks abouts), Short on AUD/USD 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 3
Attachments: Long Tail / Short Tail indicator
Exit Attachments

Long Tail / Short Tail indicator

  • Post #1
  • Quote
  • First Post: Oct 4, 2017 12:19pm Oct 4, 2017 12:19pm
  •  Tradervinny
  • | Joined Jul 2007 | Status: Member | 4 Posts
Hi guys,

I would like to share an indicator I just developed with you.

It's based on the fact that, within a candle (so basically within a certain amount of time), markets tend to move significantly more in one direction than in the other.
Let me explain this better:
We all know how to calculate the range of a candle: HIGH-LOW.
I divide this range in two parts and call them "long tail" and "short tail", by calculating the range between the HIGH and the OPEN on one hand, and the range between the LOW and the OPEN on the other hand. The sum of those 2 ranges is obviously equal to the total range (HIGH-LOW).
Like I said before, the highest of both ranges (long tail) very often is significantly higher than the lowest (short tail).

What I also noticed is that if over a period of time (let's say the last 50 candles) the long/short tail of a candle is smaller or equal to a certain amount of pips for x% of the time, it is very likely that also AFTER that the long/short tail will be smaller or equal to the same amount of pips for the same % of the time ...
Example: if for the EUR/USD on the daily chart, we compare each candle's long/short tail with the median (which means that 50% of the time the value was smaller or equal to this number -> the median) of the long/short tail of the previous x (ex. 50) candles, we will see that in +/-50% of the cases the long/short tail of the candle will be equal or smaller than that median.

The goal of the indicator is to plot above and below the open (with this indicator we do not attempt to predict the direction of the market at the open) the short and long tail of the requested probability (50% = median, means that 50% of the time it will be smaller or equal to the plotted level, but any percentage can be inserted as a parameter).

Let's skim over the input and output variables of the indicator:

INPUT:
Plot on latest x candles: Number of candles on which you want to plot the output (can be set to infinite)
#ST hist candles: Number of historic candles (in requested timeframe, see below) to use for calculating the Short Tail
#LT hist candles: Number of historic candles (in requested timeframe, see below) to use for calculating the Short Tail
TimeFrame: Timeframe (in minutes, so daily would be 1440) of which you want to calculate the Short/Long Tail. 0 means the timeframe of the chart you use the indicator on. Example: If you want to see the daily Long/Short tail on a 15M chart, drop the indicator on a 15m chart and set this parameter to 1440.
ST Percentile: In how many % of the requested amount of previous candles (see above) has the Short Tail to be equal or smaller to the Short Tail value that will be plotted ?
LT Percentile: In how many % of the requested amount of previous candles (see above) has the Long Tail to be equal or smaller to the Short Tail value that will be plotted ?
PCT or PTS: Do you want to calculated the Tails as a percentage (PCT) or in pips/points (PTS) ?
Included weekdays (1-7) for hist: If you only want to take into account historic candles of certain weekdays, input the day(s) you want. Ex: 1,2,3,4 Leave this empty if you do not want to filter out any days. Btw: 1=Monday ..... 7=Sunday.
Included months (1-12) for hist: If you only want to take into account historic candles of certain months, input the month(s) you want. Ex: 1,2,3,4 Leave this empty if you do not want to filter out any months.
Hist date range start (included) & Hist date range end (excluded): If you only want to use historic candles of a certain period of time to calculate the Tails, enter it here. Leave it on 1/1/1970 if you don't want the limit the time.
Hist time range start (included) & Hist time range end (included): If you only want to use historic candles of a certain time during the day, insert the start and the end of the time range you want. Only the time entered here is taken into consideration, not the date. Leave it on 1/1/1970 if you don't want the limit the time.

OUTPUT:
Short Tail +: This is the short tail (calculated as per the inputted variables) plotted above the open
Short Tail -: This is the short tail (calculated as per the inputted variables) plotted below the open
Long Tail +: This is the long tail (calculated as per the inputted variables) plotted above the open
Long Tail -: This is the long tail (calculated as per the inputted variables) plotted below the open
LT candle: This is the Long Tail of the candle you are hovering over (not plotted, only shown in the data window)
ST candle: This is the Short Tail of the candle you are hovering over (not plotted, only shown in the data window)
Number candle: This is Metatraders' number of the candle you are hovering over (not plotted, only shown in the data window). Reminder: the most recent candle is 0, the one before is 1, .......(not plotted, only shown in the data window)
First hist candle: This is Metatraders' number of most recent historic candle (of the requested timeframe) used the calculate the Long/Short tail (not plotted, only shown in the data window)
Last hist candle LT: This is Metatraders' number of oldest historic candle (of the requested timeframe) used the calculate the Long Tail (not plotted, only shown in the data window)
Last hist candle ST: This is Metatraders' number of oldest historic candle (of the requested timeframe) used the calculate the Short Tail (not plotted, only shown in the data window)
# hist candles LT: Number of historic candles used to calculate Long Tail. This can be lower than the requested number of historic candles to use, for example if you set some filters in the input parameters (not plotted, only shown in the data window)
# hist candles ST: Number of historic candles used to calculate Short Tail. This can be lower than the requested number of historic candles to use, for example if you set some filters in the input parameters (not plotted, only shown in the data window)
Open: This is the open based on which the Tails are plotted. For example: if you visualize daily Tails on the 15m chart, this is the daily open and remains the same throughout the day on the 15m chart and changes at the open of a new daily candle (plotted).

I hope I have been able to explain quite clearly what I mean and what the indicator does :-).
Please let me know what you think or if you have any questions/suggestions.

Cheers !

P.S. For the programmers among you: I am a Belgian living in Italy, so in the code I write in Dutch, English and Italian at the same time , sorry for that ...
Attached Image (click to enlarge)
Click to Enlarge

Name: Senza titolo.png
Size: 80 KB
Attached File
File Type: mq4 Coda Lunga e Corta.mq4   33 KB | 302 downloads
Winners never quit and quitters never win.
  • Post #2
  • Quote
  • Edited at 4:40pm Oct 4, 2017 4:17pm | Edited at 4:40pm
  •  iamsovereign
  • Joined Jul 2013 | Status: Member | 857 Posts
very interesting idea......... I will ck this out and give some feed back

May I ask - have you developed a trading method based on the above description of how the indicator works?

I thanks for posting the concept
Live today like theres no tomorrow-- Prioritize like you will die today
1
  • Post #3
  • Quote
  • Oct 4, 2017 10:57pm Oct 4, 2017 10:57pm
  •  ramzam
  • Joined Nov 2015 | Status: Member | 2,880 Posts
interesting.... in diff method but same like high - open and close - low.. which ever is small taken for 5 previous day average for breakout today ....
Success is a Journey Not a Destination....... kind regards ramzam
  • Post #4
  • Quote
  • Oct 4, 2017 11:33pm Oct 4, 2017 11:33pm
  •  ramzam
  • Joined Nov 2015 | Status: Member | 2,880 Posts
H4 is good ... so on top side long tail+ can take short.... long tail- can take buy ...
same for short tail+ and short tail- ...................am i right
Attached Image (click to enlarge)
Click to Enlarge

Name: Image1.png
Size: 18 KB
Success is a Journey Not a Destination....... kind regards ramzam
  • Post #5
  • Quote
  • Oct 5, 2017 6:17pm Oct 5, 2017 6:17pm
  •  Sidric
  • | Joined Jan 2014 | Status: Member | 19 Posts
Great indicator, thanks for the effort
  • Post #6
  • Quote
  • Oct 6, 2017 6:26am Oct 6, 2017 6:26am
  •  Tradervinny
  • | Joined Jul 2007 | Status: Member | 4 Posts
Hi All,

This is a highly parametrizable indicator but not a trading method. The indicator can give you clues which, combined with other clues, can give you an edge.
Simple example: if after the open, the price goes down to the Short Tail level and forms a doji over there, it might be a good idea to go long and use the Long Tail on the other side of the open as a TP target. As a SL you could use for example the 90% Short Tail percentile below the open (if the price goes down that far, it is unlikely that the Short Tail will be the move down from the open).

Good luck to all :-) !
Winners never quit and quitters never win.
  • Post #7
  • Quote
  • Oct 17, 2018 10:13pm Oct 17, 2018 10:13pm
  •  Jesse292
  • | Joined Aug 2018 | Status: Member | 121 Posts
[quote = ramzam; 10357776] H4 es bueno ... así que en la parte superior, la cola larga + puede ser corta ... la cola larga - puede comprar ... lo mismo para la cola corta + y la cola corta- ....... ............ tengo razón {imagen} [/ quote]
How it works?
  • Post #8
  • Quote
  • Last Post: Oct 18, 2018 12:01am Oct 18, 2018 12:01am
  •  Anusragger
  • | Joined Nov 2012 | Status: No Impact Member (bottom 1%) | 736 Posts
Quoting Tradervinny
Disliked
Hi guys, I would like to share an indicator I just developed with you. It's based on the fact that, within a candle (so basically within a certain amount of time), markets tend to move significantly more in one direction than in the other. Let me explain this better: We all know how to calculate the range of a candle: HIGH-LOW. I divide this range in two parts and call them "long tail" and "short tail", by calculating the range between the HIGH and the OPEN on one hand, and the range between the LOW and the OPEN on the other hand. The sum of those...
Ignored
Do you live in Udine?
  • Platform Tech
  • /
  • Long Tail / Short Tail indicator
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021