Stochastic Color Bar!

 

Hi. Lately there have been new indicators coming out that call from other MTF indicators to draw lines with easy to read signals (red/blue) to replace oscillators and histograms. This saves space on the MT4 window and allows for easy and rapid spotting of a new trend or reversal on all timeframes, seen from just one chart. I am attaching a screenshot with 3 of such indicators. Their premise is very simple, sell when all lines are red or buy when all lines are blue. The lines differ only by what time frame theyre reading from. I am attaching a chart with 3 different such indicators. They may look like a holy grail, especially FX Trend (reads from SilverTrend), but it repaints the past for up to the last 6 bars making it almost useless for live trading. The other 2 indicators I have tested less, but apparently they redraw as well and signals are less accurate, more delayed and less frequent, they call the data from MTF CCI.

In the second screenshot I have posted my idea to apply this MTF color bar design to stochastics. The goal is to receive the same kind of signals the other indicators attempt to give but without the redraw issue, since a change of color from red to blue or blue to red should happen only after the close of the candle where the stochastic has crossed. This indicator should never repaint a bar that has already closed, as it is better to have noise (which we may try to reduce by changing settings) coming from it, than just plain bad signals. In this second screenshot I have added stochastics from ascending timeframes into the chart, and edited the colors from the color bar indicator at bottom with photoshop to mirror its respective stoch action. When Kline crossed downward it is red, when it crossed upward it is blue, and i drew yellow whenever kline changed direction (slope) but has not yet crossed over.

If anyone can code this indicator it should be a very powerful tool for all of us to incorporate into our trading. I currently trade these setups of several timeframe stochastics with success, but a color bar should make signals easier and faster to read (time=pips), as well as saving a lot of space in the MT4 chart window.

For the proposed indicator it would be vital to maintain the MTF property and it wouldnt matter if the indicator draws only one bar from 1 timeframe, as we would be able to just stack as many as we want with different timeframes and settings. It would also be essential for the periods , timeframe and applied price to remain a modifiable variable. I am attaching the MTF stochastic indicator I currently use.

I am excited to see if anyone can code this, once we have an indicator ready I will post a new thread with a complete system that will combine it with other indicators for optimum entry and exit levels.

Files:
 

indicator

Here it is but I don't know how to do MTF. Will someone take over, please. Attached is a stoch dots indicator so you can check if I did it right.

Lime = uptrend

Dark Green = Overbought

Red = downtrend

Maroon = Oversold

The Colored Stochastic indicator can be download @:

https://www.mql5.com/en/forum/177239/page2

 

Uh...Yea...

Brilliant mladen!

 

brilliant mladen and banzai

 

Thanks mladen. MTF is not my specialty.

 

I like the V1.02 cause it comes with the alert, but when switched to say 15mins, it cannot display the stochastic for 5min, which means at higher tf, lower tf is not able to display, anyone could try to fix it? look forward to v1.03 or above

Cheers!

 
abcdefg:
I like the V1.02 cause it comes with the alert, but when switched to say 15mins, it cannot display the stochastic for 5min, which means at higher tf, lower tf is not able to display, anyone could try to fix it? look forward to v1.03 or above Cheers!

Don't know of any MTF that can do that, not just this one. Don't think there is a fix, the idea of a MTF is to be able to get the higher TF confirmation.

 

Nice indicator

abcdefg:
I like the V1.02 cause it comes with the alert, but when switched to say 15mins, it cannot display the stochastic for 5min, which means at higher tf, lower tf is not able to display, anyone could try to fix it? look forward to v1.03 or above Cheers!
 
homestudy:
Don't know of any MTF that can do that, not just this one. Don't think there is a fix, the idea of a MTF is to be able to get the higher TF confirmation.

attached did it perfectly, why don't enable lower tf at higher tf on color stochastic? i like the color stoch for it's bars display, someone can help to put a finishing touch on it?

Files:
 

...

If we leave that option than there is some side effect that should be known:

for example :

15 chart with 5 min time frame

current bar -> ok

previous bar -> time-15 indicator showing time-5 value

so you have a serrious time deviation and the indicator is, appart from the current bar, never showing any correct value for that time point (only if,by chance they are the same)

that is why I do not let that option in indicators

in stringToTimeFrame function of indicator you have a line

if (tf<Period()) tf=Period();

just comment it out and that will do the trick

regards

mladen

abcdefg:
I like the V1.02 cause it comes with the alert, but when switched to say 15mins, it cannot display the stochastic for 5min, which means at higher tf, lower tf is not able to display, anyone could try to fix it? look forward to v1.03 or above Cheers!
 

Anybody? (please read the post above)

ES

Reason: