Re: MT4 Indicator requests and ideas

18552
May master coders please incorporate the tick volumes into this dashboard the same way bulls and bears have to show different times?
thank you!

Instead of waiting for close line to overlap the the open line in higher timeframe candles
The tick data will give faster idea of the current trend on lower timeframes
0 + 0 = 0
Infinite / Infinite = 1
1 way to Heaven & it matters

Re: MT4 Indicator requests and ideas

18553
Bulls Vs Bears, Normalized [TradingView]

kvak or mrtools, I have an idea for the normal Bulls Vs Bears indicator that can also be applied to other indicators.

What's featured here is a normalized version of Bulls Vs Bears created by TradingView user Mihkel00.

The description is below:

This script helps you identify the relative strength of bulls and bears in the market. It calculates the difference between the high and the moving average for bulls, and the difference between the moving average and the low for bears.

Then it normalizes the values between -100 and 100 using the highest and lowest values of the last "bars back" periods. This allows you to compare the current strength of bulls and bears relative to their historical strength.

The output of the script is a colored column chart that represents the difference between the normalized bulls and bears values. If the chart is mostly green, it means the bulls are currently stronger than the bears, and vice versa for a mostly red chart.

Additionally, the script provides bullish and bearish signals based on when the normalized bulls cross above or below the user-defined "Line Height" value. You can use this script to help you identify potential trend changes in the market, as well as to confirm existing trends.


Here is the code:

Code: Select all

//@version=4
study("Bulls v Bears")

// Input settings
len = input(title="BvB Period", type=input.integer, defval=14, minval=1)
bars_back = input(title="Nomralized bars back", type=input.integer, defval=120, minval=1)
tline = input(80, title="Line Height" )

// Calculation
ma = ema(close, len)
bulls = high - ma
bears = ma - low

// Normalize the values between -100 and 100
min_bulls = lowest(bulls, bars_back)
max_bulls = highest(bulls, bars_back)
norm_bulls = ((bulls - min_bulls) / (max_bulls - min_bulls) - 0.5) * 100

min_bears = lowest(bears, bars_back)
max_bears = highest(bears, bars_back)
norm_bears = ((bears - min_bears) / (max_bears - min_bears) - 0.5) * 100

// Calculate the total and add signals
total = norm_bulls - norm_bears
bullish_o = total > tline
bearish_o = total < -tline

// Plot the total with colored columns
col = total >= 0 ? color.green : color.red
plot(total, color=col, style=plot.style_columns, title="BvB")
plotshape(bullish_o, style=shape.circle, location=location.top, color=#ff00d4, title="Bullish Crossover")
plotshape(bearish_o, style=shape.circle, location=location.bottom, color=#eeff00, title="Bearish Crossover")

// Horizontal lines
hline(tline, color=color.gray)
hline(-tline, color=color.gray)

// Alerts
alertcondition(bullish_o, title="Bullish Crossover", message="Bullish overbought")
alertcondition(bearish_o, title="Bearish Crossover", message="Bearish oversold")
alertcondition(crossover(total, 0), title="Total Crossover", message="BvB total crossover")

You'll notice on both candlestick and Renko charts, the indicator does a good job of (1) determining trend strength/direction, but more importantly (2) detecting tops and bottoms in a real-time non-repainting fashion.



At 42 lines of simple code, I can't imagine this would be too difficult to port into MT4. If this works the way I think it does, I have a number of other indicators I would like "normalized". It would be a great way to make a number of standard indicators far more useful.

No need for any extra features like MTF, buttons, alerts, arrows, and so on for the time being. I just want to see if we can successfully re-create this default indicator as a MQ4 file.

Thanks for helping out as always!
These users thanked the author TransparentTrader for the post (total 2):
Krunal Gajjar, ffsss

Re: MT4 Indicator requests and ideas

18555
ffsss wrote: Sun May 14, 2023 9:32 pm How would you avoid these situations and determine if a trend is valid?
Looks good overall.
Image
Not trying to hijack the post but you can use my info or not. This is how I see it.

Uptrend - when an impulse move breaks market structure making a HH, HL. After the HL it can either make an equal high or HH.

Downtrend - when an impulse move breaks market structure making a LL, LH. After the LH it can either make an equal low or LL. Nothing is guaranteed so with indicators you can't take every buy/sell signal.

If nothing makes sense move to a different timeframe or trading instrument.
These users thanked the author Jon for the post:
ffsss


Re: MT4 Indicator requests and ideas

18556
Looks like delta to me or bull bear power
Just the ma distance of price from
The difference of the bullish and bearish ma
Not sure about the scaling normilization
Delta is super outdated though no color nothing though
These users thanked the author Chickenspicy for the post:
ParallelNative
0 + 0 = 0
Infinite / Infinite = 1
1 way to Heaven & it matters

Re: MT4 Indicator requests and ideas

18557
ffsss wrote: Sun May 14, 2023 9:32 pm How would you avoid these situations and determine if a trend is valid?
Looks good overall.
Image

It's a good question, and ranging markets always throw us off. I'm thinking this Bulls Vs Bears indicator could be used as a form of secondary trend confirmation. For primary trend confirmation I would use a separate indicator.

I would personally use the normalized Bulls Vs Bears for finding tops and bottoms more than I would for finding trends.
These users thanked the author TransparentTrader for the post:
ffsss

HappyRe: MT4 Indicator requests and ideas

18558
TransparentTrader wrote: Mon May 15, 2023 1:31 am It's a good question, and ranging markets always throw us off. I'm thinking this Bulls Vs Bears indicator could be used as a form of secondary trend confirmation. For primary trend confirmation I would use a separate indicator.

I would personally use the normalized Bulls Vs Bears for finding tops and bottoms more than I would for finding trends.
Hope someone converts it to mt4.


Who is online

Users browsing this forum: erex, Facebook [Crawler], Grapeshot [Bot], Intrest 1, Josephfiyin, Majestic-12 [Bot], marant, markw118, romotly007, Sogou [Bot], TEAMTRADER and 82 guests