Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information
Would some one be kind enough to code a colored slow stochastic indicator which will look exactly as the here joined picture ?
That the color of D% , change matching the direction of D%
(up-green down-red)
Best regards
efi
slight mod of Mladen's color sto 104
if clrLnModeMain = true,- color sto main ln; false sig ln
if showBars = true -histo
p.s lines doesn't hold colors very well, unless it specially programed - (complicated way); simple way - here, but don't trust colors too much, trust direction itself, before making trading decision always check (if colors are correct)
Hi all,
I am looking for cci stoch combo indicator. Any of you have this one? I got something about its code. Actually it would be grateful if making into mq4 format.
Thank you
Type : Indicator, Name : CCI - Stochastic
{Average(3,(Today's 14-day CCI reading - Lowest 14-day CCI reading
(over the past 5 periods)/Highest 14-day
CCI reading (over the past 5 periods) - Lowest 14-day CCI reading
(over the past 5 periods))*100)
CCI-Stochastic}
put a Stochastic (8, 3, 1) on EUR/USD 5M and watch how the K line is sometimes on full 100.0 or min 0.0 for many bars.
This is strange!
According to the stochastic formula to get 100.0, the
(recent close - lowest low n) / (highest high n - lowest low n) > 1.0
This means that resent close must be equal or higher that highest high n.
However this is occasionally one bar, but rarely for many bars in a row.
After checking the bars very carefully maybe the recent bars high was the highest, but the recent close is bellow the bars high...?
The Stochastic.mq4 code looks correct
for(k=(i+Slowing-1);k>=i;k--)
{
sumlow+=Close[k]-LowesBuffer[k];
sumhigh+=HighesBuffer[k]-LowesBuffer[k];
}
Therefore I have no idea why the chart is showing this long periods of 100.0 or 0.0.
I appreciated very much for help to understand what is going on.
Thank you in advance