To be coded:
The idea is to create an indicator that is able to identify the underlying market condition. There are 2 main conditions, a trending and a ranging market.
The following is how to determine the different conditions:
Close-low (of Bull candle)= Bullish pips
Close-low (of Bear candle)= Bullish pips
High-Close (of Bull candle)= Bearish pips
High-Close (of Bear candle)= Bearish pips
Total Bullish Pips of x Period/Total of x Period Pips = y
Total Bearish Pips of x Period/Total of x Period Pips = z
If y is greater than z, it's more bullish then bearish. If z is greater than y, it's more bearish then bullish.
y*100 = % of Bullish Pips
z*100 = % of Bearish Pips
Bull Pip% -Bear Pip% = x or -x
Below is how to classify the different pip percentages:
0 to 25/ Major Bullish Range
25 to 50/ Minor Bullish Range
50 to 75/ Minor Bullish Trend
75 to 100/ Major Bullish Trend
-0 to -25/ Major Bearish Range
-25 to -50/ Minor Bearish Range
-50 to -75/ Minor Bearish Trend
-75 to -100/ Major Bearish Trend
The pips% should be plotted on a 100 to -100 histogram. The classification label should be displayed in the top right corner of the chart and should only change at the close of the last bar.
The idea is to create an indicator that is able to identify the underlying market condition. There are 2 main conditions, a trending and a ranging market.
The following is how to determine the different conditions:
Close-low (of Bull candle)= Bullish pips
Close-low (of Bear candle)= Bullish pips
High-Close (of Bull candle)= Bearish pips
High-Close (of Bear candle)= Bearish pips
Total Bullish Pips of x Period/Total of x Period Pips = y
Total Bearish Pips of x Period/Total of x Period Pips = z
If y is greater than z, it's more bullish then bearish. If z is greater than y, it's more bearish then bullish.
y*100 = % of Bullish Pips
z*100 = % of Bearish Pips
Bull Pip% -Bear Pip% = x or -x
Below is how to classify the different pip percentages:
0 to 25/ Major Bullish Range
25 to 50/ Minor Bullish Range
50 to 75/ Minor Bullish Trend
75 to 100/ Major Bullish Trend
-0 to -25/ Major Bearish Range
-25 to -50/ Minor Bearish Range
-50 to -75/ Minor Bearish Trend
-75 to -100/ Major Bearish Trend
The pips% should be plotted on a 100 to -100 histogram. The classification label should be displayed in the top right corner of the chart and should only change at the close of the last bar.