Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
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
do you mean " long periods of 100.0 or 0.0." when sto price field cl-cl?
dividing the sum of low with the sum of highs is something else than an SMA.
I am curious is the Meta Trader Stochastic.mq4 very special or is this approach common in most other charting products.
The smoothing seems to be far of from the normal documentation about full stochastic.
everyting right with mt4 sto:
stock sto (mt4 custom ind folder) w price cc mod
or u can do:
PHP Code:
KFull[i] = iStochastic(NULL,TimeFrame,KPeriod,DPeriod,Slowing,MAMethod,PriceField,Ln1Mode,y);
(double iStochastic( string symbol, int timeframe, int %Kperiod, int %Dperiod, int slowing, int method, int price_field, int mode, int shift)
Not sure if this is somewhere on the site but I'm hoping someone could help me with an alert.
I am using the normal stochastic indicator (14,3,3) and what I would like is to have an alert when both lines are in OB/OS (20/80) at the close of 3 consecutive bars.